2 // Category: digits+hits
4 // Geant4 implementation of the MonteCarlo interface methods
5 // for access to Geant4 geometry related with sensitive detectors.
7 #ifndef TG4_SD_MANAGER_H
8 #define TG4_SD_MANAGER_H
15 class TG4VSDConstruction;
20 TG4SDManager(TG4VSDConstruction* sdConstruction);
23 // TG4SDManager(const TG4SDManager& right);
24 virtual ~TG4SDManager();
27 static TG4SDManager* Instance();
33 Int_t VolId(const Text_t* volName) const;
34 const char* VolName(Int_t id) const;
35 Int_t NofVolumes() const;
36 Int_t VolId2Mate(Int_t volumeId) const;
39 TG4VSDConstruction* GetSDConstruction() const;
43 TG4SDManager(const TG4SDManager& right);
46 TG4SDManager& operator=(const TG4SDManager& right);
48 // static data members
49 static TG4SDManager* fgInstance; //this instance
52 TG4VSDConstruction* fSDConstruction; //sensitive detectors construction
53 TG4SDServices* fSDServices; //services related with sensitive
60 inline TG4SDManager* TG4SDManager::Instance()
61 { return fgInstance; }
63 inline TG4VSDConstruction* TG4SDManager::GetSDConstruction() const
64 { return fSDConstruction; }
66 #endif //TG4_SD_MANAGER_H