 |
Belle II Software
release-05-01-25
|
11 #ifndef SENSORTRAVERSAL_H
12 #define SENSORTRAVERSAL_H
14 #include <G4ThreeVector.hh>
27 class SensorTraversal {
34 void add(
const G4ThreeVector& position,
double depEnergy,
double visibleEnergy,
double length)
76 void setInitial(
int trackID,
int ladderID,
int sensorID,
int pdgCode,
bool primary,
const G4ThreeVector& position,
77 const G4ThreeVector& momentum,
double time)
105 bool check(
int trackID,
int ladderID,
int sensorID)
144 #endif // SENSORTRAVERSAL_H
const G4ThreeVector & getExitPosition() const
get exit position
double getDepEnergy() const
get total energy deposition
double getEntryTime() const
get entry time
bool check(int trackID, int ladderID, int sensorID)
check if a track belongs to this object
bool isContained() const
return whether the track was contained in the volume so far
bool m_primary
Indication whether track is from a primary particle.
void hasEntered()
indicate that the track originated outisde the current volume
const G4ThreeVector & getEntryMomentum() const
get entry momentum
const G4ThreeVector & getEntryPosition() const
get entry position
G4ThreeVector m_exitPosition
Exit Position.
double m_length
length of the sensor traversal
int getLadderID() const
get the ladder ID
int getTrackID() const
get Geant4 trackID
G4ThreeVector m_entryMomentum
Entry Position.
int getSensorID() const
get the sensor ID
G4ThreeVector m_entryPosition
Entry Position.
Abstract base class for different kinds of events.
double getLength() const
get flight length so far
int getPDGCode() const
get PDG code of the particle
double m_depEnergy
Total deposited energy by this track.
void reset()
reset to be used again
double getVisibleEnergy() const
get visible energy deposition
bool m_contained
Indication wether the track is completely contained inside the volume.
bool isPrimary() const
return whether the track belongs to a primary particle
int m_trackID
Geant4 Track ID.
double m_visibleEnergy
Total visible energy by this track.
void add(const G4ThreeVector &position, double depEnergy, double visibleEnergy, double length)
add a new step
void hasLeft()
indicate that the track left the current volume
void setInitial(int trackID, int ladderID, int sensorID, int pdgCode, bool primary, const G4ThreeVector &position, const G4ThreeVector &momentum, double time)
set initial values for a new track
int m_pdgCode
PDG code for the particle.
double m_entryTime
time the track entered the volume