39 for (std::size_t ip = 0 ; ip < vprocess->
size() ; ++ip)
41 if ( (*vprocess)[ip]->GetProcessName() == physicsProcessToBias )
43 physicsProcess = (*vprocess)[ip];
49 if ( physicsProcess == 0 )
return false;
53 if ( ( processType != 2 ) &&
54 ( processType != 3 ) &&
55 ( processType != 4 ) &&
56 ( processType != 6 ) )
60 if ( dynamic_cast< G4BiasingProcessInterface* >( physicsProcess ) )
return false;
69 if ( removed != physicsProcess )
72 ed <<
"Internal inconsistency in processes handling. Please report !" <<
G4endl;
73 G4Exception(
"G4BiasingHelper::ActivatePhysicsBiasing(...)",
85 if ( alongStepIndex == -1 ) alongStepIndex =
ordDefault;
113 for (std::size_t i = 0 ; i < processList->
size() ; ++i)
116 if ( dynamic_cast< G4ParallelGeometriesLimiterProcess* >( process ) )
121 ed <<
"Trying to re-add a G4ParallelGeometriesLimiterProcess process to the process manager for '"<<
123 <<
" while one is already present." <<
G4endl;
124 G4Exception(
"G4BiasingHelper::AddBiasingProcessLimiter(G4ProcessManager* pmanager)",
139 toReturn = biasingLimiter;