32int main(
int argc,
char **argv)
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) {
57 FATAL(error.what() << endl);
62 if (detectorFile !=
"") {
75 TH1D h0(
"h0", NULL, 501, -1.0, +1.0);
76 TH1D h1(
"h1", NULL, 501, -1.0, +1.0);
85 const Evt*
event = ps;
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.
const JModule & getModule(const JObjectID &id) const
Get module parameters.
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.