42 std::vector<G4VUserParallelWorld*>::iterator pwItr;
43 for(pwItr=parallelWorld.begin();pwItr!=parallelWorld.end();pwItr++)
45 if((*pwItr)->GetName()==aPW->
GetName())
49 eM +=
"> is already registered to the user detector construction.";
50 G4Exception(
"G4VUserDetectorConstruction::RegisterParallelWorld",
54 parallelWorld.push_back(aPW);
60 std::vector<G4VUserParallelWorld*>::iterator pwItr;
61 for(pwItr=parallelWorld.begin();pwItr!=parallelWorld.end();pwItr++)
63 (*pwItr)->Construct();
70{
return parallelWorld.size(); }
75 return parallelWorld[i];
G4int GetNumberOfParallelWorld() const
G4VUserParallelWorld * GetParallelWorld(G4int i) const
void RegisterParallelWorld(G4VUserParallelWorld *)
virtual ~G4VUserDetectorConstruction()
G4int ConstructParallelGeometries()
G4VUserDetectorConstruction()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)