00001
00002
00003
00004
00005
00006
00007 #ifndef BDSEnergyCounterSD_h
00008 #define BDSEnergyCounterSD_h 1
00009
00010 #include "G4VSensitiveDetector.hh"
00011 #include "BDSEnergyCounterHit.hh"
00012 #include "G4Navigator.hh"
00013 #include "G4TransportationManager.hh"
00014
00015 class G4Step;
00016 class G4HCofThisEvent;
00017 class G4TouchableHistory;
00018
00019 class BDSEnergyCounterSD : public G4VSensitiveDetector
00020 {
00021
00022 public:
00023 BDSEnergyCounterSD(G4String name);
00024 ~BDSEnergyCounterSD();
00025
00026 void Initialize(G4HCofThisEvent*HCE);
00027 G4bool ProcessHits(G4Step*aStep,G4TouchableHistory*ROhist);
00028 void EndOfEvent(G4HCofThisEvent*HCE);
00029 void clear();
00030 void DrawAll();
00031 void PrintAll();
00032
00033
00034 private:
00035 BDSEnergyCounterHitsCollection *BDSEnergyCounterCollection;
00036 G4int* HitID;
00037 G4int nMaxCopy;
00038
00039 };
00040
00041
00042
00043 #endif
00044