49 G4PhysConstVector::iterator itr;
79 G4PhysConstVector::iterator itr;
94 G4PhysConstVector::iterator itr;
96 (*itr)->ConstructParticle();;
105 G4PhysConstVector::iterator itr;
107 (*itr)->ConstructProcess();
118 G4Exception(
"G4VModularPhysicsList::RegisterPhysics",
120 "Geant4 kernel is not PreInit state : Method ignored.");
133 G4cout <<
"G4VModularPhysicsList::RegisterPhysics: "
134 << pName <<
"with type : " << pType
143 G4PhysConstVector::iterator itr;
145 if ( pType == (*itr)->GetPhysicsType())
break;
150 G4cout <<
"G4VModularPhysicsList::RegisterPhysics: "
151 <<
"a physics with given type already exists "
153 G4cout <<
" Type = " << pType <<
" : "
154 <<
" existing physics is " << (*itr)->GetPhysicsName()
159 G4String comment =
"Duplicate type for ";
161 G4Exception(
"G4VModularPhysicsList::RegisterPhysics",
176 G4Exception(
"G4VModularPhysicsList::ReplacePhysics",
178 "Geant4 kernel is not PreInit state : Method ignored.");
192 G4cout <<
"G4VModularPhysicsList::ReplacePhysics: "
193 << pName <<
"with type : " << pType
204 if ( pType == (*itr)->GetPhysicsType())
break;
212 G4cout <<
"G4VModularPhysicsList::ReplacePhysics: "
213 << (*itr)->GetPhysicsName() <<
"with type : " << pType
214 <<
" is replaces with " << pName
234 G4Exception(
"G4VModularPhysicsList::RemovePhysics",
236 "Geant4 kernel is not PreInit state : Method ignored.");
240 for (G4PhysConstVector::iterator itr =
physicsVector->begin();
242 if ( pType == (*itr)->GetPhysicsType()) {
243 G4String pName = (*itr)->GetPhysicsName();
246 G4cout <<
"G4VModularPhysicsList::RemovePhysics: "
247 << pName <<
" is removed"
264 G4Exception(
"G4VModularPhysicsList::RemovePhysics",
266 "Geant4 kernel is not PreInit state : Method ignored.");
270 for (G4PhysConstVector::iterator itr =
physicsVector->begin();
272 if ( fPhysics == (*itr)) {
273 G4String pName = (*itr)->GetPhysicsName();
276 G4cout <<
"G4VModularPhysicsList::RemovePhysics: "
277 << pName <<
" is removed"
293 G4Exception(
"G4VModularPhysicsList::RemovePhysics",
295 "Geant4 kernel is not PreInit state : Method ignored.");
299 for (G4PhysConstVector::iterator itr =
physicsVector->begin();
301 G4String pName = (*itr)->GetPhysicsName();
302 if ( name == pName) {
305 G4cout <<
"G4VModularPhysicsList::RemovePhysics: "
306 << pName <<
" is removed"
329 G4PhysConstVector::iterator itr;
331 if ( name == (*itr)->GetPhysicsName())
break;
339 G4PhysConstVector::iterator itr;
341 if ( pType == (*itr)->GetPhysicsType())
break;
353 G4PhysConstVector::iterator itr;