Go to the documentation of this file.
31 int main(
int argc,
char **argv)
38 JLimit_t& numberOfEvents = inputFile.getLimit();
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);
79 const JRange_t string(
detector.begin(),
detector.end(), &JModule::getString);
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);
Auxiliary class to uniquely identify PMT readout channel.
Auxiliary class to set-up Hit.
Auxiliary class for defining the range of iterations of objects.
void load(const JString &file_name, JDetector &detector)
Load detector from input file.
JPMTChannel getPMTChannel(const JDAQKeyHit &hit) const
Get PMT channel.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
counter_type getCounter() const
Get counter.
virtual const pointer_type & next()
Get next element.
const JPMT & getPMT(const JDAQKeyHit &hit) const
Get PMT parameters.
double getTime(const Hit &hit)
Get true time of hit.
virtual bool hasNext()
Check availability of next element.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose class for object reading from a list of file names.
#define DEBUG(A)
Message macros.
KM3NeT DAQ data structures and auxiliaries.
int main(int argc, char **argv)
int getFloor() const
Get floor number.
int getString() const
Get string number.
Simple wrapper around JModuleRouter class for direct addressing of PMT data in detector data structur...