Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:13:01

0001 #ifndef MuonRecoTest_H
0002 #define MuonRecoTest_H
0003 
0004 /** \class MuonRecoTest
0005  * *
0006  *  DQMOffline Test Client
0007  *       check the recostruction efficiency of Sta/Glb on eta, phi parameters
0008  *
0009  *  \author  G. Mila - INFN Torino
0010  *   
0011  */
0012 #include "FWCore/Framework/interface/Frameworkfwd.h"
0013 #include "DataFormats/Common/interface/Handle.h"
0014 #include <FWCore/Framework/interface/ESHandle.h>
0015 #include <FWCore/Framework/interface/Event.h>
0016 #include <FWCore/Framework/interface/MakerMacros.h>
0017 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0018 #include <FWCore/Framework/interface/LuminosityBlock.h>
0019 
0020 #include "DQMServices/Core/interface/DQMStore.h"
0021 #include "DQMServices/Core/interface/DQMEDHarvester.h"
0022 
0023 #include "FWCore/ServiceRegistry/interface/Service.h"
0024 #include "FWCore/Framework/interface/Run.h"
0025 
0026 #include <memory>
0027 #include <iostream>
0028 #include <string>
0029 #include <vector>
0030 #include <map>
0031 
0032 class MuonRecoTest : public DQMEDHarvester {
0033 public:
0034   /// Constructor
0035   MuonRecoTest(const edm::ParameterSet& ps);
0036 
0037   /// Destructor
0038   ~MuonRecoTest() override{};
0039 
0040 protected:
0041   /// Endjob
0042   void dqmEndRun(DQMStore::IBooker&, DQMStore::IGetter&, edm::Run const&, edm::EventSetup const&) override;
0043   void dqmEndJob(DQMStore::IBooker&, DQMStore::IGetter&) override;
0044 
0045 private:
0046   // counters
0047   int nevents;
0048   unsigned int nLumiSegs;
0049   int prescaleFactor;
0050   int run;
0051   // Switch for verbosity
0052   std::string metname;
0053   edm::ParameterSet parameters;
0054 
0055   //histo binning parameters
0056   std::string EfficiencyCriterionName;
0057   int etaBin;
0058   double etaMin;
0059   double etaMax;
0060 
0061   int phiBin;
0062   double phiMin;
0063   double phiMax;
0064 
0065   // efficiency histograms
0066   MonitorElement* etaEfficiency;
0067   MonitorElement* phiEfficiency;
0068   // aligment plot
0069   std::vector<MonitorElement*> globalRotation;
0070 };
0071 
0072 #endif