1#ifndef TG4_SD_SERVICES_H
2#define TG4_SD_SERVICES_H
30class TVirtualMCSensitiveDetector;
52 void MapVolume(G4LogicalVolume* lv, G4int
id, G4bool fillLVToVolIdMap);
54 const G4String& volumeName, TVirtualMCSensitiveDetector* userSD);
66 G4int
GetVolumeID(
const G4String& volumeName)
const;
73 G4String volumeName, G4bool warn =
true)
const;
78 std::set<TVirtualMCSensitiveDetector*>*
GetUserSDs()
const;
108 static G4ThreadLocal std::set<TVirtualMCSensitiveDetector*>*
fgUserSDs;
111 static G4ThreadLocal std::map<G4String, TVirtualMCSensitiveDetector*>*
Sensitive detectors services.
G4int GetMediumID(G4LogicalVolume *volume) const
static G4ThreadLocal std::set< TVirtualMCSensitiveDetector * > * fgUserSDs
vector of user SDs
void SetIsStopRun(G4bool stopRun)
static TG4SDServices * fgInstance
this instance
G4bool fIsUserSDs
info about user SDs
static G4ThreadLocal std::map< G4String, TVirtualMCSensitiveDetector * > * fgUserSDMap
map volume name -> user SD
std::map< G4int, G4LogicalVolume * > fVolIdToLVMap
map volume id -> logical volume
TG4SensitiveDetector * GetSensitiveDetector(G4VSensitiveDetector *sd) const
TG4SDServices(const TG4SDServices &right)
Not implemented.
std::map< G4LogicalVolume *, G4int > fLVToVolIdMap
map logical volume -> volume id
TVirtualMCSensitiveDetector * GetUserSD(G4String volumeName, G4bool warn=true) const
void PrintUserSensitiveDetectors() const
G4int GetVolumeID(const G4String &volumeName) const
G4bool fIsStopRun
info about run stopping by user
void PrintSensitiveVolumes() const
TG4SDServices & operator=(const TG4SDServices &right)
Not implemented.
void PrintVolNameToIdMap() const
Int_t NofVolDaughters(const char *volName) const
void MapVolume(G4LogicalVolume *lv, G4int id, G4bool fillLVToVolIdMap)
std::map< G4String, G4int > fVolNameToIdMap
map volume name -> volume id
static const G4int fgkFirstVolumeId
the first volume id
Int_t NofSensitiveDetectors() const
void MapUserSD(const G4String &volumeName, TVirtualMCSensitiveDetector *userSD)
void PrintStatistics(G4bool open, G4bool close) const
G4bool GetIsStopRun() const
std::set< TVirtualMCSensitiveDetector * > * GetUserSDs() const
void PrintVolIdToLVMap() const
Int_t VolDaughterCopyNo(const char *volName, Int_t i) const
static TG4SDServices * Instance()
G4String GetVolumeName(G4int volumeId) const
G4int GetMediumId(G4int volumeId) const
G4LogicalVolume * GetLogicalVolume(G4int volumeId, G4bool warn=true) const
const char * VolDaughterName(const char *volName, Int_t i) const
static G4int GetFirstVolumeId()
Sensitive detector class for calling a user defined stepping function.