1 #ifndef __JTRIGGER__JHIT__
2 #define __JTRIGGER__JHIT__
14 namespace JPP {
using namespace JTRIGGER; }
50 JHit(
const double t_ns,
const double tot_ns) :
78 if (__begin != __end) {
80 double t1 = __begin->getT1();
81 double t2 = __begin->getT2();
83 for (T i = __begin; ++i != __end; ) {
84 if (t1 > i->getT1()) { t1 = i->getT1(); }
85 if (t2 < i->
getT2()) { t2 = i->getT2(); }
101 return static_cast<const JHit&
>(*this);
132 inline operator double()
const
215 static bool slewing =
true;
233 return first.
getT() < second.
getT();
248 return hit.
getT() < t1;
263 return first.
getT() == second.
getT();
double getT() const
Get calibrated time of hit.
static bool getSlewing()
Get slewing option.
static void setSlewing(const bool slewing)
Set slewing option.
bool operator<(const Head &first, const Head &second)
Less than operator.
bool operator()(const JHit &first, const JHit &second) const
Match function.
JHit(T __begin, T __end)
Get combined hit.
double getT1() const
Get leading edge of hit.
double t
time of leading edge [ns]
JHit()
Default constructor.
void join(const JHit &hit)
Join hit.
double getToT() const
Get calibrated time over threshold of hit.
JHit(const double t_ns)
Constructor.
bool operator==(Packet const &p, ID const &id)
double getT2() const
Get trailing edge of hit.
static const JGetRiseTime getRiseTime
Function object for rise time evaluation.
const JHit & getHit() const
Get hit.
static bool & get_slewing()
Get reference to slewing parameter.
JMatch_t(const double Tmax_ns)
Constructor.
Auxiliary class to check whether two consecutive hits should be joined.
double tot
time-ver-threshold [ns]
JHit(const double t_ns, const double tot_ns)
Constructor.