4 // Special sensitive detector class for lego run.
5 // It implements G4VSensitiveDetector::ProcessHits()
6 // with AliLego:: StepManager().
8 #ifndef ALI_LEGO_SENSITIVE_DETECTOR_H
9 #define ALI_LEGO_SENSITIVE_DETECTOR_H
11 #include "TG4VSensitiveDetector.h"
17 class G4HCofThisEvent;
20 class AliLegoSensitiveDetector : public TG4VSensitiveDetector
23 AliLegoSensitiveDetector(G4String name, AliLego* lego,
24 G4VSensitiveDetector* standardSD);
25 AliLegoSensitiveDetector(const AliLegoSensitiveDetector& right);
27 // AliLegoSensitiveDetector();
28 virtual ~AliLegoSensitiveDetector();
31 AliLegoSensitiveDetector& operator=(const AliLegoSensitiveDetector& right);
34 virtual void UserProcessHits(const G4Track* track, const G4Step* step);
37 G4VSensitiveDetector* GetStandardSD() const;
40 AliLegoSensitiveDetector();
44 AliLego* fLego; //lego from AliRoot
45 G4VSensitiveDetector* fStandardSD; //standard sensitive detector
50 inline G4VSensitiveDetector* AliLegoSensitiveDetector::GetStandardSD() const
51 { return fStandardSD; }
53 #endif //ALI_LEGO_SENSITIVE_DETECTOR_H