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);
74 STATUS(
"event: " << setw(10) << in.getCounter() <<
'\r');
DEBUG(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)...
virtual bool hasNext() override
Check availability of next element.
Auxiliary class for defining the range of iterations of objects.
virtual const multi_pointer_type & next() override
Get 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...
then fatal The output file must have the wildcard in the e g root fi 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
Utility class to parse command line options.
virtual const pointer_type & next() override
Get next element.
counter_type getCounter() const
Get counter.
General purpose class for multiple pointers.
JTriggerCounter_t getCounter() const
Get trigger counter.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
#define DEBUG(A)
Message macros.