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