1 #ifndef __JTRIGGER__JHITR1__
2 #define __JTRIGGER__JHITR1__
76 const double weight = 1.0) :
92 const double weight = 1.0) :
126 const double weight = 1.0)
128 static_cast<JHit&
>(*this) = hit;
149 const double weight = 1.0)
152 double t2 = this->
t + this->
tot;
154 if (t1 > hit.
getT()) { t1 = hit.
getT(); }
162 return static_cast<JHitR1&
>(*this);
214 return first.
getT() < second.
getT();
Basic data structure for L0 hit.
Basic data structure for L1 hit.
Basic data structure for time and time over threshold information of hit.
Data structure for position in three dimensions.
const JPosition3D & getPosition() const
Get position.
Data structure for L0 hit.
Data structure for L1 hit.
Reduced data structure for L1 hit.
JHitR1()
Default constructor.
JHitR1(const JHitL0 &hit, const double weight=1.0)
Constructor.
JHitR1(const JDAQModuleIdentifier &id, const JPosition3D &pos)
Constructor.
double getW() const
Get weight.
JDAQPMTIdentifier getPMTIdentifier() const
Get PMT identifier.
void set(const JHit &hit, const double weight=1.0)
Set hit.
static const struct JTRIGGER::JHitR1::compare compare
JHitR1(const JHitL1 &hit)
Constructor.
int getN() const
Get count.
JHitR1(const JDAQModuleIdentifier &id, const JPosition3D &pos, const JHit &hit, const double weight=1.0)
Constructor.
JHitR1 & add(const JHit &hit, const double weight=1.0)
Add hit.
const JHit & getHit() const
Get hit.
double t
time of leading edge [ns]
double tot
time-over-threshold [ns]
double getToT() const
Get calibrated time over threshold of hit.
double getT() const
Get calibrated time of hit.
int getModuleID() const
Get module identifier.
const JDAQModuleIdentifier & getModuleIdentifier() const
Get Module identifier.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for triggering.
Auxiliary data structure for sorting of hits.
bool operator()(const JHitR1 &first, const JHitR1 &second) const
Compare hits by module identifier and time.