4 // Sensitive detector class,
5 // that implements G4VSensitiveDetector::ProcessHits()
6 // with AliDetector:: StepManager().
8 #ifndef ALI_SENSITIVE_DETECTOR_H
9 #define ALI_SENSITIVE_DETECTOR_H
11 #include "TG4VSensitiveDetector.h"
18 class G4HCofThisEvent;
21 class AliSensitiveDetector : public TG4VSensitiveDetector
24 AliSensitiveDetector(G4String sdName, AliModule* module);
25 AliSensitiveDetector(G4String sdName, AliModule* module, G4int id);
26 AliSensitiveDetector(const AliSensitiveDetector& right);
28 // AliSensitiveDetector();
29 virtual ~AliSensitiveDetector();
32 AliSensitiveDetector& operator=(const AliSensitiveDetector& right);
35 virtual void Initialize(G4HCofThisEvent* hc);
36 virtual G4bool ProcessHits(G4Step* step, G4TouchableHistory* history);
37 virtual void EndOfEvent(G4HCofThisEvent* hce);
38 //virtual void clear();
39 virtual void PrintAll();
40 virtual void DrawAll();
43 AliSensitiveDetector();
47 AliModule* fModule; //AliModule
48 TG4StepManager* fStepManager; //TG4StepManager
51 #endif //ALI_SENSITIVE_DETECTOR_H