CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/DQM/HcalMonitorClient/interface/HcalDCSInfo.h

Go to the documentation of this file.
00001 #ifndef HcalMonitorClient_HcalDcsInfo_h
00002 #define HcalMonitorClient_HcalDcsInfo_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     HcalMonitorClient
00006 // Class  :     HcalDCSInfo
00007 // 
00016 //         Author:  Jeff Temple
00017 //         Created:  Fri Mar 6 00:15:00 CET 2009
00018 //
00019 //          based on v1.1 of DQM/SiStripMonitorClient/src/SiStripDCsInfo.cc
00020 //          by:  Suchandra Dutta
00021 //         Created:  Mon Feb 16 19:00:00 CET 2009
00022 //
00023 
00024 #include <string>
00025 
00026 #include "FWCore/Framework/interface/EDAnalyzer.h"
00027 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00028 #include "FWCore/Framework/interface/ESHandle.h"
00029 #include "FWCore/Framework/interface/LuminosityBlock.h"
00030 #include "FWCore/Framework/interface/Run.h"
00031 #include "FWCore/Framework/interface/EventSetup.h"
00032 
00033 #include <iostream>
00034 #include <fstream>
00035 #include <string>
00036 #include <vector>
00037 #include <map>
00038 
00039 class DQMStore;
00040 class MonitorElement;
00041 
00042 class HcalDCSInfo: public edm::EDAnalyzer {
00043 
00044  public:
00045 
00047   HcalDCSInfo(const edm::ParameterSet& ps);
00048   
00050   virtual ~HcalDCSInfo();
00051 
00052  private:
00053 
00055   void beginJob();
00056 
00058   void beginRun(edm::Run const& run, edm::EventSetup const& eSetup);
00059 
00061                                                                                
00062   void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& iSetup);
00063 
00065   virtual void endLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&) ;
00066 
00067 
00069 
00070   void analyze(edm::Event const&, edm::EventSetup const&);
00071 
00072   int debug_;
00073 
00074 private:
00075 
00076   DQMStore* dqmStore_;
00077   MonitorElement * DCSSummaryMap_;
00078   MonitorElement * DCSFraction_;
00079   MonitorElement * DCSFractionHB_;
00080   MonitorElement * DCSFractionHE_;
00081   MonitorElement * DCSFractionHO_;
00082   MonitorElement * DCSFractionHF_;
00083   MonitorElement * DCSFractionHO0_;
00084   MonitorElement * DCSFractionHO12_;
00085   MonitorElement * DCSFractionHFlumi_;
00086 
00087   unsigned long long m_cacheID_;
00088   std::string rootFolder_;
00089 
00090 };
00091 #endif
00092 
00093