26 #ifndef G4PhysListStamper_h
27 #define G4PhysListStamper_h 1
55 return new T(verbose);
59 #define G4_DECLARE_PHYSLIST_FACTORY(physics_list) \
60 const G4PhysListStamper<physics_list>& physics_list##Factory = G4PhysListStamper<physics_list>(#physics_list)
65 #define G4_DECLARE_PHYSLIST_FACTORY_NS( physics_list , nsname , plbase ) \
67 const G4PhysListStamper<physics_list>& plbase##Factory = G4PhysListStamper<physics_list>(#physics_list); \
69 typedef int xyzzy__LINE__
80 #define G4_REFERENCE_PHYSLIST_FACTORY(physics_list) \
81 class G4VModularPhysicsList; \
82 template <class T> class T##physics_list; \
83 typedef T##physics_list<G4VModularPhysicsList> physics_list; \
84 extern const G4PhysListStamper<physics_list>& physics_list##Factory; \
85 const G4PhysListStamper<physics_list>& physics_list##FactoryRef = physics_list##Factory
87 #define G4_REFERENCE_PHYSLIST_FACTORY_NS(physics_list, nsname, plbase ) \
88 class G4VModularPhysicsList; \
90 template <class T> class T##plbase; \
91 typedef T##plbase<G4VModularPhysicsList> plbase; \
92 extern const G4PhysListStamper<plbase>& plbase##Factory; \
93 const G4PhysListStamper<plbase>& plbase##FactoryRef = plbase##Factory; \
95 typedef int xyzzy__LINE__
void AddFactory(G4String name, G4VBasePhysListStamper *)
virtual G4VModularPhysicsList * Instantiate(G4int)=0
G4PhysListStamper(const G4String &name)
static G4PhysListRegistry * Instance()
virtual G4VModularPhysicsList * Instantiate(G4int verbose)