LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
alt::G4PhysListFactory Class Reference

#include "G4PhysListFactory.hh"

Public Member Functions

 G4PhysListFactory (const G4String &defname="<none>")
 
 ~G4PhysListFactory ()
 
G4VModularPhysicsList * GetReferencePhysList (const G4String &)
 
G4VModularPhysicsList * ReferencePhysList ()
 
G4bool IsReferencePhysList (const G4String &)
 
const std::vector< G4String > & AvailablePhysLists () const
 
void PrintAvailablePhysLists () const
 
void SetDefaultName (const G4String &defname)
 
const G4StringGetDefaultName () const
 

Detailed Description

Definition at line 59 of file G4PhysListFactory.hh.

Constructor & Destructor Documentation

G4PhysListFactory::G4PhysListFactory ( const G4String defname = "<none>")

Definition at line 47 of file G4PhysListFactory.cc.

References SetDefaultName().

48 {
49  // Allow user to override the default in case they use
50  // ReferencePhysList() and "PHYSLIST" is not set.
51  // By specifying "" as the default arg, this does nothing
52  // different in the case of previous use of default constructor.
53  if ( defname != "<none>" ) SetDefaultName(defname);
54 }
void SetDefaultName(const G4String &defname)
G4PhysListFactory::~G4PhysListFactory ( )

Definition at line 56 of file G4PhysListFactory.cc.

57 {}

Member Function Documentation

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

Definition at line 79 of file G4PhysListFactory.cc.

References G4PhysListFactorySingleton::AvailablePhysLists(), and G4PhysListFactorySingleton::Instance().

80 {
81  // return list of known names
83 }
const std::vector< G4String > & AvailablePhysLists() const
static G4PhysListFactorySingleton & Instance()
const G4String & G4PhysListFactory::GetDefaultName ( ) const
G4VModularPhysicsList * G4PhysListFactory::GetReferencePhysList ( const G4String name)

Definition at line 65 of file G4PhysListFactory.cc.

References G4PhysListFactorySingleton::GetReferencePhysList(), and G4PhysListFactorySingleton::Instance().

Referenced by g4b::G4Helper::SetPhysicsList().

67 {
68  // intantiate PhysList by name
70 }
static G4PhysListFactorySingleton & Instance()
G4VModularPhysicsList * GetReferencePhysList(const G4String &)
G4bool G4PhysListFactory::IsReferencePhysList ( const G4String name)

Definition at line 72 of file G4PhysListFactory.cc.

References G4PhysListFactorySingleton::Instance(), and G4PhysListFactorySingleton::IsReferencePhysList().

73 {
74  // check if name is known
76 }
G4bool IsReferencePhysList(const G4String &)
static G4PhysListFactorySingleton & Instance()
void G4PhysListFactory::PrintAvailablePhysLists ( ) const

Definition at line 85 of file G4PhysListFactory.cc.

References G4PhysListFactorySingleton::Instance(), and G4PhysListFactorySingleton::PrintAvailablePhysLists().

86 {
87  // print a list of available PhysLists
89 }
static G4PhysListFactorySingleton & Instance()
G4VModularPhysicsList * G4PhysListFactory::ReferencePhysList ( )

Definition at line 59 of file G4PhysListFactory.cc.

References G4PhysListFactorySingleton::Instance(), and G4PhysListFactorySingleton::ReferencePhysList().

60 {
61  // instantiate PhysList by environment variable "PHYSLIST"
63 }
static G4PhysListFactorySingleton & Instance()
G4VModularPhysicsList * ReferencePhysList()
void G4PhysListFactory::SetDefaultName ( const G4String defname)

Definition at line 92 of file G4PhysListFactory.cc.

References G4PhysListFactorySingleton::Instance(), and G4PhysListFactorySingleton::SetDefaultName().

Referenced by G4PhysListFactory().

93 {
95 }
void SetDefaultName(const G4String &defname)
static G4PhysListFactorySingleton & Instance()

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