Go to the documentation of this file. 1 #ifndef __JTRIGGER__JHIT__
2 #define __JTRIGGER__JHIT__
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();
static bool & get_slewing()
Get reference to slewing parameter.
const JHit & getHit() const
Get hit.
bool operator<(const JHit &hit, const double t1)
Less than operator for hits.
double tot
time-ver-threshold [ns]
double getT() const
Get calibrated time of hit.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JHit(const double t_ns, const double tot_ns)
Constructor.
bool operator==(const JHit &first, const JHit &second)
Equal operator for hits.
static bool getSlewing()
Get slewing option.
static void setSlewing(const bool slewing)
Set slewing option.
double getT2() const
Get trailing edge of hit.
static const JGetRiseTime getRiseTime
Function object for rise time evaluation.
JHit(T __begin, T __end)
Get combined hit.
JHit()
Default constructor.
double t
time of leading edge [ns]
JHit(const double t_ns)
Constructor.
void join(const JHit &hit)
Join hit.
double getT1() const
Get leading edge of hit.
double getToT() const
Get calibrated time over threshold of hit.