29int main(
int argc,
char **argv)
36 JLimit_t& numberOfEvents = inputFile.getLimit();
42 JParser<> zap(
"Example program to print DAQ events with associated information.");
51 catch(
const exception& error) {
52 FATAL(error.what() << endl);
58 if (detectorFile !=
"") {
79 cout <<
"Detector identifier " << tev->
getDetectorID() << endl;
83 cout <<
"Trigger counter " << tev->
getCounter() << endl;
84 cout <<
"Trigger mask (hex) " << hex << tev->
getTriggerMask() << dec << endl;
90 cout <<
" module PMT TDC ToT trigger rate [kHz] serial x y z dx dy dz t0 status" << endl;
96 cout << setw(8) << hit->getModuleID() <<
' '
97 << setw(2) << (int) hit->getPMT() <<
' '
98 << setw(10) << (int) hit->getT() <<
' '
99 << setw(3) << (int) hit->getToT() <<
' '
100 << setw(10) << hex << hit->getTriggerMask() << dec;
105 cout <<
' ' << setw(9) <<
" ? ";
107 if (router.
hasModule(hit->getModuleID())) {
122 cout << setw(8) << hit->getModuleID() <<
' '
123 << setw(2) << (int) hit->getPMT() <<
' '
124 << setw(10) << (int) hit->getT() <<
' '
125 << setw(3) << (int) hit->getToT() <<
' '
131 cout <<
' ' << setw(9) <<
" ? ";
133 if (router.
hasModule(hit->getModuleID())) {
int main(int argc, char **argv)
Data structure for detector geometry and calibration.
General purpose messaging.
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
Scanning of objects from a single file according a format that follows from the extension of each fil...
ROOT TTree parameter settings of various packages.
Router for direct addressing of module data in detector data structure.
const JPMT & getPMT(const JPMTIdentifier &id) const
Get PMT parameters.
bool hasModule(const JObjectID &id) const
Has module.
Utility class to parse command line options.
File router for fast addressing of summary data.
void update(const JDAQHeader &header)
Update router.
bool hasSummaryFrame(const JDAQModuleIdentifier &module) const
Has summary frame.
double getRate(const JDAQPMTIdentifier &id) const
Get rate.
Template definition for direct access of elements in ROOT TChain.
int getDetectorID() const
Get detector identifier.
int getRunNumber() const
Get run number.
JDAQUTCExtended getTimesliceStart() const
Get start of timeslice.
int getFrameIndex() const
Get frame index.
static JTriggerMask_t getTriggerMask(const JDAQTriggeredHit &hit)
Get trigger mask of given hit.
const_iterator< T > end() const
Get end of data.
unsigned int size() const
Get number of hits.
const_iterator< T > begin() const
Get begin of data.
JTriggerCounter_t getCounter() const
Get trigger counter.
JTriggerCounter_t next()
Increment trigger counter.
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).
KM3NeT DAQ data structures and auxiliaries.
Auxiliary data structure for floating point format specification.
Auxiliary class to set-up Hit.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.