46 #define G4PhysicsConstructorRegistry_cc 1
75 for (
size_t i=0; i<
n; ++i) {
91 for (
size_t i=0; i<
n; ++i) {
103 for (
size_t i=0; i<
n; ++i) {
132 ED <<
"The factory for the physics constructor ["<< name <<
"] does not exist!" <<
G4endl;
146 std::vector<G4String> avail;
147 std::map<G4String,G4VBasePhysConstrFactory*>::const_iterator itr;
149 avail.push_back(itr->first);
158 G4cout <<
"G4VPhysicsConstructors in G4PhysicsConstructorRegistry are:"
160 if ( avail.empty() )
G4cout <<
"... no registered processes" << G4endl;
162 size_t n = avail.size();
163 for (
size_t i=0; i<
n; ++i ) {
164 G4cout <<
" [" << std::setw(3) << i <<
"] "
165 <<
" \"" << avail[i] <<
"\"" <<
G4endl;
std::vector< G4VPhysicsConstructor * > physConstr
std::ostringstream G4ExceptionDescription
G4PhysicsConstructorRegistry()
void Register(G4VPhysicsConstructor *)
void AddFactory(G4String, G4VBasePhysConstrFactory *)
G4VPhysicsConstructor * GetPhysicsConstructor(const G4String &name)
std::map< G4String, G4VBasePhysConstrFactory * > factories
static G4PhysicsConstructorRegistry * Instance()
std::vector< G4String > AvailablePhysicsConstructors() const
static G4ThreadLocal G4PhysicsConstructorRegistry * theInstance
void DeRegister(G4VPhysicsConstructor *)
void PrintAvailablePhysicsConstructors() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
~G4PhysicsConstructorRegistry()
G4bool IsKnownPhysicsConstructor(const G4String &name)