00001 #ifndef SensitiveDetector_h 00002 #define SensitiveDetector_h 1 00003 00004 #include "G4VSensitiveDetector.hh" 00005 class DetectorConstruction; 00006 class RunAction; 00007 00008 class SensitiveDetector : public G4VSensitiveDetector 00009 { 00010 public: 00011 SensitiveDetector(G4String SDname); 00012 ~SensitiveDetector(); 00013 00014 public: 00015 // --------- methods from base class G4VSensitiveDetector ---------- 00016 // -- Mandatory base class method : it must to be overloaded: 00017 G4bool ProcessHits(G4Step *step, G4TouchableHistory *ROhist); 00018 // ------------------------- 00019 // unused in these examples 00020 // ----------------------------------------------------------------- 00021 00022 private: 00023 DetectorConstruction* m_detector; 00024 RunAction* m_runAction; 00025 00026 }; 00027 00028 #endif