109 G4RunManager* theRunManager = G4RunManager::GetRunManager();
110 auto user_run_action =
112 theRunManager->SetUserAction(
this);
114 auto user_stepping_action =
118 auto userPrimaryAction =
120 if (userPrimaryAction)
124 auto user_event_action =
128 auto user_tracking_action =
131 theRunManager->SetUserAction(aNullTrackingAction);
133 auto user_stacking_action =
136 theRunManager->SetUserAction(aNullStackingAction);
140 std::vector<G4ChordFinder*> user_chord_finders;
141 std::vector<G4double> user_largest_acceptable_step;
144 user_largest_acceptable_step.push_back(-1.);
151 else user_chord_finders.push_back(
nullptr);
168 G4TransportationManager::GetTransportationManager();
169 G4double previous_largest_acceptable_step =
170 tmanager->GetPropagatorInField()->GetLargestAcceptableStep();
172 tmanager->GetPropagatorInField()
177 for (G4int il=0; il<n_of_lines;il++)
189 theRunManager->BeamOn(1);
198 theRunManager->BeamOn(1);
209 tmanager->GetPropagatorInField()
210 ->SetLargestAcceptableStep(previous_largest_acceptable_step);
214 theRunManager->SetUserAction(user_run_action);
215 theRunManager->SetUserAction(user_event_action);
216 theRunManager->SetUserAction(userPrimaryAction);
217 theRunManager->SetUserAction(user_stepping_action);
218 theRunManager->SetUserAction(user_tracking_action);
219 theRunManager->SetUserAction(user_stacking_action);
225 if (user_chord_finders[i])
289 ->GetFieldManager());
299 new G4MagInt_Driver(0.01*mm,pStepper,pStepper->GetNumberOfVariables());
309 for (
size_t i=0; i<theVolumeStore->size();i++)
311 if ((*theVolumeStore)[i]->GetFieldManager())