1#ifndef __JTRIGGER__JHITTOOLKIT__
2#define __JTRIGGER__JHITTOOLKIT__
59 template<class JHit_t, bool isPrimitive = JLANG::JClass<JHit_t>::is_primitive>
125 return JHit(JTRIGGER::getTime(hit, cal), JTRIGGER::getToT(hit, cal));
136 return JHit(std::numeric_limits<double>::max());
149 return getT(second) - getT(first);
162 return getT(first) < getT(second);
257 return JDAQHit(0, std::numeric_limits<JDAQHit::JTDC_t>::max(), 0);
270 return getT(second) - getT(first);
283 return getT(first) < getT(second);
368 template<
class JHit_t>
438 return std::numeric_limits<JHit_t>::max();
451 return second - first;
464 return first < second;
Basic data structure for L0 hit.
Basic data structure for time and time over threshold information of hit.
Data structure for time calibration.
Reduced data structure for L0 hit.
void join(const JHit &hit)
Join hit.
double getToT() const
Get calibrated time over threshold of hit.
double getT() const
Get calibrated time of hit.
JPMT_t getPMT() const
Get PMT.
JTDC_t getT() const
Get time.
JTOT_t getToT() const
Get time-over-threshold.
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.
double getToT(const JDAQHit &hit, const JCalibration &cal)
Get calibrated time-over-threshold of DAQ hit.
Auxiliary class to set-up Hit.