32 int main(
int argc,
char **argv)
47 JParser<> zap(
"Program to monitor AHRS data.");
49 zap[
'f'] =
make_field(inputFile,
"output of JConvertDB -q ahrs");
50 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
52 zap[
'c'] =
make_field(ahrsFile,
"output of JAHRSCalibration");
59 catch(
const exception &error) {
60 FATAL(error.what() << endl);
81 for (JDetector::const_iterator module =
detector.begin(); module !=
detector.end(); ++module) {
82 if (module->getFloor() != 0) {
83 data[module->getID()] = 0;
87 while (inputFile.hasNext()) {
89 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
95 data[parameters->
DOMID] += 1;
Utility class to parse command line options.
Q(UTCMax_s-UTCMin_s)-livetime_s
int main(int argc, char *argv[])
int getFloor() const
Get floor number.
const JModule & getModule(const JObjectID &id) const
Get module parameters.
Router for direct addressing of module data in detector data structure.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Auxiliary data structure for floating point format specification.
Data structure for detector geometry and calibration.
Auxiliary class for defining the range of iterations of objects.
I/O formatting auxiliaries.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
bool is_valid(const json &js)
Check validity of JSon data.
ROOT TTree parameter settings.
General purpose messaging.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Direct access to module in detector data structure.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
General purpose class for object reading from a list of file names.
Utility class to parse command line options.
#define QAQC(A)
QA/QC output macro.
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
bool hasModule(const JObjectID &id) const
Has module.
Auxiliary class to map module identifier to AHRS calibration.
const JLimit & getLimit() const
Get limit.
do set_variable DETECTOR_TXT $WORKDIR detector
int qaqc
QA/QC file descriptor.
Auxiliary data structure to check validity of AHRS data.