#include <G4BiasingHelper.hh>
Definition at line 53 of file G4BiasingHelper.hh.
Definition at line 95 of file G4BiasingHelper.cc.
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
Definition at line 32 of file G4BiasingHelper.cc.
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;
52 G4int processType = physicsProcess->GetProcessType();
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;
std::ostringstream G4ExceptionDescription
G4int GetProcessOrdering(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4VProcess * RemoveProcess(G4VProcess *aProcess)
G4ProcessVector * GetProcessList() const
Definition at line 107 of file G4BiasingHelper.cc.
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
void SetProcessOrderingToSecond(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
G4int GetPDGEncoding() const
const G4String & GetParticleName() const
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
G4ParticleDefinition * GetParticleType() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void SetProcessOrderingToLast(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
G4ProcessVector * GetProcessList() const
The documentation for this class was generated from the following files: