1 #ifndef __JTRIGGER__JTIMESLICEL1__
2 #define __JTRIGGER__JTIMESLICEL1__
21 namespace JPP {
using namespace JTRIGGER; }
35 template<
class JDAQTimeslice_t>
37 public JDAQTimeslice_t
62 template<
class JHit_t>
84 double Tmin = frame->getT(*p);
87 while (++p != frame->end() && frame->getT(*p) <= Tmax) {
96 const double t1 =
getTime(*i, calibration);
98 if (t1 >= Tmin && t1 <= Tmax) {
106 this->rbegin()->add(buffer.size(), buffer.data());
std::vector< value_type >::const_iterator const_iterator
container_type::const_iterator const_iterator
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.
const_iterator begin() const
Router for direct addressing of module data in detector data structure.
JTimesliceL1(const JTimeslice< JHit_t > ×lice, const JTimesliceRouter ×liceRouter, const JModuleRouter &moduleRouter, const double TMaxLocal_ns)
Constructor.
JCalibration getCalibration(const JCalibration &first, const JCalibration &second)
Get calibration to go from first to second calibration.
JTimesliceL1()
Default constructor.
Data structure for PMT calibration.
double getTime(const Hit &hit)
Get true time of hit.
JTimeRange getTimeRange(const Evt &event)
Get time range (i.e. time between earliest and latest hit) of Monte Carlo event.
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.
const JPMT & getPMT(const int index) const
Get PMT.
Direct access to module in detector data structure.
Auxiliary class to build JDAQTimeslice for L1 timeslice.
const_iterator end() const
Data frame of one optical module.
Time slice with calibrated data.