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