#include <G4WorkerRunManagerKernel.hh>
Definition at line 58 of file G4WorkerRunManagerKernel.hh.
◆ G4WorkerRunManagerKernel()
G4WorkerRunManagerKernel::G4WorkerRunManagerKernel |
( |
| ) |
|
Definition at line 36 of file G4WorkerRunManagerKernel.cc.
37{
38
39#ifndef G4MULTITHREADED
41 msg << "Geant4 code is compiled without multi-threading support "
42 "(-DG4MULTITHREADED "
43 "is set to off).";
44 msg << " This type of RunManager can only be used in mult-threaded "
45 "applications.";
47#endif
48}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
◆ ~G4WorkerRunManagerKernel()
G4WorkerRunManagerKernel::~G4WorkerRunManagerKernel |
( |
| ) |
|
|
override |
Definition at line 51 of file G4WorkerRunManagerKernel.cc.
52{
54}
void DestroyWorkerG4ParticleTable()
static G4ParticleTable * GetParticleTable()
◆ SetupShadowProcess()
void G4WorkerRunManagerKernel::SetupShadowProcess |
( |
| ) |
const |
|
overrideprotectedvirtual |
Reimplemented from G4RunManagerKernel.
Definition at line 57 of file G4WorkerRunManagerKernel.cc.
58{
59
60
61
65
70 if (pm == nullptr || pmM == nullptr) {
72 msg << "Process manager or process manager shadow to master are not set.\n";
73 msg <<
"Particle : " << pd->
GetParticleName() <<
" (" << pd <<
"), proc-manager: " << pm;
74 msg << " proc-manager-shadow: " << pmM;
76 return;
77 }
81 G4cout <<
"G4WorkerRunManagerKernel::SetupShadowProcess() for particle <"
83 G4cout <<
" ProcessManager : " << pm <<
" ProcessManagerShadow : " << pmM <<
G4endl;
85 G4cout <<
" " << iv1 <<
" - " << procs[iv1]->GetProcessName() <<
G4endl;
86 }
87 G4cout <<
"--------------------------------------------------------------" <<
G4endl;
89 G4cout <<
" " << iv2 <<
" - " << procsM[iv2]->GetProcessName() <<
G4endl;
90 }
91 G4cout <<
"--------------------------------------------------------------" <<
G4endl;
93 msg << " Size of G4ProcessVector is inconsistent between master and worker "
94 "threads ";
96 msg <<
" size of G4ProcessVector for worker thread is " << procs.
size();
97 msg <<
" while master thread is " << procsM.
size() <<
".";
99 }
100
101
102
103
105 procs[idx]->SetMasterProcess(procsM[idx]);
106 }
107 }
108}
#define theParticleIterator
G4GLOB_DLL std::ostream G4cout
G4ProcessManager * GetProcessManager() const
G4ProcessManager * GetMasterProcessManager() const
const G4String & GetParticleName() const
void reset(G4bool ifSkipIon=true)
G4PTblDicIterator * GetIterator() const
G4ProcessVector * GetProcessList() const
The documentation for this class was generated from the following files: