Tracks particle information for photon origin classification.
More...
This singleton class stores track ID to particle type and creator process mappings, which are used by OMSimSensitiveDetector to classify photon origins.
|
|
void | PreUserTrackingAction (const G4Track *) |
| |
|
void | PostUserTrackingAction (const G4Track *) |
| |
|
virtual void | PreUserTrackingAction (const G4Track *track) override |
| |
|
virtual void | PostUserTrackingAction (const G4Track *track) override |
| |
| std::string | GetParticleType (G4int trackID) const |
| | Get the particle type for a given track ID.
|
| |
| std::string | GetCreatorProcess (G4int trackID) const |
| | Get the creator process for a given track ID.
|
| |
|
|
std::unordered_map< G4int, std::string > | m_trackIDToParticleTypeMap |
| |
|
std::unordered_map< G4int, std::string > | m_trackIDToCreatorProcessMap |
| |
◆ GetCreatorProcess()
| std::string OMSimTrackingAction::GetCreatorProcess |
( |
G4int |
trackID | ) |
const |
- Parameters
-
| trackID | The track ID to look up. |
- Returns
- The process name (e.g., "muIoni", "Cerenkov") or "Unknown" if not found.
◆ GetInstance()
- Returns
- Reference to the singleton instance.
- Exceptions
-
| std::runtime_error | if instance not yet created. |
◆ GetParticleType()
| std::string OMSimTrackingAction::GetParticleType |
( |
G4int |
trackID | ) |
const |
- Parameters
-
| trackID | The track ID to look up. |
- Returns
- The particle name (e.g., "mu-", "e-") or "Unknown" if not found.
◆ HasInstance()
| static bool OMSimTrackingAction::HasInstance |
( |
| ) |
|
|
inlinestatic |
- Returns
- true if instance exists, false otherwise.
The documentation for this class was generated from the following files: