Go to the documentation of this file.
24 int main(
int argc,
char **argv)
31 JLimit_t& numberOfEvents = inputFile.getLimit();
38 JParser<> zap(
"Auxiliary program to preprocess aanet files.");
42 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
44 zap[
'H'] =
make_field(filterEmptyMCH,
"Filter events without hits.");
45 zap[
'T'] =
make_field(timeOffset_ms,
"Add time offset [ms] to events.") = 0;
49 catch(
const exception& error) {
50 FATAL(error.what() << endl);
56 Head header = inputFile.getHeader();
66 if (filterEmptyMCH and cur->
mc_hits.empty()) {
continue; }
68 if (timeOffset_ms != 0) {
add_time_offset (*cur, 1.0e6 * timeOffset_ms); }
Auxiliary class for defining the range of iterations of objects.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
virtual const pointer_type & next()
Get next element.
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
virtual bool hasNext()
Check availability of next element.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose class for object reading from a list of file names.
void add_time_offset(Evt &evt, const double tOff)
Add time offset to mc event; according to current definition, the absolute time of the event is defin...
std::vector< Hit > mc_hits
MC: list of MC truth hits.
int main(int argc, char **argv)