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 
13 // system include files
14 #include <memory>
15 #include <string>
16 
17 // user include files
20 
23 
25 
30 
33 
34 
35 namespace reco {class Track;}
36 
37 class InputTag;
38 class MonitorElement;
39 class TrackAssociatorBase;
40 class DQMStore;
41 
42 //
43 // class decleration
44 //
45 
47  public:
50 
51 
52  private:
53  virtual void beginJob() ;
54  // virtual void beginRun(const edm::Run&, const edm::EventSetup&) ;
55  virtual void analyze(const edm::Event&, const edm::EventSetup&) override;
56  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
57  virtual void endJob() ;
58  virtual void endRun(const edm::Run&, const edm::EventSetup&) override;
59 
60  void computeEfficiencyEta(MonitorElement*, MonitorElement *recoTH2, MonitorElement *simTH2);
61  void computeEfficiencyPt(MonitorElement*, MonitorElement *recoTH2, MonitorElement *simTH2);
62  // ----------member data ---------------------------
67  MonitorElement *h_shouldMatch, *h_goodMatchSim, *h_tkOnlySim, *h_staOnlySim;
68  MonitorElement *h_totReco, *h_goodMatch, *h_fakeMatch;
71 
72  const TrackAssociatorBase *tkAssociator_, *muAssociator_;
73  edm::InputTag tkAssociatorName_, muAssociatorName_;
74  edm::InputTag tkName_, tpName_, glbName_, staName_;
75  edm::EDGetTokenT<edm::View<reco::Track> > tkToken_, tpToken_, glbToken_, staToken_;
77 
78 };
79 
80 #endif
def analyze(function, filename, filter=None)
Definition: Profiling.py:11
void bookHistograms(fwlite::EventContainer &eventCont)
void beginJob()
Definition: Breakpoints.cc:15
const TrackAssociatorBase * tkAssociator_
fixed size matrix
edm::EDGetTokenT< edm::View< reco::Track > > tpToken_
edm::EDGetTokenT< reco::TrackToTrackingParticleAssociator > tkAssociatorToken_
Definition: Run.h:42