41 #define G4MT_physicsVector ((G4VMPLsubInstanceManager.offset[g4vmplInstanceID]).physicsVector)
67 G4PhysConstVector::iterator itr;
98 G4PhysConstVector::iterator itr;
113 G4PhysConstVector::iterator itr;
115 (*itr)->ConstructParticle();;
136 G4PhysConstVector::iterator itr;
138 (*itr)->ConstructProcess();
149 G4Exception(
"G4VModularPhysicsList::RegisterPhysics",
151 "Geant4 kernel is not PreInit state : Method ignored.");
164 G4cout <<
"G4VModularPhysicsList::RegisterPhysics: "
165 << pName <<
"with type : " << pType
174 G4PhysConstVector::iterator itr;
176 if ( pType == (*itr)->GetPhysicsType())
break;
181 G4cout <<
"G4VModularPhysicsList::RegisterPhysics: "
182 <<
"a physics with given type already exists "
184 G4cout <<
" Type = " << pType <<
" : "
185 <<
" existing physics is " << (*itr)->GetPhysicsName()
190 G4String comment =
"Duplicate type for ";
192 G4Exception(
"G4VModularPhysicsList::RegisterPhysics",
207 G4Exception(
"G4VModularPhysicsList::ReplacePhysics",
209 "Geant4 kernel is not PreInit state : Method ignored.");
223 G4cout <<
"G4VModularPhysicsList::ReplacePhysics: "
224 << pName <<
"with type : " << pType
235 if ( pType == (*itr)->GetPhysicsType())
break;
243 G4cout <<
"G4VModularPhysicsList::ReplacePhysics: "
244 << (*itr)->GetPhysicsName() <<
"with type : " << pType
245 <<
" is replaces with " << pName
265 G4Exception(
"G4VModularPhysicsList::RemovePhysics",
267 "Geant4 kernel is not PreInit state : Method ignored.");
273 if ( pType == (*itr)->GetPhysicsType()) {
274 G4String pName = (*itr)->GetPhysicsName();
277 G4cout <<
"G4VModularPhysicsList::RemovePhysics: "
278 << pName <<
" is removed"
295 G4Exception(
"G4VModularPhysicsList::RemovePhysics",
297 "Geant4 kernel is not PreInit state : Method ignored.");
303 if ( fPhysics == (*itr)) {
304 G4String pName = (*itr)->GetPhysicsName();
307 G4cout <<
"G4VModularPhysicsList::RemovePhysics: "
308 << pName <<
" is removed"
324 G4Exception(
"G4VModularPhysicsList::RemovePhysics",
326 "Geant4 kernel is not PreInit state : Method ignored.");
332 G4String pName = (*itr)->GetPhysicsName();
333 if ( name == pName) {
336 G4cout <<
"G4VModularPhysicsList::RemovePhysics: "
337 << pName <<
" is removed"
360 G4PhysConstVector::iterator itr;
362 if ( name == (*itr)->GetPhysicsName())
break;
370 G4PhysConstVector::iterator itr;
372 if ( pType == (*itr)->GetPhysicsType())
break;
384 G4PhysConstVector::iterator itr;
void RegisterPhysics(G4VPhysicsConstructor *)
#define fDisplayThreshold
G4VModularPhysicsList & operator=(const G4VModularPhysicsList &)
G4bool fIsRestoredCutValues
G4bool fRetrievePhysicsTable
#define fIsPhysicsTableBuilt
static const G4VMPLManager & GetSubInstanceManager()
G4bool fIsCheckedForRetrievePhysicsTable
#define G4MUTEX_INITIALIZER
static G4StateManager * GetStateManager()
G4GLOB_DLL std::ostream G4cout
const G4VPhysicsConstructor * GetPhysics(G4int index) const
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()
static G4RUN_DLL G4ThreadLocal T * offset
void RemovePhysics(G4VPhysicsConstructor *)
virtual ~G4VModularPhysicsList()
const XML_Char int const XML_Char * value
G4PhysConstVectorData * physicsVector
G4int CreateSubInstance()
G4int GetInstanceID() const
G4bool fDisableCheckParticleList
G4String directoryPhysicsTable