26 int main(
int argc,
char **argv)
30 using namespace KM3NETDAQ;
38 JParser<> zap(
"Example program to read Monte Carlo events.");
40 zap[
'f'] =
make_field(inputFile,
"list of files");
41 zap[
'n'] =
make_field(numberOfEvents,
"number of events to read from file(s)") = JLimit::max();
46 catch(
const exception &error) {
47 FATAL(error.what() << endl);
62 DEBUG(
"Monte Carlo event " << event->mc_id << endl);
79 const Evt*
event = ps;
82 DEBUG(
"Monte Carlo event " << event->mc_id << endl);
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
Synchronously read DAQ events and Monte Carlo events (and optionally other events).
Auxiliary class to synchronously read DAQ events and Monte Carlo events (and optionally other events)...
Auxiliary class for defining the range of iterations of objects.
virtual bool hasNext() override
Check availability of next element.
I/O formatting auxiliaries.
virtual bool hasNext() override
Check availability of next element.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose messaging.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Utility class to parse command line options.
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
virtual const pointer_type & next() override
Get next element.
counter_type getCounter() const
Get counter.
virtual const multi_pointer_type & next() override
Get next element.
General purpose class for multiple pointers.
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 source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
JTriggerCounter_t getCounter() const
Get trigger counter.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.