ATLAS Offline Software
Loading...
Searching...
No Matches
AthenaStackingAction.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef G4ATLASALG_ATHENASTACKINGACTION_H
6#define G4ATLASALG_ATHENASTACKINGACTION_H
7
8#include "G4UserStackingAction.hh"
9
11
12namespace G4UA
13{
14
22 class AthenaStackingAction : public G4UserStackingAction
23 {
24
25 public:
26
49
52
55 virtual G4ClassificationOfNewTrack
56 ClassifyNewTrack(const G4Track* track) override;
57
58 protected:
59
62
66 bool isNeutrino(const G4Track*) const;
67
69 bool isGamma(const G4Track*) const;
70
72 bool isNeutron(const G4Track*) const;
73
76
77 // one over m_config.russianRouletteNeutronWeight
79
80 // one over m_config.russianRoulettePhotonWeight
82
83 }; // class AthenaStackingAction
84
85} // namespace G4UA
86
87#endif
Config m_config
Configuration options.
AthenaStackingAction(const Config &config)
Constructor with configuration.
bool isNeutrino(const G4Track *) const
Identify track as a neutrino.
bool isNeutron(const G4Track *) const
Identify track as a neutron.
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *track) override
Classify a new track.
bool isGamma(const G4Track *) const
Identify track as a photon.
PrimaryParticleInformation * getPrimaryParticleInformation(const G4Track *track) const
obtain the PrimaryParticleInformation from the current G4Track
This class is attached to G4PrimaryParticle objects as UserInformation.
Configuration option struct for AthenaStackingAction.
bool applyPRR
Apply the Photon Russian Roulette.
bool killAllNeutrinos
Flag to toggle killing neutrinos at tracking stage.
bool applyNRR
Apply the Neutron Russian Roulette.
double russianRoulettePhotonThreshold
Energy threshold for the Photon Russian Roulette.
double russianRouletteNeutronWeight
Weight for the Neutron Russian Roulette.
double russianRouletteNeutronThreshold
Energy threshold for the Neutron Russian Roulette.
double photonEnergyCut
Photon energy cut.
double russianRoulettePhotonWeight
Weight for the Photon Russian Roulette.