 |
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 length)
77 void setInitial(
int trackID,
int ladderID,
int sensorID,
int pdgCode,
bool primary,
const G4ThreeVector& position,
78 const G4ThreeVector& localposition,
const G4ThreeVector& momentum,
double time)
106 bool check(
int trackID,
int ladderID,
int sensorID)
145 #endif // SENSORTRAVERSAL_H
int m_trackID
Geant4 Track ID.
G4ThreeVector m_localentryPosition
Local Entry Position.
const G4ThreeVector & getEntryPosition() const
get entry position
void hasLeft()
indicate that the track left the current volume
G4ThreeVector m_entryMomentum
Entry Position.
double m_length
length of the sensor traversal
int getTrackID() const
get Geant4 trackID
double getDepEnergy() const
get total energy deposition
int getSensorID() const
get the sensor ID
G4ThreeVector m_entryPosition
Entry Position.
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
void hasEntered()
indicate that the track originated outisde the current volume
double getLength() const
get flight length so far
G4ThreeVector m_exitPosition
Exit Position.
int getPDGCode() const
get PDG code of the particle
bool m_primary
Indication whether track is from a primary particle.
int getLadderID() const
get the ladder ID
Abstract base class for different kinds of events.
bool isPrimary() const
return whether the track belongs to a primary particle
const G4ThreeVector & getEntryMomentum() const
get entry momentum
void setInitial(int trackID, int ladderID, int sensorID, int pdgCode, bool primary, const G4ThreeVector &position, const G4ThreeVector &localposition, const G4ThreeVector &momentum, double time)
set initial values for a new track
const G4ThreeVector & getLocalEntryPosition() const
get local entry position
bool m_contained
Indication wether the track is completely contained inside the volume.
int m_pdgCode
PDG code for the particle.
void reset()
reset to be used again
double m_entryTime
time the track entered the volume
double m_depEnergy
Total deposited energy by this track.
const G4ThreeVector & getExitPosition() const
get exit position
void add(const G4ThreeVector &position, double depEnergy, double length)
add a new step
double getEntryTime() const
get entry time