1 #ifndef __JTRIGGER__JHITTOOLKIT__
2 #define __JTRIGGER__JHITTOOLKIT__
20 namespace JPP {
using namespace JTRIGGER; }
59 template<class JHit_t, bool isPrimitive = JLANG::JClass<JHit_t>::is_primitive>
136 return JHit(std::numeric_limits<double>::max());
149 return getT(second) - getT(first);
162 return getT(first) < getT(second);
213 template<
class JHit_t>
233 static inline double getT(
const JHit_t hit)
245 static inline double getToT(
const JHit_t& hit)
283 return std::numeric_limits<JHit_t>::max();
296 return second - first;
307 inline bool operator()(
const JHit_t first,
const JHit_t second)
const
309 return first < second;
double getT() const
Get calibrated time of hit.
Basic data structure for L0 hit.
Data structure for PMT calibration.
double getTime(const Hit &hit)
Get true time of hit.
JTDC_t getT() const
Get time.
JPMT_t getPMT() const
Get PMT.
Basic data structure for time and time over threshold information of hit.
JTOT_t getToT() const
Get time-over-threshold.
double getToT(const T &tot, const JCalibration &cal)
Get calibrated time-over-threshold of hit.
double getToT() const
Get calibrated time over threshold of hit.
Reduced data structure for L0 hit.
double getToT(const JDAQHit &hit, const JCalibration &cal)
Get calibrated time-over-threshold of DAQ hit.
JHitL0 getHit(const Hit &hit)
Get transformation.
double getTime(const JDAQHit &hit, const JCalibration &cal)
Get calibrated time of DAQ hit.