62 for(G4LogicalVolumeStore::iterator pos=store->begin(); pos!=store->end(); pos++)
64 if((*pos)->GetName()==logVolName)
68 G4String eM =
"More than one logical volumes of the name <";
69 eM += (*pos)->GetName();
70 eM +=
"> are found and thus the sensitive detector <";
72 eM +=
"> cannot be uniquely assigned.";
73 G4Exception(
"G4VUserParallelWorld::SetSensitiveDetector",
77 SetSensitiveDetector(*pos,aSD);
82 G4String eM2 =
"No logical volume of the name <";
84 eM2 +=
"> is found. The specified sensitive detector <";
86 eM2 +=
"> couldn't be assigned to any volume.";
87 G4Exception(
"G4VUserParallelWorld::SetSensitiveDetector",
G4VPhysicalVolume * GetWorld()
void SetName(const G4String &pName)
void SetSensitiveDetector(const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
G4VUserParallelWorld(G4String worldName)
static G4LogicalVolumeStore * GetInstance()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4TransportationManager * GetTransportationManager()
virtual ~G4VUserParallelWorld()
void AddNewDetector(G4VSensitiveDetector *aSD)
G4VPhysicalVolume * GetParallelWorld(const G4String &worldName)
virtual void ConstructSD()
static G4SDManager * GetSDMpointer()
void SetSensitiveDetector(G4VSensitiveDetector *pSDetector)