4 // This class adds integer identifier data member to G4VSensitiveDetector
6 #ifndef TG4V_SENSITIVE_DETECTOR_H
7 #define TG4V_SENSITIVE_DETECTOR_H
9 #include <G4VSensitiveDetector.hh>
12 class TG4VSensitiveDetector : public G4VSensitiveDetector
15 TG4VSensitiveDetector(G4String sdName);
16 TG4VSensitiveDetector(G4String sdName, G4int id);
17 TG4VSensitiveDetector(const TG4VSensitiveDetector& right);
19 // TG4VSensitiveDetector();
20 virtual ~TG4VSensitiveDetector();
23 TG4VSensitiveDetector& operator=(const TG4VSensitiveDetector &right);
26 static G4int GetTotalNofSensitiveDetectors();
32 TG4VSensitiveDetector();
35 G4int fID; //sensitive detector ID
39 static G4int fgSDCounter; //sensitive detector counter
44 inline G4int TG4VSensitiveDetector::GetTotalNofSensitiveDetectors()
45 { return fgSDCounter; }
47 inline G4int TG4VSensitiveDetector::GetID() const
50 #endif //TG4V_SENSITIVE_DETECTOR_H