]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AliGeant4/AliSensitiveDetector.h
path to perl changes to /usr/bin/perl
[u/mrichter/AliRoot.git] / AliGeant4 / AliSensitiveDetector.h
1 // $Id$
2 // Category: digits+hits
3 //
4 // Author: I. Hrivnacova
5 //
6 // Class AliSensitiveDetector
7 // --------------------------
8 // The sensitive detector class,
9 // it implements G4VSensitiveDetector::ProcessHits()
10 // with AliDetector::StepManager().
11
12 #ifndef ALI_SENSITIVE_DETECTOR_H
13 #define ALI_SENSITIVE_DETECTOR_H
14
15 #include "TG4VSensitiveDetector.h"
16
17 #include <globals.hh>
18
19 class AliModule;
20 class AliMCQA;
21
22 class G4HCofThisEvent;
23 class G4Step;
24
25 class AliSensitiveDetector : public TG4VSensitiveDetector
26 {
27   public:
28     AliSensitiveDetector(G4String sdName, AliModule* module);
29     AliSensitiveDetector(G4String sdName, AliModule* module, G4int id);
30     AliSensitiveDetector(const AliSensitiveDetector& right);
31     // --> protected
32     // AliSensitiveDetector();
33     virtual ~AliSensitiveDetector();
34
35     // operators
36     AliSensitiveDetector& operator=(const AliSensitiveDetector& right);
37   
38     // methods
39     virtual void Initialize(G4HCofThisEvent*HCE);
40     virtual void UserProcessHits(const G4Track* track, const G4Step* step);
41     
42   protected:  
43     AliSensitiveDetector();
44     
45   private:
46     // data members    
47     AliModule*       fModule;      //AliModule
48     G4int            fModuleID;    //AliModule index in AliRun::fModules
49     AliMCQA*         fMCQA;        //AliMCQA    
50 };
51
52 #endif //ALI_SENSITIVE_DETECTOR_H
53
54