53 h0(
"h0", NULL, numeric_limits<
JDAQHit::JPMT_t>::max(), -0.5, numeric_limits<
JDAQHit::JPMT_t>::max() - 0.5),
54 h1(
"h1", NULL, numeric_limits<
JDAQHit::JTOT_t>::max(), -0.5, numeric_limits<
JDAQHit::JTOT_t>::max() - 0.5),
72 out << h0 << h1 << h2;
87 STATUS(
"event: " << setw(10) << ++counter <<
'\r');
DEBUG(endl);
89 for (JDAQTimeslice::const_iterator frame = timeslice.begin(); frame != timeslice.end(); ++frame) {
93 h0.Fill(hit->getPMT());
94 h1.Fill(hit->getToT());
117 int main(
int argc,
char **argv)
124 JLimit_t& numberOfEvents = inputFile.getLimit();
129 JParser<> zap(
"Example program to histogram timeslice data.");
133 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
135 zap[
'C'] =
make_field(selector) = getROOTClassSelection<JDAQTimesliceTypes_t>();
140 catch(
const exception& error) {
141 FATAL(error.what() << endl);
int main(int argc, char **argv)
JDAQPMTIdentifier PMT
Command line options.
General purpose messaging.
#define DEBUG(A)
Message macros.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Implementation of pipe operation for object iterators.
ROOT TTree parameter settings of various packages.
Template interface of object output for single data type.
Auxiliary class for selection of data type.
Utility class to parse command line options.
General purpose class for object reading from a list of file names.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Long64_t counter_type
Type definition for counter.
KM3NeT DAQ data structures and auxiliaries.
double getFrameTime()
Get frame time duration.
Example class for data analysis.
virtual bool put(const JDAQTimeslice ×lice)
Process data.
Auxiliary class for a type holder.
Auxiliary class to select ROOT class based on class name.
Auxiliary class for defining the range of iterations of objects.