33{
37
39 JLimit_t& numberOfEvents = inputFile.getLimit();
43
44 try {
45
46 JParser<> zap(
"Example program to test conversion between Monte Carlo and DAQ times.");
47
53
55 }
56 catch(const exception &error) {
58 }
59
61
63 try {
65 }
68 }
69 }
70
72
74
75 TH1D h0(
"h0",
NULL, 501, -1.0, +1.0);
76 TH1D h1(
"h1",
NULL, 501, -1.0, +1.0);
77
78 while (inputFile.hasNext()) {
79
81
83
85 const Evt*
event = ps;
86
88
90
92
93 if (router.hasModule(i->getModuleID())) {
94
95 const JModule&
module = router.getModule(i->getModuleID());
96 const JPMT& pmt =
module.getPMT(i->getPMT());
97
99 }
100 }
101
104 }
106
107 out.Write();
108 out.Close();
109}
#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.
Data structure for PMT geometry, calibration and status.
Template definition of a multi-dimensional oscillation probability interpolation table.
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).
const char * getTime()
Get current local time conform ISO-8601 standard.
KM3NeT DAQ data structures and auxiliaries.
double getTimeDifference(const JDAQChronometer &first, const JDAQChronometer &second)
Get time difference between two chronometers.
JDAQUTCExtended getDAQUTCExtended(const TTimeStamp &t0, const double t1=0.0)
Get DAQ UTC time.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
General purpose class for multiple pointers.
Auxiliary class to set-up Hit.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.