42 #define G4MT_physicsVector ((G4VMPLsubInstanceManager.offset[g4vmplInstanceID]).physicsVector)
87 static_cast<const G4VUserPhysicsList&>(right).GetSubInstanceManager().offset[right.
GetInstanceID()]._fDisplayThreshold;
90 static_cast<const G4VUserPhysicsList&>(right).GetSubInstanceManager().offset[right.
GetInstanceID()]._fIsPhysicsTableBuilt;
111 (*itr)->ConstructParticle();;
133 (*itr)->ConstructProcess();
144 G4Exception(
"G4VModularPhysicsList::RegisterPhysics",
146 "Geant4 kernel is not PreInit state : Method ignored.");
159 G4cout <<
"G4VModularPhysicsList::RegisterPhysics: "
160 << pName <<
"with type : " << pType
171 if ( pType == (*itr)->GetPhysicsType())
break;
176 G4cout <<
"G4VModularPhysicsList::RegisterPhysics: "
177 <<
"a physics with given type already exists "
179 G4cout <<
" Type = " << pType <<
" : "
180 <<
" existing physics is " << (*itr)->GetPhysicsName()
185 G4String comment =
"Duplicate type for ";
187 G4Exception(
"G4VModularPhysicsList::RegisterPhysics",
202 G4Exception(
"G4VModularPhysicsList::ReplacePhysics",
204 "Geant4 kernel is not PreInit state : Method ignored.");
218 G4cout <<
"G4VModularPhysicsList::ReplacePhysics: "
219 << pName <<
"with type : " << pType
230 if ( pType == (*itr)->GetPhysicsType())
break;
238 G4cout <<
"G4VModularPhysicsList::ReplacePhysics: "
239 << (*itr)->GetPhysicsName() <<
"with type : " << pType
240 <<
" is replaces with " << pName
260 G4Exception(
"G4VModularPhysicsList::RemovePhysics",
262 "Geant4 kernel is not PreInit state : Method ignored.");
268 if ( pType == (*itr)->GetPhysicsType()) {
269 G4String pName = (*itr)->GetPhysicsName();
272 G4cout <<
"G4VModularPhysicsList::RemovePhysics: "
273 << pName <<
" is removed"
290 G4Exception(
"G4VModularPhysicsList::RemovePhysics",
292 "Geant4 kernel is not PreInit state : Method ignored.");
298 if ( fPhysics == (*itr)) {
299 G4String pName = (*itr)->GetPhysicsName();
302 G4cout <<
"G4VModularPhysicsList::RemovePhysics: "
303 << pName <<
" is removed"
319 G4Exception(
"G4VModularPhysicsList::RemovePhysics",
321 "Geant4 kernel is not PreInit state : Method ignored.");
327 G4String pName = (*itr)->GetPhysicsName();
328 if ( name == pName) {
331 G4cout <<
"G4VModularPhysicsList::RemovePhysics: "
332 << pName <<
" is removed"
357 if ( name == (*itr)->GetPhysicsName())
break;
367 if ( pType == (*itr)->GetPhysicsType())
break;
388 [](G4PhysConstVector::value_type el) { el->TerminateWorker();});
virtual void ConstructParticle() override
G4bool fIsRestoredCutValues
G4RUN_DLL G4ThreadLocalStatic T * offset
virtual ~G4VModularPhysicsList()
#define G4MT_physicsVector
static G4RUN_DLL G4VUPLManager subInstanceManager
#define G4MUTEX_INITIALIZER
void RemovePhysics(G4VPhysicsConstructor *)
const G4VPhysicsConstructor * GetPhysics(G4int index) const
const XML_Char int const XML_Char * value
const G4String & GetPhysicsName() const
G4int GetInstanceID() const
void RegisterPhysics(G4VPhysicsConstructor *)
G4int CreateSubInstance()
G4String directoryPhysicsTable
G4bool fRetrievePhysicsTable
G4bool fIsCheckedForRetrievePhysicsTable
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
void ReplacePhysics(G4VPhysicsConstructor *)
G4ApplicationState GetCurrentState() const
G4PhysConstVectorData * physicsVector
G4GLOB_DLL std::ostream G4cout
virtual void TerminateWorker()
std::vector< G4VPhysicsConstructor * > G4PhysConstVectorData
G4bool fDisableCheckParticleList
virtual void TerminateWorker() override
static G4RUN_DLL G4VMPLManager G4VMPLsubInstanceManager
const G4VPhysicsConstructor * GetPhysicsWithType(G4int physics_type) const
G4bool isSetDefaultCutValue
G4int GetPhysicsType() const
G4VModularPhysicsList & operator=(const G4VModularPhysicsList &)
static G4StateManager * GetStateManager()
virtual void ConstructProcess() override
void SetVerboseLevel(G4int value)