]>
Commit | Line | Data |
---|---|---|
676fb573 | 1 | // $Id$ |
2 | // Category: geometry | |
3 | // | |
4 | // Sensitive detector class, | |
5 | // that implements G4VSensitiveDetector::ProcessHits() | |
6 | // with AliDetector:: StepManager(). | |
7 | ||
8 | #ifndef ALI_SENSITIVE_DETECTOR_H | |
9 | #define ALI_SENSITIVE_DETECTOR_H | |
10 | ||
11 | #include "TG4VSensitiveDetector.h" | |
12 | ||
13 | #include <globals.hh> | |
14 | ||
15 | class AliModule; | |
b318fb5e | 16 | class AliMCQA; |
676fb573 | 17 | |
18 | class G4HCofThisEvent; | |
19 | class G4Step; | |
20 | ||
21 | class AliSensitiveDetector : public TG4VSensitiveDetector | |
22 | { | |
23 | public: | |
24 | AliSensitiveDetector(G4String sdName, AliModule* module); | |
25 | AliSensitiveDetector(G4String sdName, AliModule* module, G4int id); | |
26 | AliSensitiveDetector(const AliSensitiveDetector& right); | |
27 | // --> protected | |
28 | // AliSensitiveDetector(); | |
29 | virtual ~AliSensitiveDetector(); | |
30 | ||
31 | // operators | |
32 | AliSensitiveDetector& operator=(const AliSensitiveDetector& right); | |
33 | ||
34 | // methods | |
b318fb5e | 35 | virtual void Initialize(G4HCofThisEvent*HCE); |
9bcb6317 | 36 | virtual void UserProcessHits(const G4Track* track, const G4Step* step); |
676fb573 | 37 | |
38 | protected: | |
39 | AliSensitiveDetector(); | |
40 | ||
41 | private: | |
b318fb5e | 42 | // data members |
676fb573 | 43 | AliModule* fModule; //AliModule |
b318fb5e | 44 | G4int fModuleID; //AliModule index in AliRun::fModules |
45 | AliMCQA* fMCQA; //AliMCQA | |
676fb573 | 46 | }; |
47 | ||
48 | #endif //ALI_SENSITIVE_DETECTOR_H | |
49 | ||
50 |