103 if (!fWas_ResetChordFinders_already_called)
106 fWas_ResetChordFinders_already_called=
true;
122 if (userPrimaryAction)
142 std::vector<G4ChordFinder*> user_chord_finders;
143 std::vector<G4double> user_largest_acceptable_step;
144 for (
size_t i=0;i<fVecChordFinders.size();i++)
146 user_largest_acceptable_step.push_back(-1.);
147 if (fVecChordFinders[i])
149 user_chord_finders.push_back(fVecFieldManagers[i]->GetChordFinder());
150 fVecChordFinders[i]->SetDeltaChord(user_chord_finders[i]->GetDeltaChord());
151 fVecFieldManagers[i]->SetChordFinder(fVecChordFinders[i]);
153 else user_chord_finders.push_back(0);
171 G4double previous_largest_acceptable_step =
179 for (
G4int il=0; il<n_of_lines;il++)
186 for (
size_t i=0; i< fVecEquationOfMotion.size();i++)
188 if (fVecEquationOfMotion[i])
189 fVecEquationOfMotion[i]->SetBackwardDirectionOfIntegration(
true);
195 for (
size_t i=0; i < fVecEquationOfMotion.size();i++)
197 if (fVecEquationOfMotion[i])
198 fVecEquationOfMotion[i]->SetBackwardDirectionOfIntegration(
false);
225 for (
size_t i=0;i<fVecFieldManagers.size();i++)
227 if (user_chord_finders[i])
228 fVecFieldManagers[i]->SetChordFinder(user_chord_finders[i]);
const G4VUserPrimaryGeneratorAction * GetUserPrimaryGeneratorAction() const
virtual void BeamOn(G4int n_event, const char *macroFile=0, G4int n_select=-1)
const G4UserSteppingAction * GetUserSteppingAction() const
const G4UserStackingAction * GetUserStackingAction() const
const G4UserEventAction * GetUserEventAction() const
const G4UserTrackingAction * GetUserTrackingAction() const
static G4TransportationManager * GetTransportationManager()
static G4RunManager * GetRunManager()
void SetUserPrimaryAction(G4VUserPrimaryGeneratorAction *anAction)
const G4UserRunAction * GetUserRunAction() const
void SetLargestAcceptableStep(G4double newBigDist)
G4PropagatorInField * GetPropagatorInField() const
G4double GetLargestAcceptableStep()
virtual void SetUserAction(G4UserRunAction *userAction)