24{
28
30 JLimit_t& numberOfEvents = inputFile.getLimit();
32
33 try {
34
35 JParser<> zap(
"Example program to count event data.");
36
40
41 zap(argc, argv);
42 }
43 catch(const exception& error) {
44 FATAL(error.what() << endl);
45 }
46
47
49
52 snapshot()
53 {}
54
56 int snapshot;
57 };
58
60
62
64
66
67 {
69
71 counter[hit->getModuleID()].trigger += 1;
72 }
73 }
74
75 {
77
79 counter[hit->getModuleID()].snapshot += 1;
80 }
81 }
82 }
84
86 cout << setw(10) << i->first << ' '
87 << setw (8) << i->second.trigger << ' '
88 << setw (8) << i->second.snapshot << endl;
89 }
90}
#define DEBUG(A)
Message macros.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Utility class to parse command line options.
General purpose class for object reading from a list of file names.
virtual bool hasNext() override
Check availability of next element.
counter_type getCounter() const
Get counter.
virtual const pointer_type & next() override
Get next element.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Long64_t counter_type
Type definition for counter.
KM3NeT DAQ data structures and auxiliaries.
Auxiliary class to set-up Hit.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.