![]() |
Belle II Software development
|
The Tracking Action class. More...
#include <TrackingAction.h>
Public Member Functions | |
| TrackingAction (MCParticleGraph &mcParticleGraph) | |
| Constructor. | |
| virtual | ~TrackingAction () |
| Destructor. | |
| void | PreUserTrackingAction (const G4Track *track) |
| Checks if the particle associated to the track is already in the MCParticle list. | |
| void | PostUserTrackingAction (const G4Track *track) |
| Updates the data of the MCParticle associated with the Geant4 track. | |
| void | setIgnoreOpticalPhotons (bool ignore=true) |
| Set ignore flag for optical photons if set to true, optical photons will not be stored in MCParticles collection. | |
| void | setIgnoreSecondaries (bool ignore=true) |
| Set ignore flag for low energy Geant-produced secondary particles if set to true, secondaries with kinetic energy above SecondariesEnergyCut will be stored in the MCParticles collection. | |
| void | setSecondariesEnergyCut (double cut_MeV) |
| Set kinetic energy cut for secondaries. | |
| void | setIgnoreBremsstrahlungPhotons (bool ignore=true) |
| Set ignore flag for low energy breamsstrahlung photons if set to true, breamsstrahlung photons with kinetic energy above BremsStrahlungPhotonsEnergyCut will be stored in the MCParticles collection, even if IgnoreSecondaries flag is true. | |
| void | setBremsstrahlungPhotonsEnergyCut (double cut_MeV) |
| Set kinetic energy cut for bremsstrahlung photons. | |
| void | setIgnorePairConversions (bool ignore=true) |
| Set ignore flag for e+ or e- coming from gamma conversions into a pair if set to true, e+ or e- from pair conversions with kinetic energy above PairConversionsEnergyCut will be stored in the MCParticles collection, even if IgnoreSecondaries flag is true. | |
| void | setPairConversionsEnergyCut (double cut_MeV) |
| Set kinetic energy cut for e+ e- pair conversions. | |
| void | setRegionZBackward (double z) |
| Set the backward z limit for improved matching region. | |
| void | setRegionZForward (double z) |
| Set the forward z limit for improved matching region. | |
| void | setRegionRho (double rho) |
| Set the rho limit for improved matching region. | |
| void | setKineticEnergyThreshold (double threshold) |
| Set the kinetic energy threshold for ignoring secondaries. | |
| void | setDistanceThreshold (double threshold) |
| Set the distance threshold for ignoring secondaries. | |
| void | setDoNotStoreEMParticles (bool value) |
| Set whether to check if particle is EM for ignoring secondaries. | |
| void | setDoNotStoreNuclei (bool value) |
| Set whether to check if particle is Nuclei for ignoring secondaries. | |
| void | setUseSeenInECL (bool use) |
| Set whether to check if particle is seen in ECL for ignoring secondaries. | |
| void | setUseDetailedParticleMatching (bool use) |
| Set whether to use detailed particle matching. | |
| void | setStoreTrajectories (int store, double distanceTolerance) |
| Sets the trajectory option to enable storing of the simulated particle trajectories. | |
Protected Attributes | |
| MCParticleGraph & | m_mcParticleGraph |
| Reference to the MCParticle graph which is updated by the tracking action. | |
| bool | m_ignoreOpticalPhotons |
| do not store optical photons in MCParticles | |
| bool | m_ignoreSecondaries |
| do not store secondaries in MCParticles | |
| double | m_secondariesEnergyCut |
| kinetic energy cut for stored secondaries [MeV] | |
| bool | m_ignoreBremsstrahlungPhotons |
| do not store bremsstrahlung photons in MCParticles | |
| double | m_bremsstrahlungPhotonsEnergyCut |
| kinetic energy cut for stored bremsstrahlung photons [MeV] | |
| bool | m_ignorePairConversions |
| do not store e+ or e- from pair conversions in MCparticles | |
| double | m_pairConversionsEnergyCut |
| kinetic energy cut for stored e+ or e- from pair conversions [MeV] | |
| double | m_regionZBackward |
| Region backward z limit. | |
| double | m_regionZForward |
| Region forward z limit. | |
| double | m_regionRho |
| Region rho limit. | |
| double | m_kineticEnergyThreshold |
| kinetic energy threshold | |
| double | m_distanceThreshold |
| distance threshold | |
| bool | m_doNotStoreEMParticles |
| use is EM check | |
| bool | m_doNotStoreNuclei |
| use is Nuclei check | |
| bool | m_useSeenInECL |
| use seen in ECL check | |
| bool | m_useDetailedParticleMatching |
| use detailed particle matching logic to filter secondaries | |
| int | m_storeTrajectories |
| Store trajectories for 0=none, 1=primary or 2=all particles. | |
| double | m_distanceTolerance |
| distance tolerance to merge trajectory points | |
| StoreArray< MCParticleTrajectory > | m_storeMCTrajectories |
| Store array for the Trajectories. | |
| RelationArray | m_relMCTrajectories |
| RelationArry for the relation between MCParticles and Trajectories. | |
The Tracking Action class.
Definition at line 29 of file TrackingAction.h.
|
explicit |
Constructor.
| mcParticleGraph | Reference to the MCParticle graph which is used to add secondary particles. |
Definition at line 28 of file TrackingAction.cc.
|
virtual |
| void PostUserTrackingAction | ( | const G4Track * | track | ) |
Updates the data of the MCParticle associated with the Geant4 track.
| track | Pointer to the Geant4 track which was transported through the geometry. |
Definition at line 144 of file TrackingAction.cc.
| void PreUserTrackingAction | ( | const G4Track * | track | ) |
Checks if the particle associated to the track is already in the MCParticle list.
If not, the particle is added and as UserInformation attached to the track.
| track | Pointer to the Geant4 track which will be transported through the geometry. |
Definition at line 62 of file TrackingAction.cc.
|
inline |
Set kinetic energy cut for bremsstrahlung photons.
| cut_MeV | kinetic energy in MeV |
Definition at line 91 of file TrackingAction.h.
|
inline |
Set the distance threshold for ignoring secondaries.
Definition at line 116 of file TrackingAction.h.
|
inline |
Set whether to check if particle is EM for ignoring secondaries.
Definition at line 118 of file TrackingAction.h.
|
inline |
Set whether to check if particle is Nuclei for ignoring secondaries.
Definition at line 120 of file TrackingAction.h.
|
inline |
Set ignore flag for low energy breamsstrahlung photons if set to true, breamsstrahlung photons with kinetic energy above BremsStrahlungPhotonsEnergyCut will be stored in the MCParticles collection, even if IgnoreSecondaries flag is true.
| ignore | flag |
Definition at line 85 of file TrackingAction.h.
|
inline |
Set ignore flag for optical photons if set to true, optical photons will not be stored in MCParticles collection.
| ignore | flag |
Definition at line 64 of file TrackingAction.h.
|
inline |
Set ignore flag for e+ or e- coming from gamma conversions into a pair if set to true, e+ or e- from pair conversions with kinetic energy above PairConversionsEnergyCut will be stored in the MCParticles collection, even if IgnoreSecondaries flag is true.
| ignore | flag |
Definition at line 99 of file TrackingAction.h.
|
inline |
Set ignore flag for low energy Geant-produced secondary particles if set to true, secondaries with kinetic energy above SecondariesEnergyCut will be stored in the MCParticles collection.
| ignore | flag |
Definition at line 71 of file TrackingAction.h.
|
inline |
Set the kinetic energy threshold for ignoring secondaries.
Definition at line 114 of file TrackingAction.h.
|
inline |
Set kinetic energy cut for e+ e- pair conversions.
| cut_MeV | kinetic energy in MeV |
Definition at line 105 of file TrackingAction.h.
|
inline |
Set the rho limit for improved matching region.
Definition at line 112 of file TrackingAction.h.
|
inline |
Set the backward z limit for improved matching region.
Definition at line 108 of file TrackingAction.h.
|
inline |
Set the forward z limit for improved matching region.
Definition at line 110 of file TrackingAction.h.
|
inline |
Set kinetic energy cut for secondaries.
| cut_MeV | kinetic energy in MeV |
Definition at line 77 of file TrackingAction.h.
| void setStoreTrajectories | ( | int | store, |
| double | distanceTolerance ) |
Sets the trajectory option to enable storing of the simulated particle trajectories.
Definition at line 46 of file TrackingAction.cc.
|
inline |
Set whether to use detailed particle matching.
Definition at line 124 of file TrackingAction.h.
|
inline |
Set whether to check if particle is seen in ECL for ignoring secondaries.
Definition at line 122 of file TrackingAction.h.
|
protected |
kinetic energy cut for stored bremsstrahlung photons [MeV]
Definition at line 138 of file TrackingAction.h.
|
protected |
distance threshold
Definition at line 146 of file TrackingAction.h.
|
protected |
distance tolerance to merge trajectory points
Definition at line 154 of file TrackingAction.h.
|
protected |
use is EM check
Definition at line 147 of file TrackingAction.h.
|
protected |
use is Nuclei check
Definition at line 148 of file TrackingAction.h.
|
protected |
do not store bremsstrahlung photons in MCParticles
Definition at line 137 of file TrackingAction.h.
|
protected |
do not store optical photons in MCParticles
Definition at line 134 of file TrackingAction.h.
|
protected |
do not store e+ or e- from pair conversions in MCparticles
Definition at line 139 of file TrackingAction.h.
|
protected |
do not store secondaries in MCParticles
Definition at line 135 of file TrackingAction.h.
|
protected |
kinetic energy threshold
Definition at line 145 of file TrackingAction.h.
|
protected |
Reference to the MCParticle graph which is updated by the tracking action.
Definition at line 132 of file TrackingAction.h.
|
protected |
kinetic energy cut for stored e+ or e- from pair conversions [MeV]
Definition at line 140 of file TrackingAction.h.
|
protected |
Region rho limit.
Definition at line 144 of file TrackingAction.h.
|
protected |
Region backward z limit.
Definition at line 142 of file TrackingAction.h.
|
protected |
Region forward z limit.
Definition at line 143 of file TrackingAction.h.
|
protected |
RelationArry for the relation between MCParticles and Trajectories.
Definition at line 159 of file TrackingAction.h.
|
protected |
kinetic energy cut for stored secondaries [MeV]
Definition at line 136 of file TrackingAction.h.
|
protected |
Store array for the Trajectories.
Definition at line 157 of file TrackingAction.h.
|
protected |
Store trajectories for 0=none, 1=primary or 2=all particles.
Definition at line 153 of file TrackingAction.h.
|
protected |
use detailed particle matching logic to filter secondaries
Definition at line 150 of file TrackingAction.h.
|
protected |
use seen in ECL check
Definition at line 149 of file TrackingAction.h.