41 int main(
int argc,
char **argv)
45 using namespace KM3NETDAQ;
65 catch(
const exception& error) {
66 FATAL(error.what() << endl);
78 JHead commonHeader = scanners.begin()->getHeader();
89 commonHeader = commonHeader.getMatch(header);
91 eventHeaders.merge(header);
95 while (scanner->hasNext()) {
99 const Evt*
event = scanner->next();
109 const JUUID headerUUID = (uuid_is_null(event->header_uuid) == 0 ?
110 eventHeaders.getHeaderUUID(*event) : header.
UUID);
121 copy(commonHeader, newHead);
125 outputFile.put(static_cast<const MultiHead&>(eventHeaders));
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
Auxiliary data structure to store multiple headers and bookkeep event-weight normalisations.
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) ...
I/O formatting auxiliaries.
uuid_t header_uuid
UUID of header containing the event-weight information.
Auxiliary class for recursive type list generation.
void createUUID()
Create UUID if not already set.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
JMultiHead getMultiHeader(const JMultipleFileScanner_t &file_list)
Get multi-header corresponding to a given file list.
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
Data structure for set of track fit results.
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.
const JHead & getHeader() const
Get header.
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.