46 bool iisfirstinVolume,
48 float ienergyDeposited,
59 float iexitMomentumZ) :
63 isfirstinVolume(iisfirstinVolume),
64 islastinVolume(iislastinVolume),
65 energyDeposited(ienergyDeposited),
74 exitMomentumX(iexitMomentumX),
75 exitMomentumY(iexitMomentumY),
76 exitMomentumZ(iexitMomentumZ) {
80 this->exitMomentumZ = iexitMomentumZ;
88 this->exitMomentumY = iexitMomentumY;
96 this->exitMomentumX = iexitMomentumX;
104 this->exitT = iexitT;
112 this->exitZ = iexitZ;
120 this->exitY = iexitY;
128 this->exitX = iexitX;
136 this->entryT = ientryT;
144 this->entryZ = ientryZ;
152 this->entryY = ientryY;
160 this->entryX = ientryX;
168 this->energyDeposited = ienergyDeposited;
176 this->trackID = itrackID;
193 std::cout <<
"copy ID: " << ID <<
" track ID: " << trackID <<
" Total energy (MeV) deposited: " << energyDeposited <<
std::endl;
199 std::cout <<
"Begin position x,y,z (cm) time (ns) of particle: " << entryX <<
" " << entryY <<
" " << entryZ <<
" " << entryT <<
std::endl;
200 std::cout <<
"end position x,y,z (cm) time (ns) of particle: " << exitX <<
" " << exitY <<
" " << exitZ <<
" " << exitT <<
std::endl;
201 std::cout <<
"end momentum px,py,pz (MeV) of particle: " << exitMomentumX <<
" " << exitMomentumY <<
" " << exitMomentumZ <<
std::endl;
233 return ID < other.
ID ||
void SetEntryZ(float ientryZ)
float GetEnergyDeposited() const
TempHit(int iID, int itrackID, int iParentID, bool iisfirstinVolume, bool iislastinVolume, float ienergyDeposited, float ientryX, float ientryY, float ientryZ, float ientryT, float iexitX, float iexitY, float iexitZ, float iexitT, float iexitMomentumX, float iexitMomentumY, float iexitMomentumZ)
int trackID
Geant4 supplied track ID.
void SetExitMomentumX(float iexitMomentumX)
void SetExitX(float iexitX)
float GetExitMomentumZ() const
void SetEntryT(float ientryT)
bool operator==(const TempHit &other) const
void SetExitT(float iexitT)
void SetEntryX(float ientryX)
std::vector< TempHit > TempHitCollection
float exitY
Exit position Y of particle.
bool IsIslastinVolume() const
float GetExitMomentumY() const
float energyDeposited
total energy deposited for this track ID and time
float exitMomentumX
Exit X-Momentum of particle.
float entryY
Entry position Y of particle.
float entryT
Entry time of particle.
float exitMomentumZ
Exit Z-Momentum of particle.
void SetExitY(float iexitY)
void SetExitMomentumZ(float iexitMomentumZ)
void SetEntryY(float ientryY)
float GetExitMomentumX() const
float exitX
Exit position X of particle.
float exitMomentumY
Exit Y-Momentum of particle.
void SetTrackID(int itrackID)
bool IsIsfirstinVolume() const
void SetEnergyDeposited(float ienergyDeposited)
bool operator<(const TempHit &other) const
float entryX
Entry position X of particle.
float exitZ
Exit position Z of particle.
float entryZ
Entry position Z of particle.
void SetExitZ(float iexitZ)
QTextStream & endl(QTextStream &s)
void SetExitMomentumY(float iexitMomentumY)
float exitT
Exit time of particle.