26 int main(
int argc,
char **argv)
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);
int main(int argc, char **argv)
General purpose messaging.
#define DEBUG(A)
Message macros.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
I/O formatting auxiliaries.
ROOT TTree parameter settings of various packages.
Synchronously read DAQ events and Monte Carlo events (and optionally other events).
Utility class to parse command line options.
virtual bool hasNext() override
Check availability of next element.
counter_type getCounter() const
Get counter.
virtual const pointer_type & next() override
Get next element.
JTriggerCounter_t getCounter() const
Get trigger counter.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
General purpose class for multiple pointers.
Auxiliary class for defining the range of iterations of objects.
Auxiliary class to synchronously read DAQ events and Monte Carlo events (and optionally other events)...
virtual bool hasNext() override
Check availability of next element.
virtual const multi_pointer_type & next() override
Get next element.