Auxiliary program to convert data to Dusj format.
52 JLimit_t& numberOfEvents = inputFile.getLimit();
58 JParser<> zap(
"Auxiliary program to convert data to Dusj format.");
63 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
68 catch(
const exception& error) {
69 FATAL(error.what() << endl);
100 mc_run_id = buffer.start_run.run_id;
102 }
catch(
const exception& error) {
104 JHead buffer(header);
106 buffer.start_run.run_id = getRunNumber<JDAQSummaryslice>(inputFile);
107 buffer.push(&JHead::start_run);
109 copy(buffer, header);
112 JHead buffer(header);
115 buffer.push(&JHead::DAQ);
117 copy(buffer, header);
131 if (mc.getEntries() != 0) {
160 const JModule& module = router.getModule(i->getModuleID());
161 const JPMT& pmt = module.
getPMT (i->getPMT());
165 hit.
id = out.
hits.size() + 1;
166 hit.
dom_id = i->getModuleID();
176 out.
hits.push_back(hit);
181 double t0 = numeric_limits<double>::max();
193 if (out.
mc_t > 0.0 && t0 != numeric_limits<double>::max()) {
#define DEBUG(A)
Message macros.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Router for direct addressing of module data in detector data structure.
Data structure for a composite optical module.
const JPMT & getPMT(const int index) const
Get PMT.
Data structure for PMT geometry, calibration and status.
int getID() const
Get identifier.
Utility class to parse command line options.
Object reading from a list of files.
virtual const pointer_type & next() override
Get next element.
virtual bool hasNext() override
Check availability of next element.
counter_type getCounter() const
Get counter.
int getRunNumber() const
Get run number.
const_iterator< T > end() const
Get end of data.
const_iterator< T > begin() const
Get begin of data.
JTriggerCounter_t getCounter() const
Get trigger counter.
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, const char delimiter=' ')
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 ...
int pmt_id
global PMT identifier as found in evt files
int dom_id
module identifier from the data (unique in the detector).
double a
hit amplitude (in p.e.)
double t
hit time (from tdc+calibration or MC truth)
Auxiliary class for defining the range of iterations of objects.
The Vec class is a straightforward 3-d vector, which also works in pyroot.