Geant4  10.02
G4PhysListRegistry Class Reference

#include <G4PhysListRegistry.hh>

+ Collaboration diagram for G4PhysListRegistry:

Public Member Functions

 ~G4PhysListRegistry ()
 
void AddFactory (G4String name, G4VBasePhysListStamper *)
 
void AddPhysicsExtension (G4String name, G4String procname)
 
G4VModularPhysicsListGetModularPhysicsList (const G4String &name)
 
G4VModularPhysicsListGetModularPhysicsListFromEnv ()
 
G4bool IsReferencePhysList (G4String nam) const
 
const std::vector< G4String > & AvailablePhysLists () const
 
const std::vector< G4String > & AvailablePhysicsExtensions () const
 
const std::vector< G4String > & AvailablePhysListsEM () const
 
void PrintAvailablePhysLists () const
 
G4bool DeconstructPhysListName (const G4String &name, G4String &plBase, std::vector< G4String > &physExt, std::vector< G4int > &replace, G4int verbose=0) const
 
void SetVerbose (G4int val)
 
G4int GetVerbose () const
 
void SetUnknownFatal (G4int val)
 
G4int GetUnknownFatal () const
 
void SetUserDefaultPhysList (const G4String &name="")
 
G4String GetUserDefaultPhysList () const
 
G4String GetSystemDefaultPhysList () const
 

Static Public Member Functions

static G4PhysListRegistryInstance ()
 

Private Member Functions

 G4PhysListRegistry ()
 

Private Attributes

std::map< G4String,
G4VBasePhysListStamper * > 
factories
 
std::map< G4String, G4StringphysicsExtensions
 
G4int verbose
 
G4int unknownFatal
 
G4String userDefault
 throw an exception if unsatisfiable? More...
 
G4String systemDefault
 use this if $PHYSLIST isn't set More...
 
std::vector< G4StringavailBasePhysLists
 use this if user hasn't set userDefault or attempts to set the userDefault="" More...
 
std::vector< G4StringavailExtensions
 

Static Private Attributes

static G4ThreadLocal
G4PhysListRegistry
theInstance = 0
 

Detailed Description

Definition at line 57 of file G4PhysListRegistry.hh.

Constructor & Destructor Documentation

G4PhysListRegistry::~G4PhysListRegistry ( )

Definition at line 84 of file G4PhysListRegistry.cc.

G4PhysListRegistry::G4PhysListRegistry ( )
private

Definition at line 76 of file G4PhysListRegistry.cc.

References SetUserDefaultPhysList().

Referenced by Instance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Function Documentation

void G4PhysListRegistry::AddFactory ( G4String  name,
G4VBasePhysListStamper factory 
)

Definition at line 94 of file G4PhysListRegistry.cc.

References factories, and name.

Referenced by G4PhysListStamper< T >::G4PhysListStamper().

+ Here is the caller graph for this function:

void G4PhysListRegistry::AddPhysicsExtension ( G4String  name,
G4String  procname 
)

Definition at line 99 of file G4PhysListRegistry.cc.

References name, and physicsExtensions.

Referenced by Instance().

+ Here is the caller graph for this function:

const std::vector< G4String > & G4PhysListRegistry::AvailablePhysicsExtensions ( ) const

Definition at line 347 of file G4PhysListRegistry.cc.

References availExtensions, and physicsExtensions.

Referenced by AvailablePhysListsEM(), and DeconstructPhysListName().

+ Here is the caller graph for this function:

const std::vector< G4String > & G4PhysListRegistry::AvailablePhysLists ( ) const

Definition at line 336 of file G4PhysListRegistry.cc.

References availBasePhysLists, and factories.

Referenced by g4alt::G4PhysListFactory::AvailablePhysLists(), DeconstructPhysListName(), and PrintAvailablePhysLists().

+ Here is the caller graph for this function:

const std::vector< G4String > & G4PhysListRegistry::AvailablePhysListsEM ( ) const

Definition at line 358 of file G4PhysListRegistry.cc.

References AvailablePhysicsExtensions().

Referenced by g4alt::G4PhysListFactory::AvailablePhysListsEM().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4PhysListRegistry::DeconstructPhysListName ( const G4String name,
G4String plBase,
std::vector< G4String > &  physExt,
std::vector< G4int > &  replace,
G4int  verbose = 0 
) const

Definition at line 214 of file G4PhysListRegistry.cc.

References AvailablePhysicsExtensions(), AvailablePhysLists(), G4String::data(), G4cout, G4endl, G4PhysicsConstructorRegistry::Instance(), G4PhysicsConstructorRegistry::IsKnownPhysicsConstructor(), name, and physicsExtensions.

Referenced by GetModularPhysicsList(), and IsReferencePhysList().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4VModularPhysicsList * G4PhysListRegistry::GetModularPhysicsList ( const G4String name)

Definition at line 106 of file G4PhysListRegistry.cc.

References DeconstructPhysListName(), factories, FatalException, G4cout, G4endl, G4Exception(), G4PhysicsConstructorRegistry::GetPhysicsConstructor(), G4VModularPhysicsList::GetVerboseLevel(), G4PhysicsConstructorRegistry::Instance(), pc, physicsExtensions, G4VModularPhysicsList::RegisterPhysics(), G4VModularPhysicsList::ReplacePhysics(), G4VModularPhysicsList::SetVerboseLevel(), unknownFatal, and verbose.

Referenced by GetModularPhysicsListFromEnv(), and g4alt::G4PhysListFactory::GetReferencePhysList().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4VModularPhysicsList * G4PhysListRegistry::GetModularPhysicsListFromEnv ( )

Definition at line 184 of file G4PhysListRegistry.cc.

References G4cout, G4endl, GetModularPhysicsList(), name, and userDefault.

Referenced by g4alt::G4PhysListFactory::ReferencePhysList().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String G4PhysListRegistry::GetSystemDefaultPhysList ( ) const
inline

Definition at line 98 of file G4PhysListRegistry.hh.

References systemDefault.

G4int G4PhysListRegistry::GetUnknownFatal ( ) const
inline

Definition at line 91 of file G4PhysListRegistry.hh.

References unknownFatal.

Referenced by g4alt::G4PhysListFactory::GetUnknownFatal().

+ Here is the caller graph for this function:

G4String G4PhysListRegistry::GetUserDefaultPhysList ( ) const
inline

Definition at line 94 of file G4PhysListRegistry.hh.

References userDefault.

G4int G4PhysListRegistry::GetVerbose ( ) const
inline

Definition at line 88 of file G4PhysListRegistry.hh.

References verbose.

Referenced by g4alt::G4PhysListFactory::GetVerbose().

+ Here is the caller graph for this function:

G4bool G4PhysListRegistry::IsReferencePhysList ( G4String  nam) const

Definition at line 205 of file G4PhysListRegistry.cc.

References DeconstructPhysListName().

Referenced by g4alt::G4PhysListFactory::IsReferencePhysList().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4PhysListRegistry::PrintAvailablePhysLists ( ) const

Definition at line 366 of file G4PhysListRegistry.cc.

References AvailablePhysLists(), G4cout, G4endl, G4PhysicsConstructorRegistry::Instance(), G4PhysicsConstructorRegistry::IsKnownPhysicsConstructor(), n, and physicsExtensions.

Referenced by g4alt::G4PhysListFactory::PrintAvailablePhysLists().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4PhysListRegistry::SetUnknownFatal ( G4int  val)
inline

Definition at line 90 of file G4PhysListRegistry.hh.

References unknownFatal.

Referenced by g4alt::G4PhysListFactory::SetUnknownFatal().

+ Here is the caller graph for this function:

void G4PhysListRegistry::SetUserDefaultPhysList ( const G4String name = "")

Definition at line 88 of file G4PhysListRegistry.cc.

References name, systemDefault, and userDefault.

Referenced by G4PhysListRegistry(), and g4alt::G4PhysListFactory::SetDefaultReferencePhysList().

+ Here is the caller graph for this function:

void G4PhysListRegistry::SetVerbose ( G4int  val)
inline

Definition at line 87 of file G4PhysListRegistry.hh.

References verbose.

Referenced by g4alt::G4PhysListFactory::SetVerbose().

+ Here is the caller graph for this function:

Member Data Documentation

std::vector<G4String> G4PhysListRegistry::availBasePhysLists
mutableprivate

use this if user hasn't set userDefault or attempts to set the userDefault=""

Definition at line 120 of file G4PhysListRegistry.hh.

Referenced by AvailablePhysLists().

std::vector<G4String> G4PhysListRegistry::availExtensions
mutableprivate

Definition at line 121 of file G4PhysListRegistry.hh.

Referenced by AvailablePhysicsExtensions().

std::map<G4String, G4VBasePhysListStamper*> G4PhysListRegistry::factories
private

Definition at line 106 of file G4PhysListRegistry.hh.

Referenced by AddFactory(), AvailablePhysLists(), and GetModularPhysicsList().

std::map<G4String, G4String> G4PhysListRegistry::physicsExtensions
private
G4String G4PhysListRegistry::systemDefault
private

use this if $PHYSLIST isn't set

Definition at line 112 of file G4PhysListRegistry.hh.

Referenced by GetSystemDefaultPhysList(), and SetUserDefaultPhysList().

G4ThreadLocal G4PhysListRegistry * G4PhysListRegistry::theInstance = 0
staticprivate

Definition at line 104 of file G4PhysListRegistry.hh.

Referenced by Instance().

G4int G4PhysListRegistry::unknownFatal
private

Definition at line 110 of file G4PhysListRegistry.hh.

Referenced by GetModularPhysicsList(), GetUnknownFatal(), and SetUnknownFatal().

G4String G4PhysListRegistry::userDefault
private

throw an exception if unsatisfiable?

Definition at line 111 of file G4PhysListRegistry.hh.

Referenced by GetModularPhysicsListFromEnv(), GetUserDefaultPhysList(), and SetUserDefaultPhysList().

G4int G4PhysListRegistry::verbose
private

Definition at line 109 of file G4PhysListRegistry.hh.

Referenced by GetModularPhysicsList(), GetVerbose(), and SetVerbose().


The documentation for this class was generated from the following files: