CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/DQM/DTMonitorClient/src/DTChamberEfficiencyClient.h

Go to the documentation of this file.
00001 #ifndef DTChamberEfficiencyClient_H
00002 #define DTChamberEfficiencyClient_H
00003 
00004 
00015 #include "FWCore/Framework/interface/Frameworkfwd.h"
00016 #include <FWCore/Framework/interface/EDAnalyzer.h>
00017 #include "DataFormats/Common/interface/Handle.h"
00018 #include <FWCore/Framework/interface/ESHandle.h>
00019 #include <FWCore/Framework/interface/Event.h>
00020 #include <FWCore/Framework/interface/MakerMacros.h>
00021 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00022 #include <FWCore/Framework/interface/LuminosityBlock.h>
00023 
00024 #include "DQMServices/Core/interface/DQMStore.h"
00025 #include "DQMServices/Core/interface/MonitorElement.h"
00026 #include "FWCore/ServiceRegistry/interface/Service.h"
00027 
00028 #include <memory>
00029 #include <iostream>
00030 #include <fstream>
00031 #include <string>
00032 #include <vector>
00033 #include <map>
00034 
00035 class DTGeometry;
00036 class DTChamberId;
00037 class DTLayerId;
00038 
00039 class DTChamberEfficiencyClient: public edm::EDAnalyzer{
00040 
00041 public:
00042 
00044   DTChamberEfficiencyClient(const edm::ParameterSet& ps);
00045   
00047   virtual ~DTChamberEfficiencyClient();
00048 
00049 protected:
00050 
00051   void beginJob();
00052   void analyze(const edm::Event& e, const edm::EventSetup& c);
00053   void endJob();
00054 
00056   void bookHistos();
00057   
00059   void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context);
00060   void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
00061 
00062   void beginRun(const edm::Run& run, const edm::EventSetup& setup);
00063   void endRun(edm::Run const& run, edm::EventSetup const& c);
00064 
00065 private:
00066 
00067   int nevents;
00068   unsigned int nLumiSegs;
00069   int prescaleFactor;
00070 
00071   DQMStore* dbe;
00072 
00073   edm::ESHandle<DTGeometry> muonGeom;
00074 
00075   //an histogram of efficiency for each wheel, for each quality scenario
00076   MonitorElement* summaryHistos[5][2];
00077   MonitorElement* globalEffSummary;
00078 
00079 };
00080 
00081 #endif