1 #ifndef __JTRIGGEREDEVENT__
2 #define __JTRIGGEREDEVENT__
20 namespace JPP {
using namespace JTRIGGER; }
67 const double TMaxLocal_ns,
83 for (JEvent::const_iterator hit = event.begin(); hit !=
event.end(); ++hit) {
85 const JTimeRange timeRange(hit->getT(), hit->getT() + TMaxLocal_ns);
94 const JCalibration& calibration = module.getPMT(i->getPMT()).getCalibration();
96 const double t1 =
getTime(*i, calibration);
119 if (static_cast<const JDAQKeyHit&>(*i) ==
static_cast<const JDAQKeyHit&
>(*out))
120 out->addTriggerMask(*i);
131 if (snapshot.is_valid()) {
133 const JTimeRange timeRange(event.
begin()->getT() + snapshot.getLowerLimit() - TMaxLocal_ns,
134 event.rbegin()->getT() + snapshot.getUpperLimit() + TMaxLocal_ns);
136 for (JDAQTimeslice::const_iterator super_frame = timesliceRouter->begin(); super_frame != timesliceRouter->end(); ++super_frame) {
138 if (!super_frame->empty()) {
148 const double t1 =
getTime(*i, calibration);
JTriggeredEvent()
Default constructor.
const JDAQSuperFrame & getSuperFrame(const JDAQModuleIdentifier &module) const
Get super frame.
const JModule & getModule(const JObjectID &id) const
Get module parameters.
Data structure for a composite optical module.
JDAQKeyHit JDAQSnapshotHit
const_iterator begin() const
Router for direct addressing of module data in detector data structure.
Structure to store the ToT mean and standard deviation of the hits produced by a nanobeacon in a sour...
Data structure for PMT calibration.
double getTime(const Hit &hit)
Get true time of hit.
std::vector< JDAQTriggeredHit > triggeredHits
JTimeRange getTimeRange(const Evt &event)
Get time range (i.e.
JTriggeredEvent(const JEvent &event, const JTimesliceRouter ×liceRouter, const JModuleRouter &moduleRouter, const double TMaxLocal_ns, const JTimeRange &snapshot=JTimeRange::DEFAULT_RANGE)
Constructor.
const_iterator< T > begin() const
Get begin of data.
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.
JTimeRange getTimeRange(const JTimeRange &timeRange, const JModule &module)
Get de-calibrated time range.
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
Auxiliary class to build JDAQEvent for a triggered event.
void setDAQChronometer(const JDAQChronometer &chronometer)
Set DAQ chronometer.
const JPMT & getPMT(const int index) const
Get PMT.
Direct access to module in detector data structure.
bool testHighRateVeto() const
Test high-rate veto status.
JTriggerMask_t trigger_mask
const_iterator end() const
std::vector< JDAQSnapshotHit > snapshotHits
Data frame of one optical module.
bool testFIFOStatus() const
Test FIFO status.