Belle II Software  release-08-01-10
SensorTraversal Class Reference

Class to keep track of the traversal of the sensitive volume for one track. More...

#include <SensorTraversal.h>

Inheritance diagram for SensorTraversal:
Collaboration diagram for SensorTraversal:

Public Types

typedef std::pair< iterator, iterator > range
 Iterator pair for a set of points.
 

Public Member Functions

 SensorTraversal ()=default
 Use default constructor.
 
void add (const G4ThreeVector &position, const G4ThreeVector &momentum, double electrons, double time, double length)
 add a new step More...
 
int getTrackID () const
 get Geant4 trackID
 
int getPDGCode () const
 get PDG code of the particle
 
double getElectrons () const
 get total number of deposited electrons so far
 
double getLength () const
 get flight length so far
 
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 pdgCode, bool primary)
 set initial values for a new track
 
void reset ()
 reset to be used again
 

Public Attributes

elements
 STL member.
 

Private Attributes

int m_trackID {0}
 Geant4 Track ID.
 
int m_pdgCode {0}
 PDG code for the particle.
 
double m_electrons {0}
 Total number of electrons deposited by this track.
 
double m_length {0}
 length of the sensor traversal
 
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.
 

Detailed Description

Class to keep track of the traversal of the sensitive volume for one track.

This class keeps the necessary information to create consolidated SimHit and TrueHit objects after a particle finishes its traversal of the sensitive detector

Definition at line 53 of file SensorTraversal.h.

Member Function Documentation

◆ add()

void add ( const G4ThreeVector &  position,
const G4ThreeVector &  momentum,
double  electrons,
double  time,
double  length 
)
inline

add a new step

Parameters
positionposition of the step
momentummomentum of the step
electronsnumber of deposited electrons during step
timeof the step
lengthof the step

Definition at line 68 of file SensorTraversal.h.


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