CMS 3D CMS Logo

RecoMuonValidator.h
Go to the documentation of this file.
1 #ifndef Validation_RecoMuon_RecoMuonValidator_H
2 #define Validation_RecoMuon_RecoMuonValidator_H
3 
8 
11 
13 
21 
23 
24 // for selection cut
26 
27 class TrackAssociatorBase;
28 
30 public:
32  ~RecoMuonValidator() override;
33 
34  void dqmBeginRun(const edm::Run&, const edm::EventSetup& eventSetup) override;
35  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
36  void dqmEndRun(edm::Run const&, edm::EventSetup const&) override;
37  void analyze(const edm::Event& event, const edm::EventSetup& eventSetup) override;
38  virtual int countMuonHits(const reco::Track& track) const;
39  virtual int countTrackerHits(const reco::Track& track) const;
40 
41 protected:
42  unsigned int verbose_;
43 
50 
52 
55 
60 
65 
67 
68  bool doAbsEta_;
69  bool doAssoc_;
70  bool usePFMuon_;
71 
73 
74  // Track to use
76 
77  struct MuonME;
78  MuonME* muonME_;
79 
80  struct CommonME;
82 
83  //
84  //struct for histogram dimensions
85  //
86  struct HistoDimensions {
87  //p
88  unsigned int nBinP;
89  double minP, maxP;
90  //pt
91  unsigned int nBinPt;
92  double minPt, maxPt;
93  //if abs eta
94  bool doAbsEta;
95  //eta
96  unsigned int nBinEta;
97  double minEta, maxEta;
98  //phi
99  unsigned int nBinPhi;
100  double minPhi, maxPhi;
101  //dxy
102  unsigned int nBinDxy;
103  double minDxy, maxDxy;
104  //dz
105  unsigned int nBinDz;
106  double minDz, maxDz;
107  //pulls
108  unsigned int nBinPull;
109  double wPull;
110  //resolustions
111  unsigned int nBinErr;
112  double minErrP, maxErrP;
119  //track multiplicities
120  unsigned int nTrks, nAssoc;
121  unsigned int nDof;
122  // for PF muons
123  bool usePFMuon;
124  };
125 
127 
128 private:
131 };
132 
133 #endif
RecoMuonValidator::HistoDimensions::maxPt
double maxPt
Definition: RecoMuonValidator.h:92
RecoMuonValidator::HistoDimensions::minErrP
double minErrP
Definition: RecoMuonValidator.h:112
RecoMuonValidator::HistoDimensions::nBinDxy
unsigned int nBinDxy
Definition: RecoMuonValidator.h:102
RecoMuonValidator::HistoDimensions::maxDxy
double maxDxy
Definition: RecoMuonValidator.h:103
RecoMuonValidator::HistoDimensions::maxErrPt
double maxErrPt
Definition: RecoMuonValidator.h:113
RecoMuonValidator::HistoDimensions::minP
double minP
Definition: RecoMuonValidator.h:89
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11724
Muon.h
RecoMuonValidator::simToken_
edm::EDGetTokenT< TrackingParticleCollection > simToken_
Definition: RecoMuonValidator.h:47
ESHandle.h
RecoMuonValidator::dbe_
DQMStore * dbe_
Definition: RecoMuonValidator.h:66
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< TrackingParticleCollection >
RecoMuonValidator::HistoDimensions::minDz
double minDz
Definition: RecoMuonValidator.h:106
RecoMuonValidator::HistoDimensions::maxErrDz
double maxErrDz
Definition: RecoMuonValidator.h:118
TrackingParticleSelector.h
RecoMuonValidator::commonME_
CommonME * commonME_
Definition: RecoMuonValidator.h:80
RecoMuonValidator::HistoDimensions::nBinP
unsigned int nBinP
Definition: RecoMuonValidator.h:88
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
RecoMuonValidator::countMuonHits
virtual int countMuonHits(const reco::Track &track) const
Definition: RecoMuonValidator.cc:1089
TrackingParticleSelector
Definition: TrackingParticleSelector.h:16
RecoMuonValidator
Definition: RecoMuonValidator.h:29
RecoMuonValidator::simLabel_
edm::InputTag simLabel_
Definition: RecoMuonValidator.h:44
RecoMuonValidator::HistoDimensions::minErrDxy
double minErrDxy
Definition: RecoMuonValidator.h:117
RecoMuonValidator::HistoDimensions::nBinPhi
unsigned int nBinPhi
Definition: RecoMuonValidator.h:99
RecoMuonValidator::dqmEndRun
void dqmEndRun(edm::Run const &, edm::EventSetup const &) override
Definition: RecoMuonValidator.cc:811
RecoMuonValidator::HistoDimensions::minDxy
double minDxy
Definition: RecoMuonValidator.h:103
RecoMuonValidator::HistoDimensions::maxDz
double maxDz
Definition: RecoMuonValidator.h:106
RecoMuonValidator::selector_
StringCutObjectSelector< reco::Muon > selector_
Definition: RecoMuonValidator.h:129
MuonToTrackingParticleAssociator.h
RecoMuonValidator::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: RecoMuonValidator.cc:692
RecoMuonValidator::HistoDimensions::minErrPhi
double minErrPhi
Definition: RecoMuonValidator.h:116
DQMOneEDAnalyzer.h
RecoMuonValidator::trackType_
reco::MuonTrackType trackType_
Definition: RecoMuonValidator.h:75
RecoMuonValidator::HistoDimensions::minPt
double minPt
Definition: RecoMuonValidator.h:92
RecoMuonValidator::HistoDimensions::maxErrP
double maxErrP
Definition: RecoMuonValidator.h:112
RecoMuonValidator::HistoDimensions::maxErrEta
double maxErrEta
Definition: RecoMuonValidator.h:115
RecoMuonValidator::primvertexToken_
edm::EDGetTokenT< reco::VertexCollection > primvertexToken_
Definition: RecoMuonValidator.h:59
RecoMuonValidator::HistoDimensions::minErrPt
double minErrPt
Definition: RecoMuonValidator.h:113
Track.h
RecoMuonValidator::HistoDimensions::nBinEta
unsigned int nBinEta
Definition: RecoMuonValidator.h:96
TrackFwd.h
dqm::legacy::DQMStore
Definition: DQMStore.h:728
RecoMuonValidator::HistoDimensions::maxErrQPt
double maxErrQPt
Definition: RecoMuonValidator.h:114
RecoMuonValidator::countTrackerHits
virtual int countTrackerHits(const reco::Track &track) const
Definition: RecoMuonValidator.cc:1104
RecoMuonValidator::tpRefVectorToken_
edm::EDGetTokenT< TrackingParticleRefVector > tpRefVectorToken_
Definition: RecoMuonValidator.h:48
MuonFwd.h
RecoMuonValidator::HistoDimensions::wPull
double wPull
Definition: RecoMuonValidator.h:109
RecoMuonValidator::tpSelector_
TrackingParticleSelector tpSelector_
Definition: RecoMuonValidator.h:72
reco::Track
Definition: Track.h:27
RecoMuonValidator::HistoDimensions::nTrks
unsigned int nTrks
Definition: RecoMuonValidator.h:120
RecoMuonValidator::subDir_
std::string subDir_
Definition: RecoMuonValidator.h:62
RecoMuonValidator::HistoDimensions::maxP
double maxP
Definition: RecoMuonValidator.h:89
RecoMuonValidator::HistoDimensions::minErrQPt
double minErrQPt
Definition: RecoMuonValidator.h:114
RecoMuonValidator::muonME_
MuonME * muonME_
Definition: RecoMuonValidator.h:77
RecoMuonValidator::hDim
HistoDimensions hDim
Definition: RecoMuonValidator.h:126
RecoMuonValidator::beamspotToken_
edm::EDGetTokenT< reco::BeamSpot > beamspotToken_
Definition: RecoMuonValidator.h:58
RecoMuonValidator::doAbsEta_
bool doAbsEta_
Definition: RecoMuonValidator.h:68
RecoMuonValidator::HistoDimensions::minErrEta
double minErrEta
Definition: RecoMuonValidator.h:115
RecoMuonValidator::muAssocLabel_
edm::InputTag muAssocLabel_
Definition: RecoMuonValidator.h:53
RecoMuonValidator::HistoDimensions::nBinPull
unsigned int nBinPull
Definition: RecoMuonValidator.h:108
RecoMuonValidator::HistoDimensions::nBinErr
unsigned int nBinErr
Definition: RecoMuonValidator.h:111
edm::ParameterSet
Definition: ParameterSet.h:47
RecoMuonValidator::CommonME
Definition: RecoMuonValidator.cc:532
RecoMuonValidator::dqmBeginRun
void dqmBeginRun(const edm::Run &, const edm::EventSetup &eventSetup) override
Definition: RecoMuonValidator.cc:806
RecoMuonValidator::HistoDimensions::usePFMuon
bool usePFMuon
Definition: RecoMuonValidator.h:123
Event.h
RecoMuonValidator::muonLabel_
edm::InputTag muonLabel_
Definition: RecoMuonValidator.h:45
RecoMuonValidator::outputFileName_
std::string outputFileName_
Definition: RecoMuonValidator.h:61
RecoMuonValidator::usePFMuon_
bool usePFMuon_
Definition: RecoMuonValidator.h:70
RecoMuonValidator::HistoDimensions::maxErrDxy
double maxErrDxy
Definition: RecoMuonValidator.h:117
RecoMuonValidator::verbose_
unsigned int verbose_
Definition: RecoMuonValidator.h:42
RecoMuonValidator::doAssoc_
bool doAssoc_
Definition: RecoMuonValidator.h:69
edm::EventSetup
Definition: EventSetup.h:58
RecoMuonValidator::HistoDimensions::maxErrPhi
double maxErrPhi
Definition: RecoMuonValidator.h:116
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
InputTag.h
RecoMuonValidator::HistoDimensions::nAssoc
unsigned int nAssoc
Definition: RecoMuonValidator.h:120
RecoMuonValidator::subsystemname_
std::string subsystemname_
Definition: RecoMuonValidator.h:63
VertexFwd.h
RecoMuonValidator::HistoDimensions::nBinPt
unsigned int nBinPt
Definition: RecoMuonValidator.h:91
TrackingParticle.h
RecoMuonValidator::HistoDimensions::nBinDz
unsigned int nBinDz
Definition: RecoMuonValidator.h:105
StringCutObjectSelector.h
Vertex.h
Frameworkfwd.h
RecoMuonValidator::MuonME
Definition: RecoMuonValidator.cc:28
RecoMuonValidator::muAssocToken_
edm::EDGetTokenT< reco::MuonToTrackingParticleAssociator > muAssocToken_
Definition: RecoMuonValidator.h:54
RecoMuonValidator::beamspotLabel_
edm::InputTag beamspotLabel_
Definition: RecoMuonValidator.h:56
RecoMuonValidator::HistoDimensions::minErrDz
double minErrDz
Definition: RecoMuonValidator.h:118
StringCutObjectSelector< reco::Muon >
RecoMuonValidator::muonSelection_
std::string muonSelection_
Definition: RecoMuonValidator.h:46
RecoMuonValidator::tpRefVector
bool tpRefVector
Definition: RecoMuonValidator.h:49
RecoMuonValidator::HistoDimensions::minEta
double minEta
Definition: RecoMuonValidator.h:97
dqm::implementation::IBooker
Definition: DQMStore.h:43
RecoMuonValidator::~RecoMuonValidator
~RecoMuonValidator() override
Definition: RecoMuonValidator.cc:800
RecoMuonValidator::HistoDimensions::minPhi
double minPhi
Definition: RecoMuonValidator.h:100
RecoMuonValidator::HistoDimensions::maxEta
double maxEta
Definition: RecoMuonValidator.h:97
ParameterSet.h
RecoMuonValidator::RecoMuonValidator
RecoMuonValidator(const edm::ParameterSet &pset)
Definition: RecoMuonValidator.cc:555
RecoMuonValidator::primvertexLabel_
edm::InputTag primvertexLabel_
Definition: RecoMuonValidator.h:57
RecoMuonValidator::HistoDimensions::nDof
unsigned int nDof
Definition: RecoMuonValidator.h:121
RecoMuonValidator::HistoDimensions::maxPhi
double maxPhi
Definition: RecoMuonValidator.h:100
event
Definition: event.py:1
RecoMuonValidator::HistoDimensions::doAbsEta
bool doAbsEta
Definition: RecoMuonValidator.h:94
edm::Event
Definition: Event.h:73
RecoMuonValidator::wantTightMuon_
bool wantTightMuon_
Definition: RecoMuonValidator.h:130
RecoMuonValidator::pset
edm::ParameterSet pset
Definition: RecoMuonValidator.h:64
edm::InputTag
Definition: InputTag.h:15
RecoMuonValidator::HistoDimensions
Definition: RecoMuonValidator.h:86
reco::MuonTrackType
MuonTrackType
Definition: MuonTrackType.h:28
RecoMuonValidator::analyze
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
Definition: RecoMuonValidator.cc:819
RecoMuonValidator::muonToken_
edm::EDGetTokenT< edm::View< reco::Muon > > muonToken_
Definition: RecoMuonValidator.h:51