78{
79
81
82 if (!pManager)
83 {
84#ifdef G4VERBOSE
86 {
87 G4cout <<
"G4VUserPhysicsList::BuildPhysicsTable "
91 <<
" should be created in your PhysicsList" <<
G4endl;
92 }
93#endif
94 G4Exception(
"G4VUserChemistryList::BuildPhysicsTable",
96 "No process manager");
97 return;
98 }
99
102 if (!pVector)
103 {
104#ifdef G4VERBOSE
106 {
107 G4cout <<
"G4VUserChemistryList::BuildPhysicsTable "
110 }
111#endif
112 G4Exception(
"G4VUserChemistryList::BuildPhysicsTable",
114 "No process Vector");
115 return;
116 }
117#ifdef G4VERBOSE
119 {
120 G4cout <<
"G4VUserChemistryList::BuildPhysicsTable %%%%%% "
122 G4cout <<
" ProcessManager : " << pManager
123 <<
" ProcessManagerShadow : " << pManagerShadow <<
G4endl;
124 for(std::size_t iv1=0;iv1<pVector->
size();++iv1)
125 {
126 G4cout <<
" " << iv1 <<
" - " << (*pVector)[iv1]->GetProcessName()
128 }
129 G4cout <<
"--------------------------------------------------------------"
132
133 for(std::size_t iv2=0;iv2<pVectorShadow->
size();++iv2)
134 {
135 G4cout <<
" " << iv2 <<
" - " << (*pVectorShadow)[iv2]->GetProcessName()
137 }
138 }
139#endif
140 for (std::size_t j = 0; j < pVector->
size(); ++j)
141 {
142
143
144
145
146 if (pManagerShadow == pManager)
147 {
148 (*pVector)[j]->BuildPhysicsTable(*moleculeDef);
149 }
150 else
151 {
152 (*pVector)[j]->BuildWorkerPhysicsTable(*moleculeDef);
153 }
154
155 }
156}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
G4ProcessManager * GetProcessManager() const
G4ProcessManager * GetMasterProcessManager() const
const G4String & GetParticleName() const
G4ProcessVector * GetProcessList() const