2 // Category: digits+hits
4 // Author: I. Hrivnacova
8 // Geant4 implementation of the MonteCarlo interface methods
9 // for access to Geant4 geometry related with sensitive detectors.
11 #ifndef TG4_SD_MANAGER_H
12 #define TG4_SD_MANAGER_H
19 class TG4VSDConstruction;
24 TG4SDManager(TG4VSDConstruction* sdConstruction);
27 // TG4SDManager(const TG4SDManager& right);
28 virtual ~TG4SDManager();
31 static TG4SDManager* Instance();
37 Int_t VolId(const Text_t* volName) const;
38 const char* VolName(Int_t id) const;
39 Int_t NofVolumes() const;
40 Int_t VolId2Mate(Int_t volumeId) const;
43 TG4VSDConstruction* GetSDConstruction() const;
47 TG4SDManager(const TG4SDManager& right);
50 TG4SDManager& operator=(const TG4SDManager& right);
52 // static data members
53 static TG4SDManager* fgInstance; //this instance
56 TG4VSDConstruction* fSDConstruction; //sensitive detectors construction
57 TG4SDServices* fSDServices; //services related with sensitive
64 inline TG4SDManager* TG4SDManager::Instance()
65 { return fgInstance; }
67 inline TG4VSDConstruction* TG4SDManager::GetSDConstruction() const
68 { return fSDConstruction; }
70 #endif //TG4_SD_MANAGER_H