1 #ifndef HIT_HH_INCLUDED
2 #define HIT_HH_INCLUDED
60 void print( std::ostream& out = std::cout )
const
63 out <<
" pmt=" <<
pmt_id <<
" t=" <<
t <<
" tot=" <<
tot;
#define ClassDefNV(name, version)
int pmt_id
global PMT identifier as found in evt files
int dom_id
module identifier from the data (unique in the detector).
int origin
track id of the track that created this hit (mc only)
double a
hit amplitude (in p.e.)
void print(std::ostream &out=std::cout) const
Print hit.
Vec dir
hit direction; i.e. direction of the PMT
ULong64_t trig
non-zero if the hit is a trigger hit.
unsigned pattern_flags
some number that you can use to flag the hit
int type
particle type or parametrisation used for hit (mc only)
void write(Hit &h) const
Write hit (useful in python).
void read(const Hit &h)
Read hit (useful in python).
Hit()
Default constructor.
unsigned int tdc
hit tdc (=time in ns)
unsigned int channel_id
PMT channel id {0,1, .., 30} local to moduke.
unsigned int tot
tot value as stored in raw data (int for pyroot)
double t
hit time (from tdc+calibration or MC truth)
The Vec class is a straightforward 3-d vector, which also works in pyroot.
void print(std::ostream &out=std::cout) const
Print vector.