41 : fParticleName(particlename)
51 G4cout <<
"=== G4ProcessPlacer::RemoveProcess: for: " << fParticleName
54 <<
", will be removed!" <<
G4endl;
57 PrintAlongStepGPILVec();
58 PrintAlongStepDoItVec();
61 PrintPostStepGPILVec();
62 PrintPostStepDoItVec();
67 PrintAlongStepGPILVec();
68 PrintAlongStepDoItVec();
71 PrintPostStepGPILVec();
72 PrintPostStepDoItVec();
74 G4cout <<
"================================================" <<
G4endl;
78void G4ProcessPlacer::AddProcessAs(
G4VProcess *process, SecondOrLast sol)
83 PrintAlongStepGPILVec();
84 PrintAlongStepDoItVec();
87 PrintPostStepGPILVec();
88 PrintPostStepDoItVec();
132 PrintAlongStepGPILVec();
133 PrintAlongStepDoItVec();
136 PrintPostStepGPILVec();
137 PrintPostStepDoItVec();
139 G4cout <<
"================================================" <<
G4endl;
144 G4cout <<
"=== G4ProcessPlacer::AddProcessAsSecondDoIt: for: "
145 << fParticleName <<
G4endl;
146 AddProcessAs(process,
eSecond);
151 G4cout <<
"=== G4ProcessPlacer::AddProcessAsLastDoIt: for: "
152 << fParticleName <<
G4endl;
153 AddProcessAs(process,
eLast);
179 G4Exception(
"G4ProcessPlacer::GetProcessManager()",
"InvalidSetup",
180 FatalException,
"NULL pointer to Process Manager ! Sampler.Configure() must be after PhysicsList instantiation");
182 return processmanager;
185void G4ProcessPlacer::PrintAlongStepGPILVec()
190 PrintProcVec(processGPILVec);
193void G4ProcessPlacer::PrintAlongStepDoItVec()
198 PrintProcVec(processDoItVec);
202void G4ProcessPlacer::PrintPostStepGPILVec()
207 PrintProcVec(processGPILVec);
210void G4ProcessPlacer::PrintPostStepDoItVec()
215 PrintProcVec(processDoItVec);
223 G4Exception(
"G4ProcessPlacer::G4ProcessPlacer()",
"InvalidArgument",
226 size_t len = processVec->
length();
229 G4Exception(
"G4ProcessPlacer::G4ProcessPlacer()",
"InvalidSetup",
232 for (
size_t i=0; i<len; i++)
241 G4cout <<
" " <<
"no process found for position: " << i
242 <<
", in vector of length: " << len <<
G4endl;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
#define theParticleIterator
G4GLOB_DLL std::ostream G4cout
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
G4PTblDicIterator * GetIterator() const
static G4ParticleTable * GetParticleTable()
G4ProcessVector * GetAlongStepProcessVector(G4ProcessVectorTypeIndex typ=typeGPIL) const
void SetProcessOrderingToSecond(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
G4ProcessVector * GetProcessList() const
G4ProcessVector * GetPostStepProcessVector(G4ProcessVectorTypeIndex typ=typeGPIL) const
G4VProcess * RemoveProcess(G4VProcess *aProcess)
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
virtual ~G4ProcessPlacer()
virtual void AddProcessAsSecondDoIt(G4VProcess *process)
virtual void AddProcessAsLastDoIt(G4VProcess *process)
G4ProcessPlacer(const G4String &particlename)
virtual void RemoveProcess(G4VProcess *process)
std::size_t length() const
const G4String & GetProcessName() const