Go to the documentation of this file. 1 #ifndef __JAANET__JHIT_T__
2 #define __JAANET__JHIT_T__
58 operator const Hit& ()
const
64 hit.type = this->
type;
67 hit.pure_a = this->
npe;
89 return first.
t < second.
t;
122 if (!this->empty()) {
124 sort(this->begin(), this->end());
131 while (++in != this->end()) {
133 if (out->pmt_id == in->pmt_id && in->t - out->t <= Tmax_ns) {
149 this->erase(++out, this->end());
Auxiliary class to set-up Hit.
JHit_t(const int id, const int pmt_id, const int type, const int origin, const double t, const int npe)
Constructor.
friend bool operator<(const JHit_t &first, const JHit_t &second)
Less than operator for hits.
void merge(const double Tmax_ns)
Merge hits on same PMT that are within given time window.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Extensions to AAnet data format.
Auxiliary data structure for list of hits with hit merging capability.