39 int main(
int argc,
char **argv)
43 using namespace KM3NETDAQ;
48 typedef JParallelFileScanner_t::multi_pointer_type multi_pointer_type;
50 JParallelFileScanner_t inputFile;
51 size_t numberOfEvents;
60 JParser<> zap(
"Program to extract events.");
62 zap[
'f'] =
make_field(inputFile,
"input file (output of JXXXReconstruction.sh)");
63 zap[
'n'] =
make_field(numberOfEvents,
"maximum number of selected events")
64 = std::numeric_limits<size_t>::max();
76 catch(
const exception& error) {
77 FATAL(error.what() << endl);
91 cout <<
"\revent: " << setw(8) << inputFile.getCounter() << flush;
93 multi_pointer_type ps = inputFile.next();
101 if (in->empty()) {
continue; }
105 if (mc.getEntries() != 0) {
109 if (!event_selector(*tev, *in, event)) {
static const int JMUONSTART
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
Recording of objects on file according a format that follows from the file name extension.
General purpose class for parallel reading of objects from a single file or multiple files...
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
static const int JSHOWERENERGYPREFIT
bool qualitySorter(const JFit &first, const JFit &second)
Comparison of fit results.
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header.
I/O formatting auxiliaries.
Auxiliary class for recursive type list generation.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Auxiliary class to test history.
static const int JMUONGANDALF
static const int JSHOWERDIRECTIONPREFIT
Parallel scanning of objects from a single file or multiple files according a format that follows fro...
General purpose messaging.
static const int JSHOWERCOMPLETEFIT
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
then usage $script< input file >[option[primary[working directory]]] nWhere option can be N
Data structure for set of track fit results.
General purpose class for object reading from a list of file names.
Utility class to parse command line options.
void copy(const Head &from, JHead &to)
Copy header from from to to.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
JTriggerCounter_t getCounter() const
Get trigger counter.
static const int JMUONENERGY
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.