27{
31
33 JLimit_t& numberOfEvents = inputFile.getLimit();
36
37 try {
38
39 JParser<> zap(
"Program to test router of summary data.");
40
45
47 }
48 catch(const exception& error) {
50 }
51
53
55
56 while (inputFile.hasNext()) {
57
59
61
62 router.update(*event);
63
64 if (router.getFrameIndex() != event->getFrameIndex()) {
65 ERROR(
"Inconsistent frame index " << router.getFrameIndex() <<
" != " << event->getFrameIndex() <<
endl);
66 }
67
69 if (!router.hasSummaryFrame(
hit->getModuleID())) {
71 }
72 }
73
75
77
78 const double R = router.getRate(
id,
rate_Hz);
79
80 zmap[id].put(R);
81 }
82 }
83
85 cout <<
setw(10) << i->first.getModuleID() <<
'.'
86 <<
FILL(2,
'0') << i->first.getPMTAddress() <<
FILL() <<
' '
87 <<
FIXED(9,2) << i->second.getMean();
88 if (i->second.getCount() > 2) {
90 <<
FIXED(9,2) << i->second.getSTDev();
91 }
93 }
94}
#define DEBUG(A)
Message macros.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Template definition of a multi-dimensional oscillation probability interpolation table.
File router for fast addressing of summary data.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
Auxiliary data structure for sequence of same character.
Auxiliary data structure for floating point format specification.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.