LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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.

References operator<(), operator==(), and fhicl::other.

36 {}
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 42 of file TempHit.h.

59  : ID(iID)
60  , trackID(itrackID)
61  , ParentID(iParentID)
62  , isfirstinVolume(iisfirstinVolume)
63  , islastinVolume(iislastinVolume)
64  , energyDeposited(ienergyDeposited)
65  , entryX(ientryX)
66  , entryY(ientryY)
67  , entryZ(ientryZ)
68  , entryT(ientryT)
69  , exitX(iexitX)
70  , exitY(iexitY)
71  , exitZ(iexitZ)
72  , exitT(iexitT)
73  , exitMomentumX(iexitMomentumX)
74  , exitMomentumY(iexitMomentumY)
75  , exitMomentumZ(iexitMomentumZ)
76  {}
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 124 of file TempHit.h.

References energyDeposited.

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

Definition at line 108 of file TempHit.h.

References entryT.

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

Definition at line 120 of file TempHit.h.

References entryX.

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

Definition at line 116 of file TempHit.h.

References entryY.

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

Definition at line 112 of file TempHit.h.

References entryZ.

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

Definition at line 88 of file TempHit.h.

References exitMomentumX.

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

Definition at line 84 of file TempHit.h.

References exitMomentumY.

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

Definition at line 80 of file TempHit.h.

References exitMomentumZ.

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

Definition at line 92 of file TempHit.h.

References exitT.

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

Definition at line 104 of file TempHit.h.

References exitX.

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

Definition at line 100 of file TempHit.h.

References exitY.

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

Definition at line 96 of file TempHit.h.

References exitZ.

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

Definition at line 132 of file TempHit.h.

References ID.

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

Definition at line 156 of file TempHit.h.

References ParentID.

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

Definition at line 128 of file TempHit.h.

References trackID.

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

Definition at line 154 of file TempHit.h.

References isfirstinVolume.

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

Definition at line 152 of file TempHit.h.

References islastinVolume.

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

Definition at line 174 of file TempHit.h.

References exitT, ID, and trackID.

Referenced by TempHit().

175 {
176  return ID < other.ID || (!(other.ID < ID) && trackID < other.trackID) ||
177  (!(other.ID < ID) && !(other.trackID < trackID) && exitT < other.exitT);
178 }
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 180 of file TempHit.h.

References ID, and trackID.

Referenced by TempHit().

181 {
182  return (other.trackID == trackID && other.ID == ID);
183 }
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 134 of file TempHit.h.

135  {
136  std::cout << "TempHit: " << std::endl;
137  std::cout << "copy ID: " << ID << " track ID: " << trackID
138  << " Total energy (MeV) deposited: " << energyDeposited << std::endl;
139  /*
140  int iParentID, // Geant4 supplied Parent track ID
141  bool iisfirstinVolume, // Geant4 is first in Volume
142  bool iislastinVolume, // Geant4 is last in Vol/home/wenzel/trajectory/lArTest/include/TempHit.hh:15:18: error: ‘ int TempHit::ID’ is privateume
143  */
144  std::cout << "Begin position x,y,z (cm) time (ns) of particle: " << entryX << " " << entryY
145  << " " << entryZ << " " << entryT << std::endl;
146  std::cout << "end position x,y,z (cm) time (ns) of particle: " << exitX << " " << exitY << " "
147  << exitZ << " " << exitT << std::endl;
148  std::cout << "end momentum px,py,pz (MeV) of particle: " << exitMomentumX << " "
149  << exitMomentumY << " " << exitMomentumZ << std::endl;
150  }
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
float exitT
Exit time of particle.
Definition: TempHit.h:28
void TempHit::SetEnergyDeposited ( float  ienergyDeposited)
inline

Definition at line 122 of file TempHit.h.

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

Definition at line 106 of file TempHit.h.

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

Definition at line 118 of file TempHit.h.

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

Definition at line 114 of file TempHit.h.

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

Definition at line 110 of file TempHit.h.

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

Definition at line 86 of file TempHit.h.

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

Definition at line 82 of file TempHit.h.

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

Definition at line 78 of file TempHit.h.

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

Definition at line 90 of file TempHit.h.

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

Definition at line 102 of file TempHit.h.

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

Definition at line 98 of file TempHit.h.

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

Definition at line 94 of file TempHit.h.

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

Definition at line 130 of file TempHit.h.

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

Definition at line 126 of file TempHit.h.

126 { this->trackID = itrackID; }
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.

Referenced by GetEnergyDeposited().

float TempHit::entryT
private

Entry time of particle.

Definition at line 24 of file TempHit.h.

Referenced by GetEntryT().

float TempHit::entryX
private

Entry position X of particle.

Definition at line 21 of file TempHit.h.

Referenced by GetEntryX().

float TempHit::entryY
private

Entry position Y of particle.

Definition at line 22 of file TempHit.h.

Referenced by GetEntryY().

float TempHit::entryZ
private

Entry position Z of particle.

Definition at line 23 of file TempHit.h.

Referenced by GetEntryZ().

float TempHit::exitMomentumX
private

Exit X-Momentum of particle.

Definition at line 29 of file TempHit.h.

Referenced by GetExitMomentumX().

float TempHit::exitMomentumY
private

Exit Y-Momentum of particle.

Definition at line 30 of file TempHit.h.

Referenced by GetExitMomentumY().

float TempHit::exitMomentumZ
private

Exit Z-Momentum of particle.

Definition at line 31 of file TempHit.h.

Referenced by GetExitMomentumZ().

float TempHit::exitT
private

Exit time of particle.

Definition at line 28 of file TempHit.h.

Referenced by GetExitT(), and operator<().

float TempHit::exitX
private

Exit position X of particle.

Definition at line 25 of file TempHit.h.

Referenced by GetExitX().

float TempHit::exitY
private

Exit position Y of particle.

Definition at line 26 of file TempHit.h.

Referenced by GetExitY().

float TempHit::exitZ
private

Exit position Z of particle.

Definition at line 27 of file TempHit.h.

Referenced by GetExitZ().

int TempHit::ID
private

Geant4 copy ID.

Definition at line 15 of file TempHit.h.

Referenced by GetID(), operator<(), and operator==().

bool TempHit::isfirstinVolume
private

Definition at line 18 of file TempHit.h.

Referenced by IsIsfirstinVolume().

bool TempHit::islastinVolume
private

Definition at line 19 of file TempHit.h.

Referenced by IsIslastinVolume().

int TempHit::ParentID
private

Definition at line 17 of file TempHit.h.

Referenced by GetParentID().

int TempHit::trackID
private

Geant4 supplied track ID.

Definition at line 16 of file TempHit.h.

Referenced by GetTrackID(), operator<(), and operator==().


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