23 int main(
int argc,
char **argv)
30 JLimit_t& numberOfEvents = inputFile.getLimit();
35 JParser<> zap(
"Example program to count event data.");
38 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
43 catch(
const exception& error) {
44 FATAL(error.what() << endl);
71 counter[hit->getModuleID()].trigger += 1;
79 counter[hit->getModuleID()].snapshot += 1;
86 cout << setw(10) << i->first <<
' '
87 << setw (8) << i->second.trigger <<
' '
88 << setw (8) << i->second.snapshot << endl;
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
ROOT TTree parameter settings of various packages.
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.
int main(int argc, char **argv)
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.