00001 //---------------------------------------------------------------------------// 00002 // BOOST --- BESIII Object_Oriented Simulation Tool // 00003 //---------------------------------------------------------------------------// 00004 //Description: 00005 //Author: Dengzy 00006 //Created: Mar, 2004 00007 //Modified: 00008 //Comment: Add a new digitizer module for endcap TOF. Liu Yong @ Dec,2008 00009 //---------------------------------------------------------------------------// 00010 // $Id: BesTofDigitizer.hh 00011 00012 #ifndef BesTofDigitizer_h 00013 #define BesTofDigitizer_h 1 00014 00015 #include "G4VDigitizerModule.hh" 00016 #include "BesTofDigi.hh" 00017 #include "BesTofDigitizerBrV1.hh" 00018 #include "BesTofDigitizerEcV1.hh" 00019 #include "BesTofDigitizerBrV2.hh" 00020 #include "BesTofDigitizerEcV2.hh" 00021 #include "BesTofDigitizerEcV3.hh" 00022 00023 //#Matthias 00024 #include "BesTofDigitizerEcV4.hh" 00025 00026 #include "RealizationSvc/RealizationSvc.h" 00027 #include "RealizationSvc/IRealizationSvc.h" 00028 00029 //class BesTofDigitizerMessenger; 00030 00031 class BesTofDigitizer : public G4VDigitizerModule 00032 { 00033 public: 00034 BesTofDigitizer(G4String modName); 00035 ~BesTofDigitizer(); 00036 00037 void GroupHits(); 00038 //#Matthias 00039 void GroupHits_mrpc(); 00040 //G4int GetVersion() {return m_version;} 00041 //void SetVersion(G4int v) {m_version = v;} 00042 00043 virtual void Digitize(); 00044 00045 private: 00046 BesTofDigitizerBrV1* tofDMBr1; 00047 BesTofDigitizerEcV1* tofDMEc1; 00048 BesTofDigitizerBrV2* tofDMBr2; 00049 BesTofDigitizerEcV2* tofDMEc2; 00050 BesTofDigitizerEcV3* tofDMEc3; 00051 BesTofDigitizerEcV4* tofDMEc4; 00052 00053 BesTofDigitsCollection* m_besTofDigitsCollection; 00054 BesTofHitsCollection* m_THC; 00055 00056 00057 //BesTofDigitizerMessenger* m_digiMessenger; 00058 vector<ScintSingle*>* m_scintGroup; 00059 00060 G4int m_versionBr; 00061 G4int m_versionEc; 00062 00063 RealizationSvc* m_RealizationSvc; 00064 }; 00065 00066 #endif 00067