//#ifndef B1SensitiveDetector_h //#define B1SensitiveDetector_h 1 #include "G4VSensitiveDetector.hh" #include "/Users/vasilysorokin/B1/include/B1Hit.hh" class G4Step; class G4HCofThisEvent; class MyDetector : public G4VSensitiveDetector { public: MyDetector(const G4String& name, const G4String& hitsCollectionName); virtual ~MyDetector(); virtual void Initialize(G4HCofThisEvent *HCE); virtual G4bool ProcessHits(G4Step *step, G4TouchableHistory *ROhist); virtual void EndOfEvent(G4HCofThisEvent *HCE); private: HitsCollection *hitsCollection; G4int collectionID; }; //#endif