#include <G4AdjointStackingAction.hh>
Definition at line 53 of file G4AdjointStackingAction.hh.
◆ G4AdjointStackingAction()
◆ ~G4AdjointStackingAction()
G4AdjointStackingAction::~G4AdjointStackingAction |
( |
| ) |
|
|
overridedefault |
◆ ClassifyNewTrack()
Reimplemented from G4UserStackingAction.
Definition at line 49 of file G4AdjointStackingAction.cc.
50{
54 if (!adjoint_mode )
55 {
56 if (!reclassification_stage)
57 {
59 }
60 else
61 {
63 {
64 if (theFwdStackingAction != nullptr)
65 {
67 }
68 }
69 else
70 {
71 classification =
fKill;
72 }
73 }
74 }
75 else if (theUserAdjointStackingAction != nullptr)
76 {
78 }
79 return classification;
80}
G4ClassificationOfNewTrack
std::size_t GetNbOfAdointTracksReachingTheExternalSurface()
const G4String & GetParticleType() const
const G4ParticleDefinition * GetParticleDefinition() const
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack)
G4bool contains(const G4String &str, std::string_view ss)
Check if a string contains a given substring.
◆ NewStage()
void G4AdjointStackingAction::NewStage |
( |
| ) |
|
|
overridevirtual |
Reimplemented from G4UserStackingAction.
Definition at line 84 of file G4AdjointStackingAction.cc.
85{
86 reclassification_stage = true;
87 if (first_reclassification_stage)
88 {
89 if (theUserAdjointStackingAction != nullptr)
90 {
91 theUserAdjointStackingAction->
NewStage();
92 }
94 }
95 else if (theFwdStackingAction !=
nullptr) theFwdStackingAction->
NewStage();
96 {
97 first_reclassification_stage = false;
98 }
99}
G4StackManager * stackManager
◆ PrepareNewEvent()
void G4AdjointStackingAction::PrepareNewEvent |
( |
| ) |
|
|
overridevirtual |
Reimplemented from G4UserStackingAction.
Definition at line 103 of file G4AdjointStackingAction.cc.
104{
105 reclassification_stage = false;
106 first_reclassification_stage = true;
107 if (theUserAdjointStackingAction != nullptr)
108 {
110 }
111}
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: