 |
Belle II Software
release-05-02-19
|
12 #ifndef VXD_SIMULATION_SENSORTRAVERSAL_H
13 #define VXD_SIMULATION_SENSORTRAVERSAL_H
15 #include <G4ThreeVector.hh>
34 StepInformation(
const G4ThreeVector& stepPosition,
const G4ThreeVector& stepMomentum,
double stepElectrons,
double stepTime,
57 typedef std::pair<iterator, iterator>
range;
67 void add(
const G4ThreeVector& position,
const G4ThreeVector& momentum,
double electrons,
double time,
double length)
129 #endif // VXD_SIMULATION_SENSORTRAVERSAL_H
bool m_primary
Indication whether track is from a primary particle.
Class to keep track of the traversal of the sensitive volume for one track.
double getElectrons() const
get total number of deposited electrons so far
double m_electrons
Total number of electrons deposited by this track.
double getLength() const
get flight length so far
double m_length
length of the sensor traversal
void add(const G4ThreeVector &position, const G4ThreeVector &momentum, double electrons, double time, double length)
add a new step
void hasLeft()
indicate that the track left the current volume
SensorTraversal()=default
Use default constructor.
int getPDGCode() const
get PDG code of the particle
void setInitial(int trackID, int pdgCode, bool primary)
set initial values for a new track
int getTrackID() const
get Geant4 trackID
Abstract base class for different kinds of events.
std::pair< iterator, iterator > range
Iterator pair for a set of points.
void reset()
reset to be used again
bool isPrimary() const
return whether the track belongs to a primary particle
int m_pdgCode
PDG code for the particle.
int m_trackID
Geant4 Track ID.
void hasEntered()
indicate that the track originated outisde the current volume
bool m_contained
Indication wether the track is completely contained inside the volume.
bool isContained() const
return whether the track was contained in the volume so far