36{
39
41 JLimit_t& numberOfEvents = inputFile.getLimit();
43 string detectorFile;
44 string ahrsFile;
46
47 try {
48
49 JParser<> zap(
"Program to monitor AHRS data.");
50
51 zap[
'f'] =
make_field(inputFile,
"output of JConvertDB -q ahrs");
55 zap[
'c'] =
make_field(ahrsFile,
"output of JAHRSCalibration");
57
58 zap(argc, argv);
59 }
60 catch(const exception &error) {
61 FATAL(error.what() << endl);
62 }
63
64
66
67 try {
69 }
72 }
73
75
78
79
81
84
85 TH2D H2("detector", NULL,
86 string.size() + 0, -0.5, string.size() - 0.5,
88
89 for (Int_t i = 1; i <= H2.GetXaxis()->GetNbins(); ++i) {
90 H2.GetXaxis()->SetBinLabel(i,
MAKE_CSTRING(
string.at(i-1)));
91 }
92 for (Int_t i = 1; i <= H2.GetYaxis()->GetNbins(); ++i) {
94 }
95
97
99
100 const JAHRS* parameters = inputFile.
next();
101
102 if (
is_valid(*parameters) && router.hasModule(parameters->
DOMID)) {
103
104 const JModule& module = router.getModule(parameters->
DOMID);
105
108 }
109 }
110 }
112
113 out.Write();
114 out.Close();
115}
#define DEBUG(A)
Message macros.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
#define MAKE_CSTRING(A)
Make C-string.
int getFloor() const
Get floor number.
int getString() const
Get string number.
Router for direct addressing of module data in detector data structure.
Data structure for a composite optical module.
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.
floor_range getRangeOfFloors(const JDetector &detector)
Get range of floors.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
int getIndex()
Get index for user I/O manipulation.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
bool is_valid(const json &js)
Check validity of JSon data.
Auxiliary class to map module identifier to AHRS calibration.
Auxiliary data structure to check validity of AHRS data.
Router for mapping of string identifier to index.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.