CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/DQM/L1TMonitorClient/interface/L1TDTTPGClient.h

Go to the documentation of this file.
00001 #ifndef DQM_L1TMONITORCLIENT_L1TDTTPG_H
00002 #define DQM_L1TMONITORCLIENT_L1TDTTPG_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 L1TDTTPGClient: public edm::EDAnalyzer {
00022 
00023 public:
00024 
00026   L1TDTTPGClient(const edm::ParameterSet& ps);
00027   
00029   virtual ~L1TDTTPGClient();
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   void makeRatioHisto(MonitorElement *ratioME, std::string &nName, std::string &dName); 
00059   void setMapPhLabel(MonitorElement *me);
00060   void setMapThLabel(MonitorElement *me);
00061   TH1F * get1DHisto(std::string meName, DQMStore * dbi);
00062   TH2F * get2DHisto(std::string meName, DQMStore * dbi);
00063   TProfile2D * get2DProfile(std::string meName, DQMStore * dbi);
00064   TProfile * get1DProfile(std::string meName, DQMStore * dbi);
00065   
00066   edm::ParameterSet parameters_;
00067   DQMStore* dbe_;  
00068   std::string monitorName_;
00069   std::string input_dir_;
00070   std::string output_dir_;
00071   int counterLS_;      
00072   int counterEvt_;     
00073   int prescaleLS_;     
00074   int prescaleEvt_;    
00075 
00076   // -------- member data --------
00077 //  MonitorElement * clientHisto;
00078   MonitorElement *dttpgphmapcorrf;
00079   MonitorElement *dttpgphmap2ndf;
00080   MonitorElement *dttpgphmapbxf[3];
00081   MonitorElement *dttpgthmaphf;
00082   MonitorElement *dttpgthmapbxf[3];
00083 
00084 };
00085 
00086 #endif