35 using namespace KM3NETDAQ;
45 JParser<> zap(
"Example program to histogram string and floor hits.");
50 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
55 catch(
const exception& error) {
56 FATAL(error.what() << endl);
82 NOTICE(
"String " <<
string.getLowerLimit() <<
" - " <<
string.getUpperLimit() << endl);
83 NOTICE(
"Floor " << floor .getLowerLimit() <<
" - " << floor .getUpperLimit() << endl);
88 TH1D
h1(
"h1", NULL, 100, 0.0, 1.0e1);
90 string.getLength() + 1,
91 string.getLowerLimit() - 0.5,
92 string.getUpperLimit() + 0.5,
93 floor.getLength() + 1,
94 floor.getLowerLimit() - 0.5,
95 floor.getUpperLimit() + 0.5);
98 while (inputFile.hasNext()) {
100 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
110 const JPMTChannel& channel = router.getPMTChannel(*hit);
Auxiliary class to set-up Hit.
Utility class to parse command line options.
Auxiliary class to uniquely identify PMT readout channel.
int getFloor() const
Get floor number.
then for HISTOGRAM in h0 h1
double getTime(const Hit &hit)
Get true time of hit.
Simple wrapper around JModuleRouter class for direct addressing of PMT data in detector data structur...
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.
General purpose class for object reading from a list of file names.
const JLimit & getLimit() const
Get limit.
JTriggerCounter_t next()
Increment trigger counter.
#define DEBUG(A)
Message macros.