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",
static const G4double pos
void AddNewDetector(G4VSensitiveDetector *aSD)
G4VPhysicalVolume * GetParallelWorld(const G4String &worldName)
virtual ~G4VUserParallelWorld()
virtual void ConstructSD()
G4VUserParallelWorld(G4String worldName)
void SetSensitiveDetector(const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
static G4TransportationManager * GetTransportationManager()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4VPhysicalVolume * GetWorld()
static G4SDManager * GetSDMpointer()
void SetName(const G4String &pName)
static G4LogicalVolumeStore * GetInstance()
void SetSensitiveDetector(G4VSensitiveDetector *pSDetector)