CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DQMOffline/Muon/src/MuonRecoTest.h

Go to the documentation of this file.
00001 #ifndef MuonRecoTest_H
00002 #define MuonRecoTest_H
00003 
00004 
00017 #include "FWCore/Framework/interface/Frameworkfwd.h"
00018 #include <FWCore/Framework/interface/EDAnalyzer.h>
00019 #include "DataFormats/Common/interface/Handle.h"
00020 #include <FWCore/Framework/interface/ESHandle.h>
00021 #include <FWCore/Framework/interface/Event.h>
00022 #include <FWCore/Framework/interface/MakerMacros.h>
00023 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00024 #include <FWCore/Framework/interface/LuminosityBlock.h>
00025 
00026 #include "DQMServices/Core/interface/DQMStore.h"
00027 #include "DQMServices/Core/interface/MonitorElement.h"
00028 #include "FWCore/ServiceRegistry/interface/Service.h"
00029 #include "FWCore/Framework/interface/Run.h"
00030 
00031 #include <memory>
00032 #include <iostream>
00033 #include <string>
00034 #include <vector>
00035 #include <map>
00036 
00037 
00038 
00039 class MuonRecoTest: public edm::EDAnalyzer{
00040 
00041 public:
00042 
00044   MuonRecoTest(const edm::ParameterSet& ps);
00045   
00047   virtual ~MuonRecoTest();
00048 
00049 protected:
00050 
00052   void beginJob(void);
00053 
00055   void analyze(const edm::Event& e, const edm::EventSetup& c);
00056 
00058   void endJob();
00059 
00060   void beginRun(edm::Run const& run, edm::EventSetup const& eSetup);
00061   void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
00062 
00064   void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
00065   void endRun(edm::Run const& run, edm::EventSetup const& eSetup);
00066 
00067 
00068 private:
00069 
00070   // counters
00071   int nevents;
00072   unsigned int nLumiSegs;
00073   int prescaleFactor;
00074   int run;
00075   // Switch for verbosity
00076   std::string metname;
00077 
00078   DQMStore* theDbe;
00079   edm::ParameterSet parameters;
00080 
00081    //histo binning parameters
00082   int etaBin;
00083   double etaMin;
00084   double etaMax;
00085 
00086   int phiBin;
00087   double phiMin;
00088   double phiMax;
00089 
00090   // efficiency histograms
00091   MonitorElement* etaEfficiency;
00092   MonitorElement* phiEfficiency;
00093   // aligment plot
00094   std::vector<MonitorElement*> globalRotation;
00095 
00096 };
00097 
00098 #endif