34 int main(
int argc,
char **argv)
56 catch(
const exception& error) {
57 FATAL(error.what() << endl);
72 out.put(
JMeta(argc, argv));
74 JHead commonHeader = scanners.begin()->getHeader();
88 eventHeaders.push_back(head);
90 commonHeader = commonHeader.getMatch(header);
94 while (scanner->hasNext()) {
96 const Evt*
event = scanner->next();
100 STATUS(
"Event:" <<
RIGHT(10) << scanner->getCounter() <<
'\r');
DEBUG(endl);
113 WARNING(
"Event " << scanner->getCounter() <<
" is empty; skip.");
119 copy(commonHeader, newHead);
123 out.put(eventHeaders);
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
Utility class to parse command line options.
void copy(const Head &from, JHead &to)
Copy header from from to to.
virtual void open(const char *file_name) override
Open file.
static const int WEIGHTLIST_NORMALISATION
Event rate normalisation.
Auxiliary class for organising Monte Carlo file scanners associated with event weighters.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
#define DEBUG(A)
Message macros.