30 int main(
int argc,
char **argv)
37 JLimit_t& numberOfEvents = inputFile.getLimit();
43 JParser<> zap(
"Program to test ordered reading from a ROOT TTree.");
46 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
52 catch(
const exception& error) {
53 FATAL(error.what() << endl);
59 TH1D h0(
"h0", NULL, 401, -200.5, +200.5);
60 TH1D h1(
"h1", NULL, 401, -200.5, +200.5);
65 JTreeScanner<JDAQSummaryslice, JDAQEvaluator> scan(inputFile);
69 for (JTreeScanner<JDAQEvent, JDAQEvaluator> in(inputFile); in.hasNext(); ) {
71 STATUS(
"event: " << setw(10) << in.getCounter() <<
'\r');
DEBUG(endl);
74 Long64_t index = scan.find(*event);