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 
49 
52 
57 
62 
64 
65  bool doAbsEta_;
66  bool doAssoc_;
67  bool usePFMuon_;
68 
70 
71  // Track to use
73 
74  struct MuonME;
75  MuonME* muonME_;
76 
77  struct CommonME;
79 
80  //
81  //struct for histogram dimensions
82  //
83  struct HistoDimensions {
84  //p
85  unsigned int nBinP;
86  double minP, maxP;
87  //pt
88  unsigned int nBinPt;
89  double minPt, maxPt;
90  //if abs eta
91  bool doAbsEta;
92  //eta
93  unsigned int nBinEta;
94  double minEta, maxEta;
95  //phi
96  unsigned int nBinPhi;
97  double minPhi, maxPhi;
98  //dxy
99  unsigned int nBinDxy;
100  double minDxy, maxDxy;
101  //dz
102  unsigned int nBinDz;
103  double minDz, maxDz;
104  //pulls
105  unsigned int nBinPull;
106  double wPull;
107  //resolustions
108  unsigned int nBinErr;
109  double minErrP, maxErrP;
116  //track multiplicities
117  unsigned int nTrks, nAssoc;
118  unsigned int nDof;
119  // for PF muons
120  bool usePFMuon;
121  };
122 
124 
125 private:
128 };
129 
130 #endif
131 /* vim:set ts=2 sts=2 sw=2 expandtab: */
RecoMuonValidator::HistoDimensions::maxPt
double maxPt
Definition: RecoMuonValidator.h:89
RecoMuonValidator::HistoDimensions::minErrP
double minErrP
Definition: RecoMuonValidator.h:109
RecoMuonValidator::HistoDimensions::nBinDxy
unsigned int nBinDxy
Definition: RecoMuonValidator.h:99
RecoMuonValidator::HistoDimensions::maxDxy
double maxDxy
Definition: RecoMuonValidator.h:100
RecoMuonValidator::HistoDimensions::maxErrPt
double maxErrPt
Definition: RecoMuonValidator.h:110
RecoMuonValidator::HistoDimensions::minP
double minP
Definition: RecoMuonValidator.h:86
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11713
Muon.h
RecoMuonValidator::simToken_
edm::EDGetTokenT< TrackingParticleCollection > simToken_
Definition: RecoMuonValidator.h:47
ESHandle.h
RecoMuonValidator::dbe_
DQMStore * dbe_
Definition: RecoMuonValidator.h:63
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< TrackingParticleCollection >
RecoMuonValidator::HistoDimensions::minDz
double minDz
Definition: RecoMuonValidator.h:103
RecoMuonValidator::HistoDimensions::maxErrDz
double maxErrDz
Definition: RecoMuonValidator.h:115
TrackingParticleSelector.h
RecoMuonValidator::commonME_
CommonME * commonME_
Definition: RecoMuonValidator.h:77
RecoMuonValidator::HistoDimensions::nBinP
unsigned int nBinP
Definition: RecoMuonValidator.h:85
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
RecoMuonValidator::countMuonHits
virtual int countMuonHits(const reco::Track &track) const
Definition: RecoMuonValidator.cc:1069
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:114
RecoMuonValidator::HistoDimensions::nBinPhi
unsigned int nBinPhi
Definition: RecoMuonValidator.h:96
RecoMuonValidator::dqmEndRun
void dqmEndRun(edm::Run const &, edm::EventSetup const &) override
Definition: RecoMuonValidator.cc:805
RecoMuonValidator::HistoDimensions::minDxy
double minDxy
Definition: RecoMuonValidator.h:100
RecoMuonValidator::HistoDimensions::maxDz
double maxDz
Definition: RecoMuonValidator.h:103
RecoMuonValidator::selector_
StringCutObjectSelector< reco::Muon > selector_
Definition: RecoMuonValidator.h:126
MuonToTrackingParticleAssociator.h
RecoMuonValidator::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: RecoMuonValidator.cc:686
RecoMuonValidator::HistoDimensions::minErrPhi
double minErrPhi
Definition: RecoMuonValidator.h:113
DQMOneEDAnalyzer.h
RecoMuonValidator::trackType_
reco::MuonTrackType trackType_
Definition: RecoMuonValidator.h:72
RecoMuonValidator::HistoDimensions::minPt
double minPt
Definition: RecoMuonValidator.h:89
RecoMuonValidator::HistoDimensions::maxErrP
double maxErrP
Definition: RecoMuonValidator.h:109
RecoMuonValidator::HistoDimensions::maxErrEta
double maxErrEta
Definition: RecoMuonValidator.h:112
RecoMuonValidator::primvertexToken_
edm::EDGetTokenT< reco::VertexCollection > primvertexToken_
Definition: RecoMuonValidator.h:56
RecoMuonValidator::HistoDimensions::minErrPt
double minErrPt
Definition: RecoMuonValidator.h:110
Track.h
RecoMuonValidator::HistoDimensions::nBinEta
unsigned int nBinEta
Definition: RecoMuonValidator.h:93
TrackFwd.h
dqm::legacy::DQMStore
Definition: DQMStore.h:727
RecoMuonValidator::HistoDimensions::maxErrQPt
double maxErrQPt
Definition: RecoMuonValidator.h:111
RecoMuonValidator::countTrackerHits
virtual int countTrackerHits(const reco::Track &track) const
Definition: RecoMuonValidator.cc:1084
MuonFwd.h
RecoMuonValidator::HistoDimensions::wPull
double wPull
Definition: RecoMuonValidator.h:106
RecoMuonValidator::tpSelector_
TrackingParticleSelector tpSelector_
Definition: RecoMuonValidator.h:69
reco::Track
Definition: Track.h:27
RecoMuonValidator::HistoDimensions::nTrks
unsigned int nTrks
Definition: RecoMuonValidator.h:117
RecoMuonValidator::subDir_
std::string subDir_
Definition: RecoMuonValidator.h:59
RecoMuonValidator::HistoDimensions::maxP
double maxP
Definition: RecoMuonValidator.h:86
RecoMuonValidator::HistoDimensions::minErrQPt
double minErrQPt
Definition: RecoMuonValidator.h:111
RecoMuonValidator::muonME_
MuonME * muonME_
Definition: RecoMuonValidator.h:74
RecoMuonValidator::hDim
HistoDimensions hDim
Definition: RecoMuonValidator.h:123
RecoMuonValidator::beamspotToken_
edm::EDGetTokenT< reco::BeamSpot > beamspotToken_
Definition: RecoMuonValidator.h:55
RecoMuonValidator::doAbsEta_
bool doAbsEta_
Definition: RecoMuonValidator.h:65
RecoMuonValidator::HistoDimensions::minErrEta
double minErrEta
Definition: RecoMuonValidator.h:112
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Vertex.h
RecoMuonValidator::muAssocLabel_
edm::InputTag muAssocLabel_
Definition: RecoMuonValidator.h:50
RecoMuonValidator::HistoDimensions::nBinPull
unsigned int nBinPull
Definition: RecoMuonValidator.h:105
RecoMuonValidator::HistoDimensions::nBinErr
unsigned int nBinErr
Definition: RecoMuonValidator.h:108
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:800
RecoMuonValidator::HistoDimensions::usePFMuon
bool usePFMuon
Definition: RecoMuonValidator.h:120
Event.h
RecoMuonValidator::muonLabel_
edm::InputTag muonLabel_
Definition: RecoMuonValidator.h:45
RecoMuonValidator::outputFileName_
std::string outputFileName_
Definition: RecoMuonValidator.h:58
RecoMuonValidator::usePFMuon_
bool usePFMuon_
Definition: RecoMuonValidator.h:67
RecoMuonValidator::HistoDimensions::maxErrDxy
double maxErrDxy
Definition: RecoMuonValidator.h:114
RecoMuonValidator::verbose_
unsigned int verbose_
Definition: RecoMuonValidator.h:42
RecoMuonValidator::doAssoc_
bool doAssoc_
Definition: RecoMuonValidator.h:66
edm::EventSetup
Definition: EventSetup.h:57
RecoMuonValidator::HistoDimensions::maxErrPhi
double maxErrPhi
Definition: RecoMuonValidator.h:113
InputTag.h
RecoMuonValidator::HistoDimensions::nAssoc
unsigned int nAssoc
Definition: RecoMuonValidator.h:117
RecoMuonValidator::subsystemname_
std::string subsystemname_
Definition: RecoMuonValidator.h:60
VertexFwd.h
RecoMuonValidator::HistoDimensions::nBinPt
unsigned int nBinPt
Definition: RecoMuonValidator.h:88
TrackingParticle.h
RecoMuonValidator::HistoDimensions::nBinDz
unsigned int nBinDz
Definition: RecoMuonValidator.h:102
StringCutObjectSelector.h
Frameworkfwd.h
RecoMuonValidator::MuonME
Definition: RecoMuonValidator.cc:28
RecoMuonValidator::muAssocToken_
edm::EDGetTokenT< reco::MuonToTrackingParticleAssociator > muAssocToken_
Definition: RecoMuonValidator.h:51
RecoMuonValidator::beamspotLabel_
edm::InputTag beamspotLabel_
Definition: RecoMuonValidator.h:53
RecoMuonValidator::HistoDimensions::minErrDz
double minErrDz
Definition: RecoMuonValidator.h:115
StringCutObjectSelector< reco::Muon >
RecoMuonValidator::muonSelection_
std::string muonSelection_
Definition: RecoMuonValidator.h:46
RecoMuonValidator::HistoDimensions::minEta
double minEta
Definition: RecoMuonValidator.h:94
dqm::implementation::IBooker
Definition: DQMStore.h:43
RecoMuonValidator::~RecoMuonValidator
~RecoMuonValidator() override
Definition: RecoMuonValidator.cc:794
RecoMuonValidator::HistoDimensions::minPhi
double minPhi
Definition: RecoMuonValidator.h:97
RecoMuonValidator::HistoDimensions::maxEta
double maxEta
Definition: RecoMuonValidator.h:94
ParameterSet.h
RecoMuonValidator::RecoMuonValidator
RecoMuonValidator(const edm::ParameterSet &pset)
Definition: RecoMuonValidator.cc:555
RecoMuonValidator::primvertexLabel_
edm::InputTag primvertexLabel_
Definition: RecoMuonValidator.h:54
RecoMuonValidator::HistoDimensions::nDof
unsigned int nDof
Definition: RecoMuonValidator.h:118
RecoMuonValidator::HistoDimensions::maxPhi
double maxPhi
Definition: RecoMuonValidator.h:97
event
Definition: event.py:1
RecoMuonValidator::HistoDimensions::doAbsEta
bool doAbsEta
Definition: RecoMuonValidator.h:91
edm::Event
Definition: Event.h:73
RecoMuonValidator::wantTightMuon_
bool wantTightMuon_
Definition: RecoMuonValidator.h:127
RecoMuonValidator::pset
edm::ParameterSet pset
Definition: RecoMuonValidator.h:61
edm::InputTag
Definition: InputTag.h:15
RecoMuonValidator::HistoDimensions
Definition: RecoMuonValidator.h:83
reco::MuonTrackType
MuonTrackType
Definition: MuonTrackType.h:28
RecoMuonValidator::analyze
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
Definition: RecoMuonValidator.cc:813
RecoMuonValidator::muonToken_
edm::EDGetTokenT< edm::View< reco::Muon > > muonToken_
Definition: RecoMuonValidator.h:48