Program to test JSUPPORT::JSummaryFileRouter.
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <limits>
#include <map>
#include "JDAQ/JDAQEventIO.hh"
#include "JDAQ/JDAQSummarysliceIO.hh"
#include "JSupport/JSingleFileScanner.hh"
#include "JSupport/JSummaryFileRouter.hh"
#include "JSupport/JSupport.hh"
#include "JTools/JQuantile.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Program to test JSUPPORT::JSummaryFileRouter.
- Author
- mdejong
Definition in file JSummaryFileRouter.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 26 of file JSummaryFileRouter.cc.
30 using namespace KM3NETDAQ;
39 JParser<> zap(
"Program to test router of summary data.");
42 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
48 catch(
const exception& error) {
49 FATAL(error.what() << endl);
56 while (inputFile.hasNext()) {
58 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
62 router.update(*event);
68 const double R = router.getRate(
id);
75 cout << setw(10) <<
i->first.getModuleID() <<
'.'
76 <<
FILL(2,
'0') <<
i->first.getPMTAddress() <<
FILL() <<
' '
77 <<
FIXED(9,2) <<
i->second.getMean();
78 if (
i->second.getCount() > 2) {
80 <<
FIXED(9,2) <<
i->second.getSTDev();
Utility class to parse command line options.
Auxiliary data structure for floating point format specification.
Auxiliary class for defining the range of iterations of objects.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
File router for fast addressing of summary data.
Auxiliary data structure for sequence of same character.
then JCookie sh JDataQuality D $DETECTOR_ID R
Object reading from a list of files.
const JLimit & getLimit() const
Get limit.
JTriggerCounter_t next()
Increment trigger counter.
#define DEBUG(A)
Message macros.