5 #include <G4SDManager.hh> 14 return G4SDManager::GetSDMpointer()->FindSensitiveDetector(name);
18 G4VSensitiveDetector* sd =
GetSD(name);
20 if (
fType ==
"segment") {
27 G4SDManager::GetSDMpointer()->AddNewDetector(sd);
G4VSensitiveDetector * GetSD(G4String name)
#define EDepSimThrow(message)
Print an error message, and then throw an exception.
G4VSensitiveDetector * MakeSD(G4String name)
G4String fType
The type of sensitive detector that this will build.
#define EDepSimError(outStream)
SDFactory(G4String type)
Build a factory to build sensitive detectors specified by "type".