1#ifndef __JTRIGGEREDEVENT__
2#define __JTRIGGEREDEVENT__
81 const double TMaxLocal_ns,
124 hit.getT1() +
snapshot.getUpperLimit() + TMaxLocal_ns);
132 const JModule&
module = moduleRouter.getModule(super_frame->getModuleID());
167 const double TMaxLocal_ns,
182 for (JEvent::const_iterator
hit = event.begin();
hit !=
event.end(); ++
hit) {
186 const JModule&
module = moduleRouter.getModule(hit->getModuleID());
197 if (!frame.testHighRateVeto(i->getPMT()) &&
198 !frame.testFIFOStatus (i->getPMT())) {
218 out->addTriggerMask(*i);
232 event.rbegin()->getT1() +
snapshot.getUpperLimit() + TMaxLocal_ns);
240 const JModule&
module = moduleRouter.getModule(super_frame->getModuleID());
Time calibration (including definition of sign of time offset).
Reduced data structure for L1 hit.
Direct access to module in detector data structure.
Data structure for time calibration.
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.
Template definition of a multi-dimensional oscillation probability interpolation table.
Reduced data structure for L1 hit.
Auxiliary class to build KM3NETDAQ::JDAQEvent for a triggered event.
JTriggeredEvent(const JDAQChronometer &chronometer, const KM3NETDAQ::JTriggerMask_t &mask, const JHitR1 &hit, const JTimesliceRouter ×liceRouter, const JModuleRouter &moduleRouter, const double TMaxLocal_ns, const double DMax_m, const JTimeRange &snapshot=JTimeRange::DEFAULT_RANGE())
Constructor based on an L1 coincidence hit.
JTriggeredEvent(const JEvent &event, const JTimesliceRouter ×liceRouter, const JModuleRouter &moduleRouter, const double TMaxLocal_ns, const JTimeRange &snapshot=JTimeRange::DEFAULT_RANGE())
Constructor.
JTriggeredEvent()
Default constructor.
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
void setDAQChronometer(const JDAQChronometer &chronometer)
Set DAQ chronometer.
const_iterator< T > begin() const
Get begin of data.
std::vector< JDAQSnapshotHit > snapshotHits
std::vector< JDAQTriggeredHit > triggeredHits
bool testFIFOStatus() const
Test FIFO status.
bool testHighRateVeto() const
Test high-rate veto status.
const_iterator end() const
const_iterator begin() const
Data frame of one optical module.
JTriggerMask_t trigger_mask
JCalibration getCalibration(const JCalibration &first, const JCalibration &second)
Get calibration to go from first to second calibration.
JTimeRange getTimeRange(const JTimeRange &timeRange, const JModule &module)
Get de-calibrated time range.
double getDistance(const JFirst_t &first, const JSecond_t &second)
Get distance between objects.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
const char * getTime()
Get current local time conform ISO-8601 standard.
Auxiliary classes and methods for triggering.
JTimeRange getTimeRange(const JEvent &event)
Get time range (i.e. earlist and latest hit time) of triggered event.
JDAQKeyHit JDAQSnapshotHit
Router for fast addressing of hits in KM3NETDAQ::JDAQTimeslice data structure as a function of the op...
JDAQFrameSubset getFrameSubset(const JDAQModuleIdentifier &module, const JTimeRange &timeRange) const
Get subset of frame given module identifier and range of hit times.
const JDAQSuperFrame & getSuperFrame(const JDAQModuleIdentifier &module) const
Get super frame.