39 for (
G4int 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 (
G4int 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;
std::ostringstream G4ExceptionDescription
static void ActivateNonPhysicsBiasing(G4ProcessManager *pmanager, G4String nonPhysicsProcessName="")
void SetProcessOrderingToLast(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
G4int GetProcessOrdering(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
const G4String & GetParticleName() const
G4ProcessVector * GetProcessList() const
void SetProcessOrderingToSecond(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
G4ParticleDefinition * GetParticleType() const
G4ProcessType GetProcessType() const
static G4ParallelGeometriesLimiterProcess * AddLimiterProcess(G4ProcessManager *pmanager, const G4String &processName="biasLimiter")
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4VProcess * RemoveProcess(G4VProcess *aProcess)
G4int GetPDGEncoding() const
static G4bool ActivatePhysicsBiasing(G4ProcessManager *pmanager, G4String physicsProcessToBias, G4String wrappedName="")