CMS 3D CMS Logo

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(const edm::EventSetup& c);
00052   void beginRun(const edm::Run& run, const edm::EventSetup& setup);
00053   void analyze(const edm::Event& e, const edm::EventSetup& c);
00054   void endJob();
00055 
00057   void bookHistos();
00058   
00060   void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context);
00061   void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
00062 
00063 private:
00064 
00065   int nevents;
00066   unsigned int nLumiSegs;
00067   int prescaleFactor;
00068 
00069   DQMStore* dbe;
00070 
00071   edm::ESHandle<DTGeometry> muonGeom;
00072 
00073   //an histogram of efficiency for each wheel, for each quality scenario
00074   MonitorElement* summaryHistos[5][2];
00075 
00076 };
00077 
00078 #endif

Generated on Tue Jun 9 17:32:34 2009 for CMSSW by  doxygen 1.5.4