33{
37
39 JLimit_t& numberOfEvents = inputFile.getLimit();
40 string detectorFile;
43
44 try {
45
46 JParser<> zap(
"Example program to test conversion between Monte Carlo and DAQ times.");
47
53
54 zap(argc, argv);
55 }
56 catch(const exception &error) {
57 FATAL(error.what() << endl);
58 }
59
61
62 if (detectorFile != "") {
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
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.
Utility class to parse command line options.
counter_type getCounter() const
Get counter.
JDAQUTCExtended getTimesliceStart() const
Get start of timeslice.
const_iterator< T > end() const
Get end of data.
const_iterator< T > begin() const
Get begin of data.
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.
Auxiliary class to synchronously read DAQ events and Monte Carlo events (and optionally other events)...
virtual bool hasNext() override
Check availability of next element.
virtual const multi_pointer_type & next() override
Get next element.