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)
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);