31 int main(
int argc,
char **argv)
53 catch(
const exception& error) {
54 FATAL(error.what() << endl);
68 JHead commonHeader = scanners.begin()->getHeader();
82 eventHeaders.push_back(head);
84 commonHeader = commonHeader.getMatch(header);
88 while (scanner->hasNext()) {
90 const Evt*
event = scanner->next();
110 WARNING(
"Event " << scanner->getCounter() <<
" is empty; skip.");
116 copy(commonHeader, newHead);
124 eventHeaders.join(multiHead);
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
const JHead & getHeader() const
Get header.
Recording of objects on file according a format that follows from the file name extension.
std::vector< double > w
MC: Weights w[0]=w1, w[1]=w2, w[2]=w3 (see e.g. Tag list or km3net-dataformat/definitions) ...
void createUUID()
Create UUID if not already set.
I/O formatting auxiliaries.
uuid_t header_uuid
UUID of header containing the event-weight information.
#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...
Auxiliary base class for list of file names.
std::vector< filescanner_type >::iterator iterator
General purpose class for object reading from a list of file names.
Utility class to parse command line options.
void copy(const Head &from, JHead &to)
Copy header from from to to.
static const int WEIGHTLIST_NORMALISATION
Event rate normalisation.
Auxiliary class for organising Monte Carlo file scanners associated with event weighters.
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
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
#define DEBUG(A)
Message macros.