#ifndef StripSD_h #define StripSD_h 1 #include "G4VSensitiveDetector.hh" ///class DetectorConstruction; ///class RunAction; #include "StripHit.hh" // <<- the hit "format" we define class G4HCofThisEvent; // <<- means "H(it) C(ollections) of This Event" /* * Defines sensitve part of detector geometry. * * Stores Hits with * * deposited energy * * position * in Hit Collections of This Event * * ProcessHits() */ class StripSD : public G4VSensitiveDetector { public: /// Constructor StripSD(G4String SDname); /// Destructor ~StripSD(); public: /// methods from base class G4VSensitiveDetector /// Mandatory base class method : it must to be overloaded: G4bool ProcessHits(G4Step *step, G4TouchableHistory *ROhist); /// (optional) method of base class G4VSensitiveDetector void Initialize(G4HCofThisEvent* HCE); /// (optional) method of base class G4VSensitiveDetector void EndOfEvent(G4HCofThisEvent* HCE); private: StripHitCollection* hitCollection; G4int HCID; //JT }; #endif