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;
G4DLLIMPORT std::ostream G4cout
G4ApplicationState GetCurrentState() const
static G4StateManager * GetStateManager()
virtual ~G4VModularPhysicsList()
void SetVerboseLevel(G4int value)
virtual void ConstructParticle()
G4VModularPhysicsList & operator=(const G4VModularPhysicsList &)
virtual void ConstructProcess()
void RegisterPhysics(G4VPhysicsConstructor *)
G4PhysConstVector * physicsVector
void RemovePhysics(G4VPhysicsConstructor *)
const G4VPhysicsConstructor * GetPhysicsWithType(G4int physics_type) const
void ReplacePhysics(G4VPhysicsConstructor *)
std::vector< G4VPhysicsConstructor * > G4PhysConstVector
const G4VPhysicsConstructor * GetPhysics(G4int index) const
const G4String & GetPhysicsName() const
G4int GetPhysicsType() const
G4bool fIsPhysicsTableBuilt
G4bool fDisableCheckParticleList
G4bool fIsRestoredCutValues
G4String directoryPhysicsTable
G4bool fRetrievePhysicsTable
G4bool isSetDefaultCutValue
G4bool fIsCheckedForRetrievePhysicsTable
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)