00001 //---------------------------------------------------------------------------// 00002 // BOOST --- BESIII Object_Oriented Simulation Tool // 00003 //---------------------------------------------------------------------------// 00004 //Description: 00005 //Author: Dengzy 00006 //Created: Mar, 2004 00007 //Modified: 00008 //Comment: 00009 //---------------------------------------------------------------------------// 00010 // $Id: BesTofSD.hh 00011 00012 00013 #ifndef BesTofSD_h 00014 #define BesTofSD_h 1 00015 00016 #include "BesSensitiveDetector.hh" 00017 #include "BesTofHit.hh" 00018 #include <vector> 00019 using namespace std; 00020 00021 class BesSensitiveManager; 00022 class G4Step; 00023 class G4HCofThisEvent; 00024 class G4Event; 00025 00026 class BesTofSD : public BesSensitiveDetector 00027 { 00028 public: 00029 BesTofSD(G4String name); 00030 virtual ~BesTofSD(); 00031 00032 virtual void Initialize(G4HCofThisEvent* HCE); 00033 virtual G4bool ProcessHits(G4Step* aStep,G4TouchableHistory*); 00034 virtual void EndOfEvent(G4HCofThisEvent* HCE); 00035 00036 void BeginOfTruthEvent(const G4Event*); 00037 void EndOfTruthEvent(const G4Event*); 00038 00039 private: 00040 BesTofHitsCollection* m_besTofCollection; 00041 BesTofHitsCollection* m_besTofList; 00042 G4int m_trackIndex; 00043 vector<G4int> m_trackIndexes; 00044 vector<int> m_scinIndex; 00045 }; 00046 00047 00048 #endif 00049