All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
TempHit Class Reference

#include <TempHit.h>

Public Member Functions

 TempHit ()
 
bool operator< (const TempHit &other) const
 
bool operator== (const TempHit &other) 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)
 
void SetExitMomentumZ (float iexitMomentumZ)
 
float GetExitMomentumZ () const
 
void SetExitMomentumY (float iexitMomentumY)
 
float GetExitMomentumY () const
 
void SetExitMomentumX (float iexitMomentumX)
 
float GetExitMomentumX () const
 
void SetExitT (float iexitT)
 
float GetExitT () const
 
void SetExitZ (float iexitZ)
 
float GetExitZ () const
 
void SetExitY (float iexitY)
 
float GetExitY () const
 
void SetExitX (float iexitX)
 
float GetExitX () const
 
void SetEntryT (float ientryT)
 
float GetEntryT () const
 
void SetEntryZ (float ientryZ)
 
float GetEntryZ () const
 
void SetEntryY (float ientryY)
 
float GetEntryY () const
 
void SetEntryX (float ientryX)
 
float GetEntryX () const
 
void SetEnergyDeposited (float ienergyDeposited)
 
float GetEnergyDeposited () const
 
void SetTrackID (int itrackID)
 
int GetTrackID () const
 
void SetID (int iID)
 
int GetID () const
 
void Print ()
 
bool IsIslastinVolume () const
 
bool IsIsfirstinVolume () const
 
int GetParentID () const
 

Private Attributes

int ID
 Geant4 copy ID. More...
 
int trackID
 Geant4 supplied track ID. More...
 
int ParentID
 
bool isfirstinVolume
 
bool islastinVolume
 
float energyDeposited
 total energy deposited for this track ID and time More...
 
float entryX
 Entry position X of particle. More...
 
float entryY
 Entry position Y of particle. More...
 
float entryZ
 Entry position Z of particle. More...
 
float entryT
 Entry time of particle. More...
 
float exitX
 Exit position X of particle. More...
 
float exitY
 Exit position Y of particle. More...
 
float exitZ
 Exit position Z of particle. More...
 
float exitT
 Exit time of particle. More...
 
float exitMomentumX
 Exit X-Momentum of particle. More...
 
float exitMomentumY
 Exit Y-Momentum of particle. More...
 
float exitMomentumZ
 Exit Z-Momentum of particle. More...
 

Detailed Description

Definition at line 13 of file TempHit.h.

Constructor & Destructor Documentation

TempHit::TempHit ( )
inline

Definition at line 36 of file TempHit.h.

36  {
37  }
TempHit::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 
)
inline

Definition at line 43 of file TempHit.h.

59  :
60  ID(iID),
61  trackID(itrackID),
62  ParentID(iParentID),
63  isfirstinVolume(iisfirstinVolume),
64  islastinVolume(iislastinVolume),
65  energyDeposited(ienergyDeposited),
66  entryX(ientryX),
67  entryY(ientryY),
68  entryZ(ientryZ),
69  entryT(ientryT),
70  exitX(iexitX),
71  exitY(iexitY),
72  exitZ(iexitZ),
73  exitT(iexitT),
74  exitMomentumX(iexitMomentumX),
75  exitMomentumY(iexitMomentumY),
76  exitMomentumZ(iexitMomentumZ) {
77  }
int trackID
Geant4 supplied track ID.
Definition: TempHit.h:16
bool islastinVolume
Definition: TempHit.h:19
int ParentID
Definition: TempHit.h:17
float exitY
Exit position Y of particle.
Definition: TempHit.h:26
float energyDeposited
total energy deposited for this track ID and time
Definition: TempHit.h:20
bool isfirstinVolume
Definition: TempHit.h:18
float exitMomentumX
Exit X-Momentum of particle.
Definition: TempHit.h:29
float entryY
Entry position Y of particle.
Definition: TempHit.h:22
float entryT
Entry time of particle.
Definition: TempHit.h:24
float exitMomentumZ
Exit Z-Momentum of particle.
Definition: TempHit.h:31
float exitX
Exit position X of particle.
Definition: TempHit.h:25
float exitMomentumY
Exit Y-Momentum of particle.
Definition: TempHit.h:30
int ID
Geant4 copy ID.
Definition: TempHit.h:15
float entryX
Entry position X of particle.
Definition: TempHit.h:21
float exitZ
Exit position Z of particle.
Definition: TempHit.h:27
float entryZ
Entry position Z of particle.
Definition: TempHit.h:23
float exitT
Exit time of particle.
Definition: TempHit.h:28

Member Function Documentation

float TempHit::GetEnergyDeposited ( ) const
inline

Definition at line 171 of file TempHit.h.

171  {
172  return energyDeposited;
173  }
float energyDeposited
total energy deposited for this track ID and time
Definition: TempHit.h:20
float TempHit::GetEntryT ( ) const
inline

Definition at line 139 of file TempHit.h.

139  {
140  return entryT;
141  }
float entryT
Entry time of particle.
Definition: TempHit.h:24
float TempHit::GetEntryX ( ) const
inline

Definition at line 163 of file TempHit.h.

163  {
164  return entryX;
165  }
float entryX
Entry position X of particle.
Definition: TempHit.h:21
float TempHit::GetEntryY ( ) const
inline

Definition at line 155 of file TempHit.h.

155  {
156  return entryY;
157  }
float entryY
Entry position Y of particle.
Definition: TempHit.h:22
float TempHit::GetEntryZ ( ) const
inline

Definition at line 147 of file TempHit.h.

147  {
148  return entryZ;
149  }
float entryZ
Entry position Z of particle.
Definition: TempHit.h:23
float TempHit::GetExitMomentumX ( ) const
inline

Definition at line 99 of file TempHit.h.

99  {
100  return exitMomentumX;
101  }
float exitMomentumX
Exit X-Momentum of particle.
Definition: TempHit.h:29
float TempHit::GetExitMomentumY ( ) const
inline

Definition at line 91 of file TempHit.h.

91  {
92  return exitMomentumY;
93  }
float exitMomentumY
Exit Y-Momentum of particle.
Definition: TempHit.h:30
float TempHit::GetExitMomentumZ ( ) const
inline

Definition at line 83 of file TempHit.h.

83  {
84  return exitMomentumZ;
85  }
float exitMomentumZ
Exit Z-Momentum of particle.
Definition: TempHit.h:31
float TempHit::GetExitT ( ) const
inline

Definition at line 107 of file TempHit.h.

107  {
108  return exitT;
109  }
float exitT
Exit time of particle.
Definition: TempHit.h:28
float TempHit::GetExitX ( ) const
inline

Definition at line 131 of file TempHit.h.

131  {
132  return exitX;
133  }
float exitX
Exit position X of particle.
Definition: TempHit.h:25
float TempHit::GetExitY ( ) const
inline

Definition at line 123 of file TempHit.h.

123  {
124  return exitY;
125  }
float exitY
Exit position Y of particle.
Definition: TempHit.h:26
float TempHit::GetExitZ ( ) const
inline

Definition at line 115 of file TempHit.h.

115  {
116  return exitZ;
117  }
float exitZ
Exit position Z of particle.
Definition: TempHit.h:27
int TempHit::GetID ( ) const
inline

Definition at line 187 of file TempHit.h.

187  {
188  return ID;
189  }
int ID
Geant4 copy ID.
Definition: TempHit.h:15
int TempHit::GetParentID ( ) const
inline

Definition at line 212 of file TempHit.h.

212  {
213  return ParentID;
214  }
int ParentID
Definition: TempHit.h:17
int TempHit::GetTrackID ( ) const
inline

Definition at line 179 of file TempHit.h.

179  {
180  return trackID;
181  }
int trackID
Geant4 supplied track ID.
Definition: TempHit.h:16
bool TempHit::IsIsfirstinVolume ( ) const
inline

Definition at line 208 of file TempHit.h.

208  {
209  return isfirstinVolume;
210  }
bool isfirstinVolume
Definition: TempHit.h:18
bool TempHit::IsIslastinVolume ( ) const
inline

Definition at line 204 of file TempHit.h.

204  {
205  return islastinVolume;
206  }
bool islastinVolume
Definition: TempHit.h:19
bool TempHit::operator< ( const TempHit other) const
inline

Definition at line 232 of file TempHit.h.

232  {
233  return ID < other.ID ||
234  (!(other.ID < ID) && trackID < other.trackID) ||
235  (!(other.ID < ID) && !(other.trackID < trackID) && exitT < other.exitT);
236 }
int trackID
Geant4 supplied track ID.
Definition: TempHit.h:16
int ID
Geant4 copy ID.
Definition: TempHit.h:15
float exitT
Exit time of particle.
Definition: TempHit.h:28
bool TempHit::operator== ( const TempHit other) const
inline

Definition at line 238 of file TempHit.h.

238  {
239  return (other.trackID == trackID && other.ID == ID);
240 }
int trackID
Geant4 supplied track ID.
Definition: TempHit.h:16
int ID
Geant4 copy ID.
Definition: TempHit.h:15
void TempHit::Print ( )
inline

Definition at line 191 of file TempHit.h.

191  {
192  std::cout << "TempHit: " << std::endl;
193  std::cout << "copy ID: " << ID << " track ID: " << trackID << " Total energy (MeV) deposited: " << energyDeposited << std::endl;
194  /*
195  int iParentID, // Geant4 supplied Parent track ID
196  bool iisfirstinVolume, // Geant4 is first in Volume
197  bool iislastinVolume, // Geant4 is last in Vol/home/wenzel/trajectory/lArTest/include/TempHit.hh:15:18: error: ‘ int TempHit::ID’ is privateume
198  */
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;
202  }
int trackID
Geant4 supplied track ID.
Definition: TempHit.h:16
float exitY
Exit position Y of particle.
Definition: TempHit.h:26
float energyDeposited
total energy deposited for this track ID and time
Definition: TempHit.h:20
float exitMomentumX
Exit X-Momentum of particle.
Definition: TempHit.h:29
float entryY
Entry position Y of particle.
Definition: TempHit.h:22
float entryT
Entry time of particle.
Definition: TempHit.h:24
float exitMomentumZ
Exit Z-Momentum of particle.
Definition: TempHit.h:31
float exitX
Exit position X of particle.
Definition: TempHit.h:25
float exitMomentumY
Exit Y-Momentum of particle.
Definition: TempHit.h:30
int ID
Geant4 copy ID.
Definition: TempHit.h:15
float entryX
Entry position X of particle.
Definition: TempHit.h:21
float exitZ
Exit position Z of particle.
Definition: TempHit.h:27
float entryZ
Entry position Z of particle.
Definition: TempHit.h:23
BEGIN_PROLOG could also be cout
float exitT
Exit time of particle.
Definition: TempHit.h:28
void TempHit::SetEnergyDeposited ( float  ienergyDeposited)
inline

Definition at line 167 of file TempHit.h.

167  {
168  this->energyDeposited = ienergyDeposited;
169  }
float energyDeposited
total energy deposited for this track ID and time
Definition: TempHit.h:20
void TempHit::SetEntryT ( float  ientryT)
inline

Definition at line 135 of file TempHit.h.

135  {
136  this->entryT = ientryT;
137  }
float entryT
Entry time of particle.
Definition: TempHit.h:24
void TempHit::SetEntryX ( float  ientryX)
inline

Definition at line 159 of file TempHit.h.

159  {
160  this->entryX = ientryX;
161  }
float entryX
Entry position X of particle.
Definition: TempHit.h:21
void TempHit::SetEntryY ( float  ientryY)
inline

Definition at line 151 of file TempHit.h.

151  {
152  this->entryY = ientryY;
153  }
float entryY
Entry position Y of particle.
Definition: TempHit.h:22
void TempHit::SetEntryZ ( float  ientryZ)
inline

Definition at line 143 of file TempHit.h.

143  {
144  this->entryZ = ientryZ;
145  }
float entryZ
Entry position Z of particle.
Definition: TempHit.h:23
void TempHit::SetExitMomentumX ( float  iexitMomentumX)
inline

Definition at line 95 of file TempHit.h.

95  {
96  this->exitMomentumX = iexitMomentumX;
97  }
float exitMomentumX
Exit X-Momentum of particle.
Definition: TempHit.h:29
void TempHit::SetExitMomentumY ( float  iexitMomentumY)
inline

Definition at line 87 of file TempHit.h.

87  {
88  this->exitMomentumY = iexitMomentumY;
89  }
float exitMomentumY
Exit Y-Momentum of particle.
Definition: TempHit.h:30
void TempHit::SetExitMomentumZ ( float  iexitMomentumZ)
inline

Definition at line 79 of file TempHit.h.

79  {
80  this->exitMomentumZ = iexitMomentumZ;
81  }
float exitMomentumZ
Exit Z-Momentum of particle.
Definition: TempHit.h:31
void TempHit::SetExitT ( float  iexitT)
inline

Definition at line 103 of file TempHit.h.

103  {
104  this->exitT = iexitT;
105  }
float exitT
Exit time of particle.
Definition: TempHit.h:28
void TempHit::SetExitX ( float  iexitX)
inline

Definition at line 127 of file TempHit.h.

127  {
128  this->exitX = iexitX;
129  }
float exitX
Exit position X of particle.
Definition: TempHit.h:25
void TempHit::SetExitY ( float  iexitY)
inline

Definition at line 119 of file TempHit.h.

119  {
120  this->exitY = iexitY;
121  }
float exitY
Exit position Y of particle.
Definition: TempHit.h:26
void TempHit::SetExitZ ( float  iexitZ)
inline

Definition at line 111 of file TempHit.h.

111  {
112  this->exitZ = iexitZ;
113  }
float exitZ
Exit position Z of particle.
Definition: TempHit.h:27
void TempHit::SetID ( int  iID)
inline

Definition at line 183 of file TempHit.h.

183  {
184  this->ID = iID;
185  }
int ID
Geant4 copy ID.
Definition: TempHit.h:15
void TempHit::SetTrackID ( int  itrackID)
inline

Definition at line 175 of file TempHit.h.

175  {
176  this->trackID = itrackID;
177  }
int trackID
Geant4 supplied track ID.
Definition: TempHit.h:16

Member Data Documentation

float TempHit::energyDeposited
private

total energy deposited for this track ID and time

Definition at line 20 of file TempHit.h.

float TempHit::entryT
private

Entry time of particle.

Definition at line 24 of file TempHit.h.

float TempHit::entryX
private

Entry position X of particle.

Definition at line 21 of file TempHit.h.

float TempHit::entryY
private

Entry position Y of particle.

Definition at line 22 of file TempHit.h.

float TempHit::entryZ
private

Entry position Z of particle.

Definition at line 23 of file TempHit.h.

float TempHit::exitMomentumX
private

Exit X-Momentum of particle.

Definition at line 29 of file TempHit.h.

float TempHit::exitMomentumY
private

Exit Y-Momentum of particle.

Definition at line 30 of file TempHit.h.

float TempHit::exitMomentumZ
private

Exit Z-Momentum of particle.

Definition at line 31 of file TempHit.h.

float TempHit::exitT
private

Exit time of particle.

Definition at line 28 of file TempHit.h.

float TempHit::exitX
private

Exit position X of particle.

Definition at line 25 of file TempHit.h.

float TempHit::exitY
private

Exit position Y of particle.

Definition at line 26 of file TempHit.h.

float TempHit::exitZ
private

Exit position Z of particle.

Definition at line 27 of file TempHit.h.

int TempHit::ID
private

Geant4 copy ID.

Definition at line 15 of file TempHit.h.

bool TempHit::isfirstinVolume
private

Definition at line 18 of file TempHit.h.

bool TempHit::islastinVolume
private

Definition at line 19 of file TempHit.h.

int TempHit::ParentID
private

Definition at line 17 of file TempHit.h.

int TempHit::trackID
private

Geant4 supplied track ID.

Definition at line 16 of file TempHit.h.


The documentation for this class was generated from the following file: