29 using namespace KM3NETDAQ;
44 public JObjectOutput<JDAQTimeslice>
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)
121 using namespace KM3NETDAQ;
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);
Utility class to parse command line options.
Auxiliary class to select ROOT class based on class name.
Long64_t counter_type
Type definition for counter.
Auxiliary class for a type holder.
Auxiliary class for selection of data type.
Auxiliary class for defining the range of iterations of objects.
Example class for data analysis.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
double getFrameTime()
Get frame time duration.
Implementation of pipe operation for object iterators.
General purpose messaging.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
General purpose class for object reading from a list of file names.
Utility class to parse command line options.
JDAQPMTIdentifier PMT
Command line options.
ROOT TTree parameter settings.
const JLimit & getLimit() const
Get limit.
#define DEBUG(A)
Message macros.
virtual bool put(const JDAQTimeslice ×lice)
Process data.
int main(int argc, char *argv[])