69 JLimit_t& numberOfEvents = inputFile.getLimit();
78 JParser<> zap(
"Auxiliary program to convert fit results to Evt format.\
79 \nThe option -L corresponds to the name of a shared library \
80 \nand function so to rearrange the order of fit results.");
93 catch(
const exception& error) {
99 typedef JSingleFileScanner_t::pointer_type pointer_type;
121 catch(
const exception& error) {
138 }
catch(
const exception& error) {}
145 copy(buffer, header);
163 in.setLimit(inputFile.getLimit());
174 mc_run_id =
head.start_run.run_id;
176 }
catch(
const exception& error) {}
179 while (in.hasNext()) {
183 pointer_type ps = in.next();
193 if (
mc.getEntries() != 0) {
195 Evt*
event =
mc.getEntry(
tev->getCounter());
223 i->dom_id =
id.getID();
224 i->channel_id =
id.getPMTAddress();
230 FATAL(
"Missing PMT" << i->pmt_id <<
endl);
252 i->pmt_id = pmt.
getID();
256 i->tot =
hit.getToT();
257 i->a = cpu.
getNPE(i->tot);
261 FATAL(
"Missing module " << i->dom_id <<
endl);
ROOT TTree parameter settings.
ROOT TTree parameter settings.
Data structure for detector geometry and calibration.
Dynamic detector 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.
PMT analogue signal processor.
Direct access to PMT 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.
Basic data structure for time and time over threshold information of hit.
void push(T JHead::*pd)
Push given data member to Head.
const JCalibration & getCalibration() const
Get calibration.
Router for direct addressing of module data in detector data structure.
Address of PMT in detector data structure.
Auxiliary class for map of PMT parameters.
const JPMTParameters & getPMTParameters(const JPMTIdentifier &id) const
Get PMT parameters.
Data structure for PMT parameters.
bool slewing
time slewing of analogue signal
Router for direct addressing of PMT data in detector data structure.
Data structure for PMT geometry, calibration and status.
int getID() const
Get identifier.
Template definition of a multi-dimensional oscillation probability interpolation table.
void load()
Load oscillation probability table.
static void setSlewing(const bool slewing)
Set slewing option.
int main(int argc, char **argv)
JDirection3D getDirection(const Vec &dir)
Get direction.
void copy(const Head &from, JHead &to)
Copy header from from to to.
JPosition3D getPosition(const Vec &pos)
Get position.
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.
const char * getTime()
Get current local time conform ISO-8601 standard.
KM3NeT DAQ data structures and auxiliaries.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
std::vector< Hit > hits
list of hits
int mc_run_id
MC run identifier.
std::vector< Hit > mc_hits
MC: list of MC truth hits.
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].
PMT analogue signal processor.
virtual double getNPE(const double tot_ns) const override
Get number of photo-electrons.
Dynamic detector calibration.
Auxiliary class for recursive type list generation.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.
Auxiliary base class for file name.
The Vec class is a straightforward 3-d vector, which also works in pyroot.