57 if(!is_adjoint_tracking_mode)
59 if (!did_one_adj_part_reach_ext_source_during_event)
64 if(theUserFwdSteppingAction)
74 did_adj_part_reach_ext_source =
false;
75 if (theUserAdjointSteppingAction)
94 did_adj_part_reach_ext_source =
false;
105 if (theG4AdjointCrossSurfChecker
106 ->CrossingOneOfTheRegisteredSurface(aStep, surface_name,
107 crossing_pos, cos_to_surface, GoingIn))
109 if (surface_name ==
"ExternalSource")
112 did_adj_part_reach_ext_source =
true;
113 did_one_adj_part_reach_ext_source_during_event =
true;
121 last_pos = crossing_pos;
124 else if (surface_name ==
"AdjointSource" && GoingIn)
126 did_adj_part_reach_ext_source =
false;
136 did_adj_part_reach_ext_source =
true;
137 did_one_adj_part_reach_ext_source_during_event =
true;
142 last_pos = crossing_pos;
static G4AdjointCrossSurfChecker * GetInstance()
~G4AdjointSteppingAction()
void UserSteppingAction(const G4Step *)
G4AdjointSteppingAction()
const G4String & GetParticleType() const
G4int GetBaryonNumber() const
G4StepStatus GetStepStatus() const
G4Track * GetTrack() const
G4StepPoint * GetPostStepPoint() const
void SetTrackStatus(const G4TrackStatus aTrackStatus)
G4double GetWeight() const
G4ThreeVector GetMomentum() const
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
virtual void UserSteppingAction(const G4Step *)