00001 00011 #ifndef ADQUALITY_H 00012 #define ADQUALITY_H 00013 00014 00015 #include "Conventions/Detectors.h" 00016 #include "GaudiAlg/GaudiAlgorithm.h" 00017 00018 #include <string> 00019 #include <map> 00020 00021 class AdQualityPlots; 00022 class ITHistSvc; 00023 class ICableSvc; 00024 00025 class AdQuality : public GaudiAlgorithm 00026 { 00027 00028 public: 00029 00030 AdQuality(const std::string& name, ISvcLocator* pSvcLocator); 00031 virtual ~AdQuality(); 00032 00033 virtual StatusCode initialize(); 00034 virtual StatusCode execute(); 00035 virtual StatusCode finalize(); 00036 00037 private: 00038 00041 std::string m_location; 00042 00045 std::string m_filepath; 00046 00047 private: 00048 00049 // Locally cached pointer to the (T) histogram service 00050 ITHistSvc* m_hsvc; 00051 // Resove channel<-->pmt mapping 00052 ICableSvc* m_cable; 00053 00054 typedef std::map<DayaBay::Detector,AdQualityPlots*> PlotMap; 00055 PlotMap m_plots; 00056 }; 00057 00058 #endif // ADQUALITY_H