Go to the documentation of this file. 1 #ifndef __JTRIGGEREDEVENT__
2 #define __JTRIGGEREDEVENT__
74 const double TMaxLocal_ns,
100 const double t1 =
getTime(*i, calibration);
113 if (snapshot.is_valid()) {
115 const JTimeRange timeRange(hit.
getT1() + snapshot.getLowerLimit() - TMaxLocal_ns,
116 hit.
getT1() + snapshot.getUpperLimit() + TMaxLocal_ns);
118 for (JDAQTimeslice::const_iterator super_frame = timesliceRouter->begin(); super_frame != timesliceRouter->end(); ++super_frame) {
120 if (!super_frame->empty()) {
132 const double t1 =
getTime(*i, calibration);
156 const double TMaxLocal_ns,
171 for (JEvent::const_iterator hit = event.begin(); hit !=
event.end(); ++hit) {
173 const JTimeRange timeRange(hit->getT1(), hit->getT1() + TMaxLocal_ns);
184 const double t1 =
getTime(*i, calibration);
206 if (static_cast<const JDAQKeyHit&>(*i) == static_cast<const JDAQKeyHit&>(*out))
207 out->addTriggerMask(*i);
218 if (snapshot.is_valid()) {
220 const JTimeRange timeRange(event.
begin()->getT1() + snapshot.getLowerLimit() - TMaxLocal_ns,
221 event.rbegin()->getT1() + snapshot.getUpperLimit() + TMaxLocal_ns);
223 for (JDAQTimeslice::const_iterator super_frame = timesliceRouter->begin(); super_frame != timesliceRouter->end(); ++super_frame) {
225 if (!super_frame->empty()) {
235 const double t1 =
getTime(*i, calibration);
void setDAQChronometer(const JDAQChronometer &chronometer)
Set DAQ chronometer.
JDAQKeyHit JDAQSnapshotHit
JTriggeredEvent()
Default constructor.
bool testHighRateVeto() const
Test high-rate veto status.
JCalibration getCalibration(const JCalibration &first, const JCalibration &second)
Get calibration to go from first to second calibration.
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.
JDAQFrameSubset getFrameSubset(const JDAQModuleIdentifier &module, const JTimeRange &timeRange) const
Get subset of frame given module identifier and range of hit times.
JTimeRange getTimeRange(const Evt &event)
Get time range (i.e.
const_iterator< T > begin() const
Get begin of data.
unsigned long long int JTriggerMask_t
Type definition of trigger mask.
const JModule & getModule(const JObjectID &id) const
Get module parameters.
const typedef JDAQHit * const_iterator
Data structure for PMT calibration.
JTriggerMask_t trigger_mask
double getDistance(const JVector3D &pos) const
Get distance to point.
int getModuleID() const
Get module identifier.
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
const_iterator end() const
const JDAQModuleIdentifier & getModuleIdentifier() const
Get Module identifier.
std::vector< JDAQSnapshotHit > snapshotHits
const JPMT & getPMT(const int index) const
Get PMT.
const JDAQSuperFrame & getSuperFrame(const JDAQModuleIdentifier &module) const
Get super frame.
double getTime(const Hit &hit)
Get true time of hit.
Data structure for a composite optical module.
bool testFIFOStatus() const
Test FIFO status.
Auxiliary class to build JDAQEvent for a triggered event.
Router for direct addressing of module data in detector data structure.
Reduced data structure for L1 hit.
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
Data frame of one optical module.
std::vector< JDAQTriggeredHit > triggeredHits
JTimeRange getTimeRange(const JTimeRange &timeRange, const JModule &module)
Get de-calibrated time range.
double getT1() const
Get leading edge of hit.
JTriggeredEvent(const JEvent &event, const JTimesliceRouter ×liceRouter, const JModuleRouter &moduleRouter, const double TMaxLocal_ns, const JTimeRange &snapshot=JTimeRange::DEFAULT_RANGE)
Constructor.
Router for fast addressing of hits in KM3NETDAQ::JDAQTimeslice data structure as a function of the op...
const_iterator begin() const