00001 00007 #ifndef SIMHISTS_H 00008 #define SIMHISTS_H 00009 00010 00011 #include "GaudiAlg/GaudiAlgorithm.h" 00012 00013 #include <string> 00014 00015 class ITHistSvc; 00016 class TH1I; 00017 class TH2F; 00018 00019 class SimHists : public GaudiAlgorithm 00020 { 00021 00022 public: 00023 00024 SimHists(const std::string& name, ISvcLocator* pSvcLocator); 00025 virtual ~SimHists(); 00026 00027 virtual StatusCode initialize(); 00028 virtual StatusCode execute(); 00029 virtual StatusCode finalize(); 00030 00031 private: 00032 00035 std::string m_location; 00036 00039 std::string m_filepath; 00040 00041 private: 00042 00043 // Locally cached pointer to the (T) histogram service 00044 ITHistSvc* m_hsvc; 00045 00046 // Locally cached pointers to histograms; 00047 TH1I* m_nHitCollections; 00048 TH2F* m_nHitByDetector; 00049 00050 }; 00051 00052 #endif // SIMHISTS_H