39#define G4MT_physicsVector ((G4VMPLsubInstanceManager.offset[g4vmplInstanceID]).physicsVector)
95 ._fIsPhysicsTableBuilt);
116 (*itr)->ConstructParticle();
140 (*itr)->ConstructProcess();
151 "Geant4 kernel is not PreInit state : Method ignored.");
164 G4cout <<
"G4VModularPhysicsList::RegisterPhysics: " << pName <<
" with type : " << pType
174 if (pType == (*itr)->GetPhysicsType())
break;
179 G4cout <<
"G4VModularPhysicsList::RegisterPhysics: "
180 <<
"a physics with given type already exists " <<
G4endl;
181 G4cout <<
" Type = " << pType <<
" : "
182 <<
" existing physics is " << (*itr)->GetPhysicsName() <<
G4endl;
183 G4cout <<
" New " << pName <<
" can not be registered " <<
G4endl;
186 G4String comment =
"Duplicate type for ";
203 "Geant4 kernel is not PreInit state : Method ignored.");
217 G4cout <<
"G4VModularPhysicsList::ReplacePhysics: " << pName <<
" with type : " << pType
227 if (pType == (*itr)->GetPhysicsType())
break;
236 G4cout <<
"G4VModularPhysicsList::ReplacePhysics: " << (*itr)->GetPhysicsName()
237 <<
" with type : " << pType <<
" is replaced with " << pName <<
G4endl;
256 "Geant4 kernel is not PreInit state : Method ignored.");
261 if (pType == (*itr)->GetPhysicsType()) {
262 G4String pName = (*itr)->GetPhysicsName();
265 G4cout <<
"G4VModularPhysicsList::RemovePhysics: " << pName <<
" is removed" <<
G4endl;
283 "Geant4 kernel is not PreInit state : Method ignored.");
288 if (fPhysics == (*itr)) {
289 G4String pName = (*itr)->GetPhysicsName();
292 G4cout <<
"G4VModularPhysicsList::RemovePhysics: " << pName <<
" is removed" <<
G4endl;
310 "Geant4 kernel is not PreInit state : Method ignored.");
315 G4String pName = (*itr)->GetPhysicsName();
319 G4cout <<
"G4VModularPhysicsList::RemovePhysics: " << pName <<
" is removed" <<
G4endl;
345 if (name == (*itr)->GetPhysicsName())
break;
356 if (pType == (*itr)->GetPhysicsType())
break;
377 [](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
void TerminateWorker() override
void ConstructParticle() override
void SetVerboseLevel(G4int value)
G4VModularPhysicsList & operator=(const G4VModularPhysicsList &)
G4int GetInstanceID() const
void ConstructProcess() override
void RegisterPhysics(G4VPhysicsConstructor *)
~G4VModularPhysicsList() override
static G4RUN_DLL G4VMPLManager G4VMPLsubInstanceManager
void RemovePhysics(G4VPhysicsConstructor *)
const G4VPhysicsConstructor * GetPhysicsWithType(G4int physics_type) const
void ReplacePhysics(G4VPhysicsConstructor *)
static const G4VMPLManager & GetSubInstanceManager()
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()