41#define G4MT_physicsVector \
42 ((G4VMPLsubInstanceManager.offset[g4vmplInstanceID]).physicsVector)
98 ._fIsPhysicsTableBuilt;
124 (*itr)->ConstructParticle();
149 (*itr)->ConstructProcess();
159 G4Exception(
"G4VModularPhysicsList::RegisterPhysics",
"Run0201",
161 "Geant4 kernel is not PreInit state : Method ignored.");
176 G4cout <<
"G4VModularPhysicsList::RegisterPhysics: " << pName
177 <<
" with type : " << pType <<
" is added" <<
G4endl;
187 if(pType == (*itr)->GetPhysicsType())
195 G4cout <<
"G4VModularPhysicsList::RegisterPhysics: "
196 <<
"a physics with given type already exists " <<
G4endl;
197 G4cout <<
" Type = " << pType <<
" : "
198 <<
" existing physics is " << (*itr)->GetPhysicsName() <<
G4endl;
199 G4cout <<
" New " << pName <<
" can not be registered " <<
G4endl;
202 G4String comment =
"Duplicate type for ";
204 G4Exception(
"G4VModularPhysicsList::RegisterPhysics",
"Run0202",
220 "Geant4 kernel is not PreInit state : Method ignored.");
236 G4cout <<
"G4VModularPhysicsList::ReplacePhysics: " << pName
237 <<
" with type : " << pType <<
" is added" <<
G4endl;
248 if(pType == (*itr)->GetPhysicsType())
261 G4cout <<
"G4VModularPhysicsList::ReplacePhysics: "
262 << (*itr)->GetPhysicsName() <<
" with type : " << pType
263 <<
" is replaced with " << pName <<
G4endl;
283 "Geant4 kernel is not PreInit state : Method ignored.");
289 if(pType == (*itr)->GetPhysicsType())
291 G4String pName = (*itr)->GetPhysicsName();
295 G4cout <<
"G4VModularPhysicsList::RemovePhysics: " << pName
296 <<
" is removed" <<
G4endl;
316 "Geant4 kernel is not PreInit state : Method ignored.");
322 if(fPhysics == (*itr))
324 G4String pName = (*itr)->GetPhysicsName();
328 G4cout <<
"G4VModularPhysicsList::RemovePhysics: " << pName
329 <<
" is removed" <<
G4endl;
348 "Geant4 kernel is not PreInit state : Method ignored.");
354 G4String pName = (*itr)->GetPhysicsName();
360 G4cout <<
"G4VModularPhysicsList::RemovePhysics: " << pName
361 <<
" is removed" <<
G4endl;
392 if(name == (*itr)->GetPhysicsName())
407 if(pType == (*itr)->GetPhysicsType())
432 [](G4PhysConstVector::value_type el) { el->TerminateWorker(); });
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
#define G4MUTEX_INITIALIZER
#define G4MT_physicsVector
G4GLOB_DLL std::ostream G4cout
const G4ApplicationState & GetCurrentState() const
static G4StateManager * GetStateManager()
std::vector< G4VPhysicsConstructor * > G4PhysConstVectorData
G4PhysConstVectorData * physicsVector
virtual ~G4VModularPhysicsList()
virtual void TerminateWorker() override
virtual void ConstructParticle() override
void SetVerboseLevel(G4int value)
G4VModularPhysicsList & operator=(const G4VModularPhysicsList &)
G4int GetInstanceID() const
virtual void ConstructProcess() override
void RegisterPhysics(G4VPhysicsConstructor *)
static G4RUN_DLL G4VMPLManager G4VMPLsubInstanceManager
void RemovePhysics(G4VPhysicsConstructor *)
const G4VPhysicsConstructor * GetPhysicsWithType(G4int physics_type) const
void ReplacePhysics(G4VPhysicsConstructor *)
const G4VPhysicsConstructor * GetPhysics(G4int index) const
const G4String & GetPhysicsName() const
G4int GetPhysicsType() const
G4RUN_DLL G4ThreadLocalStatic T * offset
G4int CreateSubInstance()
virtual void TerminateWorker()
G4bool fDisableCheckParticleList
G4bool fIsRestoredCutValues
G4String directoryPhysicsTable
G4bool fRetrievePhysicsTable
G4bool isSetDefaultCutValue
G4bool fIsCheckedForRetrievePhysicsTable
static G4RUN_DLL G4VUPLManager subInstanceManager
static const G4VUPLManager & GetSubInstanceManager()