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
233 return first.
getT() < second.
getT();
248 return hit.
getT() < t1;
263 return first.
getT() == second.
getT();
298 for (
T hit = __begin; hit !=__end; ++hit) {
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.
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.
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
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.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
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.
then $JPP_DIR examples JDetector JSlewing P slewing
int getCount(const T &hit)
Get hit count.
double tot
time-over-threshold [ns]
JHit(const double t_ns, const double tot_ns)
Constructor.