74 JLimit_t& numberOfEvents = inputFile.getLimit();
80 JParser<> zap(
"Example program to histogram UTC profiles.");
89 catch(
const exception& error) {
103 FATAL(
"Number of time slices in file(s) " << N <<
endl);
106 const Long64_t NX = in.getEntry(N-1)->getFrameIndex() - in.getEntry(0)->getFrameIndex() + 1;
115 TH1D h2(
"dt",
NULL, 1001, -500.5, +500.5);
118 const int frame_index = in.getEntry(0)->getFrameIndex();
121 for (in.rewind(); in.hasNext() && in.getCounter() != numberOfEvents.
getUpperLimit(); ) {
134 for (JDAQTimeslice::const_iterator frame = timeslice->begin(); frame != timeslice->end(); ++frame) {
136 if (utc != frame->getTimesliceStart()) {
140 h2.Fill(
getTime(frame->getTimesliceStart()) - t1);
General purpose messaging.
#define DEBUG(A)
Message macros.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
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)
Template definition of a multi-dimensional oscillation probability interpolation table.
JDAQUTCExtended getTimesliceStart() const
Get start of timeslice.
int getFrameIndex() const
Get frame index.
Data structure for UTC time.
uint32_t getUTC16nanosecondcycles() const
Get minor time.
uint32_t getUTCseconds() const
Get major time.
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 getFrameTime()
Get frame time duration.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.