32int main(
int argc,
char **argv)
38 JLimit_t& numberOfEvents = inputFile.getLimit();
45 JParser<> zap(
"Program to plot AHRS data.");
47 zap[
'f'] =
make_field(inputFile,
"output of JConvertDB -q ahrs");
49 zap[
'A'] =
make_field(ahrsFile,
"output of JAHRSCalibration") =
"";
55 catch(
const exception &error) {
56 FATAL(error.what() << endl);
73 const JAHRS* parameters = inputFile.
next();
75 double A0 = parameters->
AHRS_A0;
76 double A1 = parameters->
AHRS_A1;
77 double A2 = parameters->
AHRS_A2;
79 double H0 = parameters->
AHRS_H0;
80 double H1 = parameters->
AHRS_H1;
81 double H2 = parameters->
AHRS_H2;
104 HA[parameters->
DOMID]->Fill(sqrt(A0 * A0 + A1 * A1 + A2 * A2));
105 HB[parameters->
DOMID]->Fill(sqrt(H0 * H0 + H1 * H1 + H2 * H2));
ROOT TTree parameter settings.
Dynamic ROOT object management.
General purpose messaging.
#define DEBUG(A)
Message macros.
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.
void transform(double &__x, double &__y, double &__z) const
Transform.
Utility class to parse command line options.
Auxiliary class to manage set of compatible ROOT objects (e.g. histograms) using unique keys.
void Write(TDirectory &out, const bool wm=false)
Write objects to file.
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)
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class to map module identifier to AHRS calibration.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.