24 int main(
int argc,
char **argv)
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();
62 while (
in.hasNext()) {
66 if (filterEmptyMCH and cur->
mc_hits.empty()) {
continue; }
68 if (timeOffset_ms != 0) {
add_time_offset (*cur, 1.0e6 * timeOffset_ms); }
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
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...
Recording of objects on file according a format that follows from the file name extension.
Auxiliary class for defining the range of iterations of objects.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose messaging.
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
Scanning of objects from multiple files according a format that follows from the extension of each fi...
General purpose class for object reading from a list of file names.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Utility class to parse command line options.
std::vector< Hit > mc_hits
MC: list of MC truth hits.
const JLimit & getLimit() const
Get limit.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.