1#ifndef __JSIRENE__JSIRENE__
2#define __JSIRENE__JSIRENE__
37 Nmax_PMT = std::numeric_limits<size_t>::max();
90 operator const Hit& ()
const
119 return first.
t < second.
t;
152 if (!this->empty()) {
154 sort(this->begin(), this->end());
161 while (++in != this->end()) {
163 if (out->pmt_id == in->pmt_id && in->t - out->t <= Tmax_ns) {
179 this->erase(++out, this->end());
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
int pmt_id
global PMT identifier as found in evt files
int origin
track id of the track that created this hit (mc only)
double a
hit amplitude (in p.e.)
int type
particle type or parametrisation used for hit (mc only)
double t
hit time (from tdc+calibration or MC truth)
Auxiliary class to set-up Hit.
friend bool operator<(const JHit_t &first, const JHit_t &second)
Less than operator for hits.
JHit_t(const int id, const int pmt_id, const int type, const int origin, const double t, const int npe)
Constructor.
Auxiliary data structure for list of hits with hit merging capability.
void merge(const double Tmax_ns)
Merge hits on same PMT that are within given time window.
Detector simulation parameters.
size_t Nmax_PMT
maximal number of photo-electrons on PMT
double Dmin_m
minimal distance for positioning [m]
JParameters()
Default constructor.
double Dmax_m
maximal step size when limited [m]
double Nmax_NPE
maximal number of photo-electrons of low probability regime
double Emax_GeV
maximal energy of muon below which step size is limited [GeV]
double Emin_GeV
minimal energy of muon for shower generation [GeV]
double Tmax_ns
maximal time between hits on same PMT to be merged
double Ecut_GeV
minimal energy for generation of light from shower [GeV]
Auxiliary class to set-up Trk.
JTrk_t(const int id, const int type, const int mother_id, const Vec &pos, const Vec &dir, const double t, const double E)
Constructor.
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
int type
MC: particle type in PDG encoding.
double E
Energy [GeV] (either MC truth or reconstructed)
double t
track time [ns] (when the particle is at pos )
int mother_id
MC id of the parent particle.
Vec pos
postion [m] of the track at time t
The Vec class is a straightforward 3-d vector, which also works in pyroot.