71 for (
size_t i=0; i<
n; ++i) {
87 for (
size_t i=0; i<
n; ++i) {
99 for (
size_t i=0; i<
n; ++i) {
128 ED <<
"The factory for the physics constructor ["<< name <<
"] does not exist!" <<
G4endl;
142 std::vector<G4String> avail;
143 std::map<G4String,G4VBasePhysConstrFactory*>::const_iterator itr;
145 avail.push_back(itr->first);
154 G4cout <<
"G4VPhysicsConstructors in G4PhysicsConstructorRegistry are:"
156 if ( avail.empty() )
G4cout <<
"... no registered processes" << G4endl;
158 size_t n = avail.size();
159 for (
size_t i=0; i<
n; ++i ) {
160 G4cout <<
" [" << std::setw(3) << i <<
"] "
161 <<
" \"" << avail[i] <<
"\"" <<
G4endl;
~G4PhysicsConstructorRegistry()
G4PhysicsConstructorRegistry()
std::ostringstream G4ExceptionDescription
static G4ThreadLocal G4PhysicsConstructorRegistry * theInstance
void PrintAvailablePhysicsConstructors() const
G4bool IsKnownPhysicsConstructor(const G4String &name)
std::vector< G4VPhysicsConstructor * > physConstr
G4GLOB_DLL std::ostream G4cout
G4VPhysicsConstructor * GetPhysicsConstructor(const G4String &name)
void AddFactory(G4String, G4VBasePhysConstrFactory *)
std::map< G4String, G4VBasePhysConstrFactory * > factories
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4PhysicsConstructorRegistry * Instance()
std::vector< G4String > AvailablePhysicsConstructors() const
void DeRegister(G4VPhysicsConstructor *)
void Register(G4VPhysicsConstructor *)