36 using namespace KM3NETDAQ;
46 JParser<> zap(
"Example program to histogram string and floor rates.");
51 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
56 catch(
const exception& error) {
57 FATAL(error.what() << endl);
81 NOTICE(
"String " <<
string.getLowerLimit() <<
" - " <<
string.getUpperLimit() << endl);
82 NOTICE(
"Floor " << floor .getLowerLimit() <<
" - " << floor .getUpperLimit() << endl);
87 TProfile2D h2(
"h2", NULL,
88 string.getLength() + 1,
89 string.getLowerLimit() - 0.5,
90 string.getUpperLimit() + 0.5,
91 floor.getLength() + 1,
92 floor.getLowerLimit() - 0.5,
93 floor.getUpperLimit() + 0.5);
96 while (inputFile.hasNext()) {
98 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
102 for (JDAQSummaryslice::const_iterator frame = summary->begin(); frame != summary->end(); ++frame) {
104 if (router.hasModule(frame->getModuleID())) {
106 const JModule& module = router.getModule(frame->getModuleID());
109 if (!frame->testHighRateVeto(
pmt) && !frame->testFIFOStatus(
pmt)) {
114 FATAL(
"JModuleRouter trying to access non existing identifier: "<< frame->getModuleID());
Utility class to parse command line options.
int getFloor() const
Get floor number.
Data structure for a composite optical module.
Router for direct addressing of module data in detector data structure.
esac $JPP_DIR examples JDetector JTransitTime o $OUTPUT_FILE n N $NPE T $TTS_NS d $DEBUG for HISTOGRAM in tts tt2 pmt
Auxiliary class for defining the range of iterations of objects.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
void load(const JString &file_name, JDetector &detector)
Load detector from input file.
JRange< Double_t > JRange_t
int getString() const
Get string number.
const JLimit & getLimit() const
Get limit.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
#define DEBUG(A)
Message macros.