1 #ifndef __JSIRENE__JSIRENE__
2 #define __JSIRENE__JSIRENE__
17 namespace JPP {
using namespace JSIRENE; }
36 Nmax_npe = std::numeric_limits<int>::max();
88 operator const Hit& ()
const
117 return first.
t < second.
t;
150 if (!this->empty()) {
152 sort(this->begin(), this->end());
159 while (++in != this->end()) {
161 if (out->pmt_id == in->pmt_id && in->t - out->t <= Tmax_ns) {
177 this->erase(++out, this->end());
210 this->mother_id = mother_id;
JHit_t(const int id, const int pmt_id, const int type, const int origin, const double t, const int npe)
Constructor.
double Emax_GeV
maximal energy of muon below which step size is limited [GeV]
Detector simulation parameters.
void merge(const double Tmax_ns)
Merge hits on same PMT that are within given time window.
Auxiliary class to set-up Trk.
JParameters()
Default constructor.
int pmt_id
global PMT identifier as found in evt files
double Dmax_m
maximal step size when limited [m]
int origin
track id of the track that created this hit
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
Auxiliary data structure for list of hits with hit merging capability.
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.
double a
hit amplitude (in p.e.)
The Vec class is a straightforward 3-d vector, which also works in pyroot.
friend bool operator<(const JHit_t &first, const JHit_t &second)
Less than operator for hits.
double Dmin_m
minimal distance for positioning [m]
int Nmax_npe
maximal number of photo-electrons
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]
double t
hit time (from tdc+calibration or MC truth)
Auxiliary class to set-up Hit.
double Emin_GeV
minimal energy of muon for shower generation [GeV]
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
int type
particle type or parametrisation used for hit (mc only)