1 #ifndef __JTRIGGER__JTIMESLICEL1__
2 #define __JTRIGGER__JTIMESLICEL1__
35 template<
class JDAQTimeslice_t>
37 public JDAQTimeslice_t
62 template<
class JHit_t>
66 const double TMaxLocal_ns) :
84 double Tmin = frame->getT(*p);
85 double Tmax = Tmin + TMaxLocal_ns;
87 while (++p != frame->end() && frame->getT(*p) <= Tmax) {
88 Tmax = frame->getT(*p) + TMaxLocal_ns;
98 if (t1 >= Tmin && t1 <= Tmax) {
106 this->rbegin()->add(buffer.size(), buffer.data());
Direct access to module in detector data structure.
Data structure for time calibration.
const JCalibration & getCalibration() const
Get calibration.
Router for direct addressing of module data in detector data structure.
const JModule & getModule(const JObjectID &id) const
Get module parameters.
Data structure for a composite optical module.
const JPMT & getPMT(const int index) const
Get PMT.
container_type::const_iterator const_iterator
Auxiliary class to build JDAQTimeslice for L1 timeslice.
JTimesliceL1(const JTimeslice< JHit_t > ×lice, const JTimesliceRouter ×liceRouter, const JModuleRouter &moduleRouter, const double TMaxLocal_ns)
Constructor.
JTimesliceL1()
Default constructor.
Time slice with calibrated data.
std::vector< value_type >::const_iterator const_iterator
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
const_iterator end() const
const_iterator begin() const
Data frame of one optical module.
JTimeRange getTimeRange(const Evt &event)
Get time range (i.e. time between earliest and latest hit) of Monte Carlo event.
double getTime(const Hit &hit)
Get true time of hit.
JTOOLS::JRange< double > JTimeRange
Type definition for time range (unit [s]).
JTOOLS::JRange< double > JTimeRange
Type definition for time range (unit [ns]).
JTimeRange getTimeRange(const JTimeRange &timeRange, const JModule &module)
Get de-calibrated time range.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for triggering.
Router for fast addressing of hits in KM3NETDAQ::JDAQTimeslice data structure as a function of the op...
const JDAQSuperFrame & getSuperFrame(const JDAQModuleIdentifier &module) const
Get super frame.
JDAQFrameSubset getFrameSubset(const JDAQModuleIdentifier &module, const JTimeRange &timeRange) const
Get subset of frame given module identifier and range of hit times.