CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DQM/L1TMonitorClient/interface/L1TdeECALClient.h

Go to the documentation of this file.
00001 #ifndef DQM_L1TMONITORCLIENT_L1TDEECALCLIENT_H
00002 #define DQM_L1TMONITORCLIENT_L1TDEECALCLIENT_H
00003 
00004 #include "FWCore/Framework/interface/Frameworkfwd.h"
00005 #include "FWCore/Framework/interface/Event.h"
00006 #include "FWCore/Framework/interface/MakerMacros.h"
00007 #include <FWCore/Framework/interface/EDAnalyzer.h>
00008 #include "DQMServices/Core/interface/DQMStore.h"
00009 #include "DQMServices/Core/interface/MonitorElement.h"
00010 
00011 #include <memory>
00012 #include <iostream>
00013 #include <fstream>
00014 #include <string>
00015 #include <vector>
00016 #include <map>
00017 #include <TH1F.h>
00018 #include <TH2F.h>
00019 #include <TProfile2D.h>
00020 
00021 class L1TdeECALClient: public edm::EDAnalyzer {
00022 
00023 public:
00024 
00026   L1TdeECALClient(const edm::ParameterSet& ps);
00027   
00029   virtual ~L1TdeECALClient();
00030  
00031 protected:
00032 
00034   void beginJob(void);
00035 
00037   void beginRun(const edm::Run& r, const edm::EventSetup& c);
00038 
00040   void analyze(const edm::Event& e, const edm::EventSetup& c) ;
00041 
00042   void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, 
00043                             const edm::EventSetup& context) ;
00044 
00046   void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, 
00047                           const edm::EventSetup& c);
00048 
00050   void endRun(const edm::Run& r, const edm::EventSetup& c);
00051 
00053   void endJob();
00054 
00055 private:
00056 
00057   void initialize();
00058   TH1F * get1DHisto(std::string meName, DQMStore * dbi);
00059   TH2F * get2DHisto(std::string meName, DQMStore * dbi);
00060   TProfile2D * get2DProfile(std::string meName, DQMStore * dbi);
00061   TProfile * get1DProfile(std::string meName, DQMStore * dbi);
00062   edm::ParameterSet parameters_;
00063 
00064   DQMStore* dbe_;  
00065   std::string monitorDir_;
00066   bool verbose_;
00067   int counterLS_;      
00068   int counterEvt_;     
00069   int prescaleLS_;     
00070   int prescaleEvt_;    
00071 
00072   // -------- member data --------
00073   MonitorElement * ecalEtMapDiff1D_proj;
00074   MonitorElement * ecalEtMapDiff1D_proj_badChs;
00075   MonitorElement * ecalEtMapDiff_badChs;
00076 
00077 
00078 };
00079 
00080 #endif