00001 #ifndef EFFICIENCYANALYZER_H 00002 #define EFFICIENCYANALYZER_H 00003 00011 /* Base Class Headers */ 00012 #include <memory> 00013 #include <fstream> 00014 #include "FWCore/Framework/interface/Frameworkfwd.h" 00015 #include "DQMOffline/Muon/src/MuonAnalyzerBase.h" 00016 #include "FWCore/Framework/interface/Event.h" 00017 #include "FWCore/Framework/interface/EDAnalyzer.h" 00018 #include "FWCore/Framework/interface/MakerMacros.h" 00019 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00020 #include "FWCore/Utilities/interface/InputTag.h" 00021 #include "FWCore/ServiceRegistry/interface/Service.h" 00022 #include "DQMServices/Core/interface/DQMStore.h" 00023 #include "DQMServices/Core/interface/MonitorElement.h" 00024 #include "RecoMuon/TrackingTools/interface/MuonServiceProxy.h" 00025 00026 class EfficiencyAnalyzer : public MuonAnalyzerBase { 00027 00028 public: 00029 /* Constructor */ 00030 EfficiencyAnalyzer(const edm::ParameterSet& pset, MuonServiceProxy *theService); 00031 00032 /* Destructor */ 00033 virtual ~EfficiencyAnalyzer() ; 00034 00035 /* Operations */ 00036 void beginJob (DQMStore *dbe); 00037 void analyze(const edm::Event & event, const edm::EventSetup& eventSetup); 00038 // void endJob (); 00039 00040 protected: 00041 edm::ParameterSet parameters; 00042 00043 // Switch for verbosity 00044 std::string metname; 00045 00046 // STA Label 00047 edm::InputTag theSTACollectionLabel; 00048 edm::InputTag theMuonCollectionLabel; 00049 edm::InputTag theTrackCollectionLabel; 00050 00051 00052 //histo binning parameters 00053 int etaBin_; 00054 int phiBin_; 00055 int ptBin_; 00056 00057 double ptMin_; 00058 double ptMax_; 00059 00060 double etaMin_; 00061 double etaMax_; 00062 00063 double phiMin_; 00064 double phiMax_; 00065 00066 MonitorElement* h_passProbes_TightMu_pt; 00067 MonitorElement* h_passProbes_TightMu_barrel_pt; 00068 MonitorElement* h_passProbes_TightMu_endcap_pt; 00069 MonitorElement* h_passProbes_TightMu_eta; 00070 MonitorElement* h_passProbes_TightMu_hp_eta; 00071 MonitorElement* h_passProbes_TightMu_phi; 00072 00073 MonitorElement* h_failProbes_TightMu_pt; 00074 MonitorElement* h_failProbes_TightMu_eta; 00075 MonitorElement* h_failProbes_TightMu_phi; 00076 00077 MonitorElement* h_allProbes_pt; 00078 MonitorElement* h_allProbes_barrel_pt; 00079 MonitorElement* h_allProbes_endcap_pt; 00080 MonitorElement* h_allProbes_eta; 00081 MonitorElement* h_allProbes_hp_eta; 00082 MonitorElement* h_allProbes_phi; 00083 00084 00085 MonitorElement* test_TightMu_Minv; 00086 00087 00088 00089 }; 00090 #endif 00091