00001 #ifndef SiStripMonitorSummary_SiStripApvGainsDQM_h 00002 #define SiStripMonitorSummary_SiStripApvGainsDQM_h 00003 00004 00005 #include "FWCore/Framework/interface/ESHandle.h" 00006 00007 #include "DQM/SiStripMonitorSummary/interface/SiStripBaseCondObjDQM.h" 00008 00009 #include "CondFormats/SiStripObjects/interface/SiStripApvGain.h" 00010 #include "CondFormats/DataRecord/interface/SiStripApvGainRcd.h" 00011 00012 00013 class SiStripApvGainsDQM : public SiStripBaseCondObjDQM{ 00014 00015 public: 00016 00017 SiStripApvGainsDQM(const edm::EventSetup & eSetup, 00018 edm::ParameterSet const& hPSet, 00019 edm::ParameterSet const& fPSet); 00020 00021 virtual ~SiStripApvGainsDQM(); 00022 00023 void getActiveDetIds(const edm::EventSetup & eSetup); 00024 00025 void fillModMEs(const std::vector<uint32_t> & selectedDetIds); 00026 void fillSummaryMEs(const std::vector<uint32_t> & selectedDetIds); 00027 00028 void fillMEsForDet(ModMEs selModME_,uint32_t selDetId_); 00029 00030 void fillMEsForLayer( std::map<uint32_t, ModMEs> selModMEsMap_, uint32_t selDetId_); 00031 00032 unsigned long long getCache(const edm::EventSetup & eSetup){ return eSetup.get<SiStripApvGainRcd>().cacheIdentifier();} 00033 00034 void getConditionObject(const edm::EventSetup & eSetup){ 00035 eSetup.get<SiStripApvGainRcd>().get(gainHandle_); 00036 cacheID_memory = cacheID_current; 00037 } 00038 00039 private: 00040 edm::ESHandle<SiStripApvGain> gainHandle_; 00041 00042 }; 00043 00044 #endif