31 int main(
int argc,
char **argv)
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);
Auxiliary class to set-up Hit.
Utility class to parse command line options.
Direct access to PMT data in detector data structure for DAQ hits.
Auxiliary class to uniquely identify PMT readout channel.
ROOT TTree parameter settings.
int getFloor() const
Get floor number.
then for HISTOGRAM in h0 h1
double getTime(const Hit &hit)
Get true time of hit.
Data structure for detector geometry and calibration.
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.
General purpose messaging.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
JRange< Double_t > JRange_t
int getString() const
Get string number.
Auxiliary class to define a range between two values.
General purpose class for object reading from a list of file names.
Utility class to parse command line options.
const JLimit & getLimit() const
Get limit.
const JPMT & getPMT(const JDAQKeyHit &hit) const
Get PMT parameters.
JPMTChannel getPMTChannel(const JDAQKeyHit &hit) const
Get PMT channel.
JTriggerCounter_t next()
Increment trigger counter.
#define DEBUG(A)
Message macros.
int main(int argc, char *argv[])