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 ) )
69 if ( removed != physicsProcess )
72 ed <<
"Internal inconsistency in processes handling. Please report !" <<
G4endl;
73 G4Exception(
"G4BiasingHelper::ActivatePhysicsBiasing(...)",
85 if ( alongStepIndex == -1 ) alongStepIndex =
ordDefault;
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;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
static void ActivateNonPhysicsBiasing(G4ProcessManager *pmanager, G4String nonPhysicsProcessName="")
static G4ParallelGeometriesLimiterProcess * AddLimiterProcess(G4ProcessManager *pmanager, const G4String &processName="biasLimiter")
static G4bool ActivatePhysicsBiasing(G4ProcessManager *pmanager, G4String physicsProcessToBias, G4String wrappedName="")
G4int GetPDGEncoding() const
const G4String & GetParticleName() const
G4ParticleDefinition * GetParticleType() const
G4int GetProcessOrdering(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
void SetProcessOrderingToSecond(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
G4ProcessVector * GetProcessList() const
G4VProcess * RemoveProcess(G4VProcess *aProcess)
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
void SetProcessOrderingToLast(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
G4ProcessType GetProcessType() const