52 JLimit_t& numberOfEvents = inputFile.getLimit();
58 JParser<> zap(
"Auxiliary program to convert data to Dusj format.");
68 catch(
const exception& error) {
102 }
catch(
const exception& error) {
104 JHead buffer(header);
109 copy(buffer, header);
112 JHead buffer(header);
117 copy(buffer, header);
131 if (
mc.getEntries() != 0) {
133 Evt*
event =
mc.getEntry(
tev->getCounter());
150 out.
mc_id = inputFile.getCounter();
160 const JModule&
module = router.getModule(i->getModuleID());
161 const JPMT& pmt =
module.getPMT (i->getPMT());
166 hit.dom_id = i->getModuleID();
170 hit.pmt_id = pmt.getID();
197 out.
id = inputFile.getCounter();
int main(int argc, char **argv)
Auxiliary program to convert data to Dusj format.
Data structure for detector geometry and calibration.
Recording of objects on file according a format that follows from the file name extension.
General purpose messaging.
#define DEBUG(A)
Message macros.
Direct access to module in detector data structure.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Scanning of objects from a single file according a format that follows from the extension of each fil...
ROOT TTree parameter settings of various packages.
JAANET::start_run start_run
void push(T JHead::*pd)
Push given data member to Head.
Router for direct addressing of module data in detector data structure.
Data structure for a composite optical module.
Data structure for PMT geometry, calibration and status.
Template definition of a multi-dimensional oscillation probability interpolation table.
void copy(const Head &from, JHead &to)
Copy header from from to to.
Vec getOffset(const JHead &header)
Get offset.
std::istream & read(std::istream &in, JTestSummary &summary)
Read test summary.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
double getLivetime(const std::string &file_name)
Get data taking live time.
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header.
KM3NeT DAQ data structures and auxiliaries.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
int mc_id
identifier of the MC event (as found in ascii or antcc file).
double mc_t
MC: time where the mc-event was put in the timeslice, since start of run (offset+frameidx*timeslice_d...
std::vector< Hit > hits
list of hits
int mc_run_id
MC run identifier.
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
int id
offline event identifier
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
double livetime_s
Live time [s].
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.
The Vec class is a straightforward 3-d vector, which also works in pyroot.