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/JDAQEventIO.hh"
#include "JDAQ/JDAQSummarysliceIO.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.
Program to test ordered reading using JSUPPORT::JTreeScanner.
- Author
- mdejong
Definition in file JTreeScanner.cc.
◆ main()
Definition at line 30 of file JTreeScanner.cc.
31{
35
37 JLimit_t& numberOfEvents = inputFile.getLimit();
40
41 try {
42
43 JParser<> zap(
"Program to test ordered reading from a ROOT TTree.");
44
49
51 }
52 catch(const exception& error) {
54 }
55
56
58
59 TH1D h0(
"h0",
NULL, 401, -200.5, +200.5);
60 TH1D h1(
"h1",
NULL, 401, -200.5, +200.5);
61
62
64
66
67 int frame_index = 0;
68
70
72
75
77
78 h0.Fill(event ->getFrameIndex() - frame_index);
80
81 frame_index = event->getFrameIndex();
82 }
83
84 out.Write();
85 out.Close();
86}
#define DEBUG(A)
Message macros.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Template definition of a multi-dimensional oscillation probability interpolation table.
Template definition for direct access of elements in ROOT TChain.
int getFrameIndex() const
Get frame index.
JTriggerCounter_t next()
Increment trigger counter.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.