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,
87 range.getUpperLimit(), 1 - 0.5,
range.getUpperLimit() + 0.5);
89 for (Int_t
i = 1;
i <= H2.GetXaxis()->GetNbins(); ++
i) {
92 for (Int_t
i = 1;
i <= H2.GetYaxis()->GetNbins(); ++
i) {
96 while (inputFile.hasNext()) {
98 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
102 if (
is_valid(*parameters) && router.hasModule(parameters->
DOMID)) {
104 const JModule& module = router.getModule(parameters->
DOMID);
Utility class to parse command line options.
int getFloor() const
Get floor number.
Data structure for a composite optical module.
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
#define MAKE_CSTRING(A)
Make C-string.
floor_range getRangeOfFloors(const JDetector &detector)
Get range of floors.
Auxiliary class for defining the range of iterations of objects.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int getIndex()
Get index for user I/O manipulation.
z range($ZMAX-$ZMIN)< $MINIMAL_DZ." fi fi typeset -Z 4 STRING typeset -Z 2 FLOOR JPlot1D -f $
int getString() const
Get string number.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
Router for mapping of string identifier to index.
General purpose class for object reading from a list of file names.
Auxiliary class to map module identifier to AHRS calibration.
const JLimit & getLimit() const
Get limit.
do set_variable DETECTOR_TXT $WORKDIR detector
Auxiliary data structure to check validity of AHRS data.
#define DEBUG(A)
Message macros.