ATLAS Offline Software
|
Standard ATLAS stacking action functionality. Mostly taken from the old AthenaStackingAction implementation, but adapted for the new user action design for multi-threading. More...
#include <AthenaStackingAction.h>
Classes | |
struct | Config |
Configuration option struct for AthenaStackingAction. More... | |
Public Member Functions | |
AthenaStackingAction (const Config &config) | |
Constructor with configuration. More... | |
virtual G4ClassificationOfNewTrack | ClassifyNewTrack (const G4Track *track) override |
Classify a new track. More... | |
Protected Member Functions | |
bool | isNeutrino (const G4Track *) const |
Identify track as a neutrino. More... | |
bool | isGamma (const G4Track *) const |
Identify track as a photon. More... | |
bool | isNeutron (const G4Track *) const |
Identify track as a neutron. More... | |
PrimaryParticleInformation * | getPrimaryParticleInformation (const G4Track *track) const |
obtain the PrimaryParticleInformation from the current G4Track More... | |
Protected Attributes | |
Config | m_config |
Configuration options. More... | |
double | m_oneOverWeightNeutron |
double | m_oneOverWeightPhoton |
Standard ATLAS stacking action functionality. Mostly taken from the old AthenaStackingAction implementation, but adapted for the new user action design for multi-threading.
Definition at line 22 of file AthenaStackingAction.h.
|
overridevirtual |
Classify a new track.
Result can be fUrgent, fWaiting, fPostpone, or fKill.
Pass ownership to track. The G4VUserTrackInformation* fpUserInformation member variable set by this method is mutable. G4Tracks are thread-local.
Pass ownership to track. The G4VUserTrackInformation* fpUserInformation member variable set by this method is mutable. G4Tracks are thread-local.
Reimplemented in G4UA::AthenaDebugStackingAction.
Definition at line 59 of file AthenaStackingAction.cxx.
|
protected |
obtain the PrimaryParticleInformation from the current G4Track
Definition at line 155 of file AthenaStackingAction.cxx.
|
protected |
Identify track as a photon.
Definition at line 185 of file AthenaStackingAction.cxx.
|
protected |
Identify track as a neutrino.
It might be useful to move this kind of functionality into some standalong helper function(s).
Definition at line 173 of file AthenaStackingAction.cxx.
|
protected |
Identify track as a neutron.
Definition at line 191 of file AthenaStackingAction.cxx.
|
protected |
Configuration options.
Definition at line 61 of file AthenaStackingAction.h.
|
protected |
Definition at line 78 of file AthenaStackingAction.h.
|
protected |
Definition at line 81 of file AthenaStackingAction.h.