28 using namespace KM3NETDAQ;
33 int highRateThreshold;
38 JParser<> zap(
"Auxiliary program to monitor summary data.");
41 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
43 zap[
't'] =
make_field(highRateThreshold) = 50000;
48 catch(
const exception &error) {
49 FATAL(error.what() << endl);
61 int nbOfHighRateNotFiltered = 0;
62 int nbOfDuplicated = 0;
64 while (inputFile.hasNext()) {
66 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
72 if (!frameIndexCounter.insert(frameIndex).second) {
79 for (JDAQSummaryslice::const_iterator frame = summaryslice->begin(); frame != summaryslice->end(); ++frame) {
81 Q1.put(frame->testDAQStatus() ? 1.0 : 0.0);
82 Q2.put(frame->testWhiteRabbitStatus() ? 1.0 : 0.0);
84 Q3.put((
double) frame->countHighRateVeto() / (double)
NUMBER_OF_PMTS);
85 Q4.put((
double) frame->countFIFOStatus() / (double)
NUMBER_OF_PMTS);
89 if ((*frame)[pmt].is_valid()) {
93 if (!frame->testHighRateVeto(pmt) &&
94 !frame->testFIFOStatus (pmt)) {
95 Q6.put(frame->getRate(pmt));
97 if (frame->getRate(pmt) > highRateThreshold){
98 nbOfHighRateNotFiltered += 1;
104 Q5.put((
double) numberOfPTMs);
108 for (
const JQuantile* p : { &Q1, &Q2, &Q3, &Q4, &Q5, &Q6}) {
113 <<
FIXED(7,5) << Q1.getMean() <<
' '
114 <<
FIXED(7,5) << Q2.getMean() <<
' '
115 <<
FIXED(7,5) << Q3.getMean() <<
' '
116 <<
FIXED(7,5) << Q4.getMean() <<
' '
117 <<
FIXED(8,1) << Q5.getMean() <<
' '
118 <<
FIXED(7,0) << Q6.getMean() <<
' '
119 <<
FIXED(7,0) << Q6.getSTDev() <<
' '
120 <<
FIXED(7,0) << nbOfHighRateNotFiltered <<
' '
121 <<
FIXED(7,0) << nbOfDuplicated << endl);
Utility class to parse command line options.
Auxiliary data structure for floating point format specification.
int getFrameIndex() const
Get frame index.
Auxiliary class for defining the range of iterations of objects.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
#define QAQC(A)
QA/QC output macro.
Object reading from a list of files.
const JLimit & getLimit() const
Get limit.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
int qaqc
QA/QC file descriptor.
#define DEBUG(A)
Message macros.