45 : reclassification_stage (false)
47 theFwdStackingAction =0;
48 theUserAdjointStackingAction =0;
49 theAdjointTrackingAction = anAction;
63 if (!reclassification_stage) classification =
fWaiting;
66 if (theFwdStackingAction) classification = theFwdStackingAction->
ClassifyNewTrack(aTrack);
68 else classification =
fKill;
71 else if (theUserAdjointStackingAction) classification = theUserAdjointStackingAction->
ClassifyNewTrack(aTrack);
72 return classification;
77 { reclassification_stage =
true;
78 if (first_reclassification_stage){
79 if (theUserAdjointStackingAction) theUserAdjointStackingAction->
NewStage();
82 else if (theFwdStackingAction) theFwdStackingAction->
NewStage();
83 first_reclassification_stage =
false;
88 { reclassification_stage =
false;
89 first_reclassification_stage =
true;
90 if (theUserAdjointStackingAction) theUserAdjointStackingAction->
PrepareNewEvent();
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack)
const G4ParticleDefinition * GetParticleDefinition() const
virtual void PrepareNewEvent()
const G4String & GetParticleType() const
size_t GetNbOfAdointTracksReachingTheExternalSurface()
virtual ~G4AdjointStackingAction()
G4bool contains(const std::string &) const
G4ClassificationOfNewTrack
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack)
virtual void PrepareNewEvent()
G4StackManager * stackManager
G4AdjointStackingAction(G4AdjointTrackingAction *anAction)