42{
45
46 string inputFile;
50
51 try {
52
53 JParser<> zap(
"Auxiliary program to select number of DAQ events.");
54
59
60 zap(argc, argv);
61 }
62 catch(const exception& error) {
63 FATAL(error.what() << endl);
64 }
65
66
68
70
74
77
78 int trigger_counter = 0;
79
81
83
84 STATUS(
"event: " << setw(10) << in.getCounter() <<
'\r');
DEBUG(endl);
85
88
89 summary.update(*tev);
90
91 if (tev->
getFrameIndex() != summary.getSummaryslice()->getFrameIndex()) {
92 WARNING(
"Frame index " << tev->
getFrameIndex() <<
" != " << summary.getSummaryslice()->getFrameIndex() << endl);
93 }
94
96
98
99 const std::string& tag = i->comment;
100
102
104
106
108
110
112
114
116
119
121
123 }
124 }
125 }
126
128
131
132 if (frame_index.insert(summary.getSummaryslice()->getFrameIndex()).second) {
134 }
135
136 ++trigger_counter;
137 }
139
141}
#define DEBUG(A)
Message macros.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Utility class to parse command line options.
Object reading from a list of files.
virtual bool hasNext() override
Check availability of next element.
File router for fast addressing of summary data.
Template definition for direct access of elements in ROOT TChain.
int getFrameIndex() const
Get frame index.
JTriggerCounter_t getCounter() const
Get trigger counter.
JTriggerCounter_t next()
Increment trigger counter.
void setCounter(const JTriggerCounter_t counter)
Set trigger counter.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JTriggerParameters getTriggerParameters(const JMultipleFileScanner_t &file_list)
Get trigger parameters.
JMultiHead getMultiHeader(const JMultipleFileScanner_t &file_list)
Get multi-header corresponding to a given file list.
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header.
const char *const neutrino_t
const char *const track_in_t
const char *const track_t
const char *const primarylepton_t
const char *const track_bundle_t
const char *const track_primary_t
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
static int ROOT_IO_VERSION
Streamer version as obtained from ROOT file.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.
static const int PDG_MUONBUNDLE
muon bundle reached the can level (mupage)
static const int TRK_ST_FINALSTATE
for MC: the particle must be processed by detector simulation ('track_in' tag in evt files)....
static const int TRK_ST_MUONBUNDLE
initial state muon bundle (mupage)
static const int TRK_ST_PRIMARYCOSMIC
initial state cosmic ray ('track_primary' tag in evt files from corant).
static const int TRK_ST_PRIMARYNEUTRINO
initial state neutrino ('neutrino' tag in evt files from gseagen and genhen).