CMS 3D CMS Logo

GlobalMuonMatchAnalyzer.h
Go to the documentation of this file.
1 #ifndef Validation_RecoMuon_GlobalMuonMatchAnalyzer_H
2 #define Validation_RecoMuon_GlobalMuonMatchAnalyzer_H
3 
12 // system include files
13 #include <memory>
14 #include <string>
15 
16 // user include files
19 
22 
24 
29 
33 
34 namespace reco {
35  class Track;
36 }
37 
38 class InputTag;
39 class TrackAssociatorBase;
40 
41 //
42 // class decleration
43 //
44 
46 public:
48  ~GlobalMuonMatchAnalyzer() override;
49 
50 private:
51  // virtual void beginRun(const edm::Run&, const edm::EventSetup&) ;
52  void analyze(const edm::Event &, const edm::EventSetup &) override;
53  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
54  void dqmEndRun(const edm::Run &, const edm::EventSetup &) override;
55 
56  void computeEfficiencyEta(MonitorElement *, MonitorElement *recoTH2, MonitorElement *simTH2);
57  void computeEfficiencyPt(MonitorElement *, MonitorElement *recoTH2, MonitorElement *simTH2);
58  // ----------member data ---------------------------
63  MonitorElement *h_shouldMatch, *h_goodMatchSim, *h_tkOnlySim, *h_staOnlySim;
64  MonitorElement *h_totReco, *h_goodMatch, *h_fakeMatch;
67 
68  const TrackAssociatorBase *tkAssociator_, *muAssociator_;
69  edm::InputTag tkAssociatorName_, muAssociatorName_;
70  edm::InputTag tkName_, tpName_, glbName_, staName_;
71  edm::EDGetTokenT<edm::View<reco::Track> > tkToken_, tpToken_, glbToken_, staToken_;
73 };
74 
75 #endif
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
const TrackAssociatorBase * tkAssociator_
fixed size matrix
edm::EDGetTokenT< edm::View< reco::Track > > tpToken_
edm::EDGetTokenT< reco::TrackToTrackingParticleAssociator > tkAssociatorToken_
Definition: Run.h:45