64 if(!is_adjoint_tracking_mode){
65 if (!did_one_adj_part_reach_ext_source_during_event) {
69 if(theUserFwdSteppingAction)
75 did_adj_part_reach_ext_source=
false;
76 if (theUserAdjointSteppingAction) theUserAdjointSteppingAction->
UserSteppingAction(aStep);
89 did_adj_part_reach_ext_source=
false;
115 if (surface_name ==
"ExternalSource") {
117 did_adj_part_reach_ext_source=
true;
118 did_one_adj_part_reach_ext_source_during_event=
true;
125 last_pos = crossing_pos;
128 else if (surface_name ==
"AdjointSource" && GoingIn) {
129 did_adj_part_reach_ext_source=
false;
137 did_adj_part_reach_ext_source=
true;
138 did_one_adj_part_reach_ext_source_during_event=
true;
143 last_pos = crossing_pos;
void SetTrackStatus(const G4TrackStatus aTrackStatus)
G4ParticleDefinition * GetDefinition() const
G4StepStatus GetStepStatus() const
virtual void UserSteppingAction(const G4Step *)
G4double GetKineticEnergy() const
const G4String & GetParticleType() const
G4ThreeVector GetMomentum() const
G4bool CrossingOneOfTheRegisteredSurface(const G4Step *aStep, G4String &surface_name, G4ThreeVector &crossing_pos, G4double &cos_to_surface, G4bool &GoingIn)
G4StepPoint * GetPostStepPoint() const
G4double GetWeight() const
G4Track * GetTrack() const
G4int GetBaryonNumber() const