![]() |
Belle II Software release-09-00-03
|
Class to keep track of the traversal of the sensitive volume for one track. More...
#include <SensorTraversal.h>
Public Member Functions | |
| void | add (const G4ThreeVector &position, double depEnergy, double visibleEnergy, double length) |
| add a new step | |
| int | getTrackID () const |
| get Geant4 trackID | |
| int | getLadderID () const |
| get the ladder ID | |
| int | getSensorID () const |
| get the sensor ID | |
| int | getPDGCode () const |
| get PDG code of the particle | |
| double | getDepEnergy () const |
| get total energy deposition | |
| double | getVisibleEnergy () const |
| get visible energy deposition | |
| double | getLength () const |
| get flight length so far | |
| double | getEntryTime () const |
| get entry time | |
| const G4ThreeVector & | getEntryMomentum () const |
| get entry momentum | |
| const G4ThreeVector & | getEntryPosition () const |
| get entry position | |
| const G4ThreeVector & | getExitPosition () const |
| get exit position | |
| bool | isContained () const |
| return whether the track was contained in the volume so far | |
| bool | isPrimary () const |
| return whether the track belongs to a primary particle | |
| void | hasEntered () |
| indicate that the track originated outisde the current volume | |
| 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 | |
| void | reset () |
| reset to be used again | |
| bool | check (int trackID, int ladderID, int sensorID) |
| check if a track belongs to this object | |
Private Attributes | |
| G4ThreeVector | m_entryMomentum |
| Entry Position. | |
| G4ThreeVector | m_entryPosition |
| Entry Position. | |
| G4ThreeVector | m_exitPosition |
| Exit Position. | |
| int | m_trackID {0} |
| Geant4 Track ID. | |
| int | m_ladderID {0} |
| Ladder ID. | |
| int | m_sensorID {0} |
| Sensor ID. | |
| int | m_pdgCode {0} |
| PDG code for the particle. | |
| double | m_depEnergy {0} |
| Total deposited energy by this track. | |
| double | m_visibleEnergy {0} |
| Total visible energy by this track. | |
| double | m_length {0} |
| length of the sensor traversal | |
| double | m_entryTime {0} |
| time the track entered the volume | |
| bool | m_contained {true} |
| Indication wether the track is completely contained inside the volume. | |
| bool | m_primary {false} |
| Indication whether track is from a primary particle. | |
Class to keep track of the traversal of the sensitive volume for one track.
This class keeps the necessary information to create consolidated SimHit objects after a particle finishes its traversal of the sensitive detector
Definition at line 25 of file SensorTraversal.h.
|
inline |
add a new step
| position | position of the step |
| depEnergy | energy deposition |
| visibleEnergy | visible energy deposition |
| length | flight length so far |
Definition at line 33 of file SensorTraversal.h.
|
inline |
check if a track belongs to this object
Definition at line 104 of file SensorTraversal.h.
|
inline |
|
inline |
get entry momentum
Definition at line 58 of file SensorTraversal.h.
|
inline |
get entry position
Definition at line 60 of file SensorTraversal.h.
|
inline |
get entry time
Definition at line 56 of file SensorTraversal.h.
|
inline |
|
inline |
|
inline |
|
inline |
get PDG code of the particle
Definition at line 48 of file SensorTraversal.h.
|
inline |
|
inline |
|
inline |
|
inline |
indicate that the track originated outisde the current volume
Definition at line 70 of file SensorTraversal.h.
|
inline |
|
inline |
return whether the track was contained in the volume so far
Definition at line 65 of file SensorTraversal.h.
|
inline |
return whether the track belongs to a primary particle
Definition at line 67 of file SensorTraversal.h.
|
inline |
reset to be used again
Definition at line 89 of file SensorTraversal.h.
|
inline |
set initial values for a new track
Definition at line 75 of file SensorTraversal.h.
|
private |
Indication wether the track is completely contained inside the volume.
Definition at line 135 of file SensorTraversal.h.
|
private |
Total deposited energy by this track.
Definition at line 127 of file SensorTraversal.h.
|
private |
Entry Position.
Definition at line 113 of file SensorTraversal.h.
|
private |
Entry Position.
Definition at line 115 of file SensorTraversal.h.
|
private |
time the track entered the volume
Definition at line 133 of file SensorTraversal.h.
|
private |
Exit Position.
Definition at line 117 of file SensorTraversal.h.
|
private |
Ladder ID.
Definition at line 121 of file SensorTraversal.h.
|
private |
length of the sensor traversal
Definition at line 131 of file SensorTraversal.h.
|
private |
PDG code for the particle.
Definition at line 125 of file SensorTraversal.h.
|
private |
Indication whether track is from a primary particle.
Definition at line 137 of file SensorTraversal.h.
|
private |
Sensor ID.
Definition at line 123 of file SensorTraversal.h.
|
private |
Geant4 Track ID.
Definition at line 119 of file SensorTraversal.h.
|
private |
Total visible energy by this track.
Definition at line 129 of file SensorTraversal.h.