]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TGeant4/TG4VSensitiveDetector.h
Re-correct Makefile for RuleChecker
[u/mrichter/AliRoot.git] / TGeant4 / TG4VSensitiveDetector.h
1 // $Id$
2 // Category: geometry
3 //
4 // This class adds integer identifier data member to G4VSensitiveDetector
5
6 #ifndef TG4V_SENSITIVE_DETECTOR_H
7 #define TG4V_SENSITIVE_DETECTOR_H
8
9 #include <G4VSensitiveDetector.hh>
10 #include <globals.hh>
11
12 class TG4VSensitiveDetector : public G4VSensitiveDetector
13 {
14   public:
15     TG4VSensitiveDetector(G4String sdName);
16     TG4VSensitiveDetector(G4String sdName, G4int id);
17     TG4VSensitiveDetector(const TG4VSensitiveDetector& right);
18     // --> protected
19     // TG4VSensitiveDetector();
20     virtual ~TG4VSensitiveDetector();
21
22     // operators
23     TG4VSensitiveDetector& operator=(const TG4VSensitiveDetector &right);
24
25     // static get method
26     static G4int GetTotalNofSensitiveDetectors();
27
28     // get methods
29     G4int GetID() const;
30     
31   protected:
32     TG4VSensitiveDetector(); 
33
34     // data members
35     G4int  fID;                //sensitive detector ID
36     
37   private:          
38     // data members
39     static G4int  fgSDCounter; //sensitive detector counter
40 };
41
42 // inline methods
43
44 inline G4int TG4VSensitiveDetector::GetTotalNofSensitiveDetectors()
45 { return fgSDCounter; }
46
47 inline G4int TG4VSensitiveDetector::GetID() const
48 { return fID; }
49
50 #endif //TG4V_SENSITIVE_DETECTOR_H
51
52