CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/DQM/SiStripMonitorSummary/interface/SiStripPedestalsDQM.h

Go to the documentation of this file.
00001 #ifndef SiStripMonitorSummary_SiStripPedestalsDQM_h
00002 #define SiStripMonitorSummary_SiStripPedestalsDQM_h
00003 
00004 
00005 #include "FWCore/Framework/interface/ESHandle.h"
00006 
00007 #include "DQM/SiStripMonitorSummary/interface/SiStripBaseCondObjDQM.h"
00008 
00009 #include "CondFormats/SiStripObjects/interface/SiStripPedestals.h"
00010 #include "CondFormats/DataRecord/interface/SiStripPedestalsRcd.h"
00011 
00012 
00013 class SiStripPedestalsDQM : public SiStripBaseCondObjDQM{
00014  
00015   public:
00016   
00017   SiStripPedestalsDQM(const edm::EventSetup & eSetup,
00018                       edm::ParameterSet const& hPSet,
00019                       edm::ParameterSet const& fPSet);
00020   
00021   virtual ~SiStripPedestalsDQM();
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   void fillMEsForLayer( std::map<uint32_t, ModMEs> selModMEsMap_, uint32_t selDetId_);
00030   
00031   unsigned long long getCache(const edm::EventSetup & eSetup){ return eSetup.get<SiStripPedestalsRcd>().cacheIdentifier();}
00032   
00033   void getConditionObject(const edm::EventSetup & eSetup){
00034     eSetup.get<SiStripPedestalsRcd>().get(pedestalHandle_);
00035     cacheID_memory = cacheID_current;
00036   }
00037 
00038   private:
00039     edm::ESHandle<SiStripPedestals> pedestalHandle_;
00040 
00041 };
00042 
00043 #endif