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);
93 if (
is_valid(*parameters) && router.hasModule(parameters->
DOMID)) {
94 if (router.getModule(parameters->
DOMID).getFloor() != 0) {
108 QAQC(
' ' <<
FIXED(8,3) << q1.getQuantile(*
i));
Utility class to parse command line options.
Q(UTCMax_s-UTCMin_s)-livetime_s
bool is_valid(const json &js)
Check validity of JSon data.
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.
Auxiliary class for defining the range of iterations of objects.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
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.
#define QAQC(A)
QA/QC output macro.
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.
#define DEBUG(A)
Message macros.