38 for (
G4int ip = 0 ; ip < vprocess->
size() ; ip++)
40 if ( (*vprocess)[ip]->GetProcessName() == physicsProcessToBias )
42 physicsProcess = (*vprocess)[ip];
48 if ( physicsProcess == 0 )
return false;
52 if ( ( processType != 2 ) &&
53 ( processType != 3 ) &&
54 ( processType != 4 ) &&
55 ( processType != 6 ) )
59 if ( dynamic_cast< G4BiasingProcessInterface* >( physicsProcess ) )
return false;
68 if ( removed != physicsProcess )
71 ed <<
"Internal inconsistency in processes handling. Please report !" <<
G4endl;
72 G4Exception(
"G4BiasingHelper::ActivatePhysicsBiasing(...)",
84 if ( alongStepIndex == -1 ) alongStepIndex =
ordDefault;
std::ostringstream G4ExceptionDescription
G4int GetProcessOrdering(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
G4ProcessType GetProcessType() const
static void ActivateNonPhysicsBiasing(G4ProcessManager *pmanager, G4String nonPhysicsProcessName="")
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
static G4bool ActivatePhysicsBiasing(G4ProcessManager *pmanager, G4String physicsProcessToBias, G4String wrappedName="")
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4VProcess * RemoveProcess(G4VProcess *aProcess)
G4ProcessVector * GetProcessList() const