39 JLimit_t& numberOfEvents = inputFile.getLimit();
46 JParser<> zap(
"Example program to test conversion between Monte Carlo and DAQ times.");
56 catch(
const exception &error) {
75 TH1D h0(
"h0",
NULL, 501, -1.0, +1.0);
76 TH1D h1(
"h1",
NULL, 501, -1.0, +1.0);
78 while (inputFile.hasNext()) {
85 const Evt*
event = ps;
95 const JModule&
module = router.getModule(i->getModuleID());
96 const JPMT& pmt =
module.getPMT(i->getPMT());
Data structure for detector geometry and calibration.
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
ROOT TTree parameter settings of various packages.
int main(int argc, char **argv)
Synchronously read DAQ events and Monte Carlo events (and optionally other events).
Router for direct addressing of module data in detector data structure.
bool hasModule(const JObjectID &id) const
Has module.
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.