Program to test ordered reading using JSUPPORT::JTreeScanner.
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <limits>
#include "TROOT.h"
#include "TFile.h"
#include "TH1D.h"
#include "JDAQ/JDAQEvent.hh"
#include "JDAQ/JDAQSummaryslice.hh"
#include "JDAQ/JDAQEvaluator.hh"
#include "JSupport/JMultipleFileScanner.hh"
#include "JSupport/JTreeScanner.hh"
#include "JSupport/JSupport.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Program to test ordered reading using JSUPPORT::JTreeScanner.
- Author
- mdejong
Definition in file JTreeScanner.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 30 of file JTreeScanner.cc.
34 using namespace KM3NETDAQ;
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);
Utility class to parse command line options.
Structure to store the ToT mean and standard deviation of the hits produced by a nanobeacon in a sour...
int getFrameIndex() const
Get frame index.
JLimit JLimit_t
Type definition of limit.
int getFrameIndex(const double t_ns)
Get frame index for a given time in ns.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
const JLimit & getLimit() const
Get limit.
JTriggerCounter_t next()
Increment trigger counter.
#define DEBUG(A)
Message macros.