41 #define G4MT_physicsVector ((G4VMPLsubInstanceManager.offset[g4vmplInstanceID]).physicsVector)
86 static_cast<const G4VUserPhysicsList&>(right).GetSubInstanceManager().offset[right.
GetInstanceID()]._fDisplayThreshold;
89 static_cast<const G4VUserPhysicsList&>(right).GetSubInstanceManager().offset[right.
GetInstanceID()]._fIsPhysicsTableBuilt;
110 (*itr)->ConstructParticle();;
132 (*itr)->ConstructProcess();
143 G4Exception(
"G4VModularPhysicsList::RegisterPhysics",
145 "Geant4 kernel is not PreInit state : Method ignored.");
158 G4cout <<
"G4VModularPhysicsList::RegisterPhysics: "
159 << pName <<
"with type : " << pType
170 if ( pType == (*itr)->GetPhysicsType())
break;
175 G4cout <<
"G4VModularPhysicsList::RegisterPhysics: "
176 <<
"a physics with given type already exists "
178 G4cout <<
" Type = " << pType <<
" : "
179 <<
" existing physics is " << (*itr)->GetPhysicsName()
184 G4String comment =
"Duplicate type for ";
186 G4Exception(
"G4VModularPhysicsList::RegisterPhysics",
201 G4Exception(
"G4VModularPhysicsList::ReplacePhysics",
203 "Geant4 kernel is not PreInit state : Method ignored.");
217 G4cout <<
"G4VModularPhysicsList::ReplacePhysics: "
218 << pName <<
"with type : " << pType
229 if ( pType == (*itr)->GetPhysicsType())
break;
237 G4cout <<
"G4VModularPhysicsList::ReplacePhysics: "
238 << (*itr)->GetPhysicsName() <<
"with type : " << pType
239 <<
" is replaces with " << pName
259 G4Exception(
"G4VModularPhysicsList::RemovePhysics",
261 "Geant4 kernel is not PreInit state : Method ignored.");
267 if ( pType == (*itr)->GetPhysicsType()) {
268 G4String pName = (*itr)->GetPhysicsName();
271 G4cout <<
"G4VModularPhysicsList::RemovePhysics: "
272 << pName <<
" is removed"
289 G4Exception(
"G4VModularPhysicsList::RemovePhysics",
291 "Geant4 kernel is not PreInit state : Method ignored.");
297 if ( fPhysics == (*itr)) {
298 G4String pName = (*itr)->GetPhysicsName();
301 G4cout <<
"G4VModularPhysicsList::RemovePhysics: "
302 << pName <<
" is removed"
318 G4Exception(
"G4VModularPhysicsList::RemovePhysics",
320 "Geant4 kernel is not PreInit state : Method ignored.");
326 G4String pName = (*itr)->GetPhysicsName();
327 if ( name == pName) {
330 G4cout <<
"G4VModularPhysicsList::RemovePhysics: "
331 << pName <<
" is removed"
356 if ( name == (*itr)->GetPhysicsName())
break;
366 if ( pType == (*itr)->GetPhysicsType())
break;
387 [](G4PhysConstVector::value_type el) { el->TerminateWorker();});