41 #define G4MT_physicsVector ((G4VMPLsubInstanceManager.offset[g4vmplInstanceID]).physicsVector)
61 G4PhysConstVector::iterator itr;
87 static_cast<const G4VUserPhysicsList&>(right).GetSubInstanceManager().offset[right.
GetInstanceID()]._fDisplayThreshold;
90 static_cast<const G4VUserPhysicsList&>(right).GetSubInstanceManager().offset[right.
GetInstanceID()]._fIsPhysicsTableBuilt;
96 G4PhysConstVector::iterator itr;
111 G4PhysConstVector::iterator itr;
113 (*itr)->ConstructParticle();;
134 G4PhysConstVector::iterator itr;
136 (*itr)->ConstructProcess();
147 G4Exception(
"G4VModularPhysicsList::RegisterPhysics",
149 "Geant4 kernel is not PreInit state : Method ignored.");
162 G4cout <<
"G4VModularPhysicsList::RegisterPhysics: "
163 << pName <<
"with type : " << pType
172 G4PhysConstVector::iterator itr;
174 if ( pType == (*itr)->GetPhysicsType())
break;
179 G4cout <<
"G4VModularPhysicsList::RegisterPhysics: "
180 <<
"a physics with given type already exists "
182 G4cout <<
" Type = " << pType <<
" : "
183 <<
" existing physics is " << (*itr)->GetPhysicsName()
188 G4String comment =
"Duplicate type for ";
190 G4Exception(
"G4VModularPhysicsList::RegisterPhysics",
205 G4Exception(
"G4VModularPhysicsList::ReplacePhysics",
207 "Geant4 kernel is not PreInit state : Method ignored.");
221 G4cout <<
"G4VModularPhysicsList::ReplacePhysics: "
222 << pName <<
"with type : " << pType
233 if ( pType == (*itr)->GetPhysicsType())
break;
241 G4cout <<
"G4VModularPhysicsList::ReplacePhysics: "
242 << (*itr)->GetPhysicsName() <<
"with type : " << pType
243 <<
" is replaces with " << pName
263 G4Exception(
"G4VModularPhysicsList::RemovePhysics",
265 "Geant4 kernel is not PreInit state : Method ignored.");
271 if ( pType == (*itr)->GetPhysicsType()) {
272 G4String pName = (*itr)->GetPhysicsName();
275 G4cout <<
"G4VModularPhysicsList::RemovePhysics: "
276 << pName <<
" is removed"
293 G4Exception(
"G4VModularPhysicsList::RemovePhysics",
295 "Geant4 kernel is not PreInit state : Method ignored.");
301 if ( fPhysics == (*itr)) {
302 G4String pName = (*itr)->GetPhysicsName();
305 G4cout <<
"G4VModularPhysicsList::RemovePhysics: "
306 << pName <<
" is removed"
322 G4Exception(
"G4VModularPhysicsList::RemovePhysics",
324 "Geant4 kernel is not PreInit state : Method ignored.");
330 G4String pName = (*itr)->GetPhysicsName();
331 if ( name == pName) {
334 G4cout <<
"G4VModularPhysicsList::RemovePhysics: "
335 << pName <<
" is removed"
358 G4PhysConstVector::iterator itr;
360 if ( name == (*itr)->GetPhysicsName())
break;
368 G4PhysConstVector::iterator itr;
370 if ( pType == (*itr)->GetPhysicsType())
break;
382 G4PhysConstVector::iterator itr;
void RegisterPhysics(G4VPhysicsConstructor *)
G4VModularPhysicsList & operator=(const G4VModularPhysicsList &)
G4bool fIsRestoredCutValues
G4bool fRetrievePhysicsTable
G4bool fIsCheckedForRetrievePhysicsTable
#define G4MUTEX_INITIALIZER
G4RUN_DLL G4ThreadLocalStatic T * offset
static G4StateManager * GetStateManager()
G4GLOB_DLL std::ostream G4cout
const G4VPhysicsConstructor * GetPhysics(G4int index) const
const XML_Char int const XML_Char * value
std::vector< G4VPhysicsConstructor * > G4PhysConstVectorData
G4int GetPhysicsType() const
const G4String & GetPhysicsName() const
G4ApplicationState GetCurrentState() const
void SetVerboseLevel(G4int value)
const G4VPhysicsConstructor * GetPhysicsWithType(G4int physics_type) const
static G4RUN_DLL G4VMPLManager G4VMPLsubInstanceManager
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4bool isSetDefaultCutValue
#define G4MT_physicsVector
virtual void ConstructParticle()
void ReplacePhysics(G4VPhysicsConstructor *)
virtual void ConstructProcess()
void RemovePhysics(G4VPhysicsConstructor *)
virtual ~G4VModularPhysicsList()
static G4RUN_DLL G4VUPLManager subInstanceManager
G4PhysConstVectorData * physicsVector
G4int CreateSubInstance()
G4int GetInstanceID() const
G4bool fDisableCheckParticleList
G4String directoryPhysicsTable