#include <G4AdjointStackingAction.hh>
Definition at line 53 of file G4AdjointStackingAction.hh.
◆ G4AdjointStackingAction()
◆ ~G4AdjointStackingAction()
G4AdjointStackingAction::~G4AdjointStackingAction |
( |
| ) |
|
|
virtual |
◆ ClassifyNewTrack()
Reimplemented from G4UserStackingAction.
Definition at line 54 of file G4AdjointStackingAction.cc.
55{
59 if (!adjoint_mode )
60 {
61 if (!reclassification_stage)
62 {
64 }
65 else
66 {
68 {
69 if (theFwdStackingAction)
70 {
72 }
73 }
74 else
75 {
76 classification =
fKill;
77 }
78 }
79 }
80 else if (theUserAdjointStackingAction)
81 {
83 }
84 return classification;
85}
G4ClassificationOfNewTrack
std::size_t GetNbOfAdointTracksReachingTheExternalSurface()
const G4String & GetParticleType() const
G4bool contains(const std::string &) const
const G4ParticleDefinition * GetParticleDefinition() const
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack)
◆ NewStage()
void G4AdjointStackingAction::NewStage |
( |
| ) |
|
|
virtual |
Reimplemented from G4UserStackingAction.
Definition at line 89 of file G4AdjointStackingAction.cc.
90{
91 reclassification_stage = true;
92 if (first_reclassification_stage)
93 {
94 if (theUserAdjointStackingAction)
95 {
96 theUserAdjointStackingAction->
NewStage();
97 }
99 }
100 else if (theFwdStackingAction) theFwdStackingAction->
NewStage();
101 {
102 first_reclassification_stage = false;
103 }
104}
G4StackManager * stackManager
◆ PrepareNewEvent()
void G4AdjointStackingAction::PrepareNewEvent |
( |
| ) |
|
|
virtual |
Reimplemented from G4UserStackingAction.
Definition at line 108 of file G4AdjointStackingAction.cc.
109{
110 reclassification_stage = false;
111 first_reclassification_stage = true;
112 if (theUserAdjointStackingAction)
113 {
115 }
116}
virtual void PrepareNewEvent()
◆ SetAdjointMode()
void G4AdjointStackingAction::SetAdjointMode |
( |
G4bool |
aBool | ) |
|
|
inline |
◆ SetKillTracks()
void G4AdjointStackingAction::SetKillTracks |
( |
G4bool |
aBool | ) |
|
|
inline |
◆ SetUserAdjointStackingAction()
◆ SetUserFwdStackingAction()
The documentation for this class was generated from the following files: