35 int main(
int argc,
char **argv)
41 JLimit_t& numberOfEvents = inputFile.getLimit();
49 JParser<> zap(
"Program to monitor AHRS data.");
51 zap[
'f'] =
make_field(inputFile,
"output of JConvertDB -q ahrs");
52 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
55 zap[
'c'] =
make_field(ahrsFile,
"output of JAHRSCalibration");
60 catch(
const exception &error) {
61 FATAL(error.what() << endl);
85 TH2D H2(
"detector", NULL,
86 string.size() + 0, -0.5,
string.size() - 0.5,
89 for (Int_t i = 1; i <= H2.GetXaxis()->GetNbins(); ++i) {
90 H2.GetXaxis()->SetBinLabel(i,
MAKE_CSTRING(
string.at(i-1)));
92 for (Int_t i = 1; i <= H2.GetYaxis()->GetNbins(); ++i) {
100 const JAHRS* parameters = inputFile.
next();
ROOT TTree parameter settings.
Data structure for detector geometry and calibration.
General purpose messaging.
#define DEBUG(A)
Message macros.
Direct access to module in detector data structure.
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
I/O formatting auxiliaries.
#define MAKE_CSTRING(A)
Make C-string.
Direct access to string in detector data structure.
int getFloor() const
Get floor number.
int getString() const
Get string number.
Router for direct addressing of module data in detector data structure.
const JModule & getModule(const JObjectID &id) const
Get module parameters.
bool hasModule(const JObjectID &id) const
Has module.
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.
int main(int argc, char **argv)
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.