CMS 3D CMS Logo

JetTester.h
Go to the documentation of this file.
1 #ifndef ValidationRecoJetsJetTester_h
2 #define ValidationRecoJetsJetTester_h
3 
4 // Producer for validation histograms for Calo, JPT and PF jet objects
5 // F. Ratnikov, Sept. 7, 2006
6 // Modified by Chiyoung Jeong, Feb. 2, 2010
7 // Modified by J. Piedra, Sept. 11, 2013
8 // Rewritten by Viola Sordini, Matthias Artur Weber, Robert Schoefbeck Nov./Dez.
9 // 2013
10 
11 #include <cmath>
12 #include <string>
13 
42 class MonitorElement;
43 
44 class JetTester : public DQMEDAnalyzer {
45 public:
47  ~JetTester() override;
48 
49  void analyze(const edm::Event &, const edm::EventSetup &) override;
50  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
51 
52 private:
53  void fillMatchHists(const double GenEta,
54  const double GenPhi,
55  const double GenPt,
56  const double GenMass,
57  const double RecoEta,
58  const double RecoPhi,
59  const double RecoPt,
60  const double RecoMass);
61 
66 
67  // Tokens
75 
76  // Event variables
78 
79  // Jet parameters
88  // MonitorElement* mRho;
89 
90  // Corrected jets
96  // Corrected jets profiles
119 
120  // Generation
130 
150 
151  // jet mass resolution as function of gen-pt
177 
181 
182  // Generation profiles
197 
198  // Some jet algebra
210 
211  // ---- Calo Jet specific information ----
226 
227  // ---- JPT or PF Jet specific information ----
238 
239  // ---- PF Jet specific information ----
261 
262  // contained in MiniAOD
266 
267  // Parameters
270  double mRThreshold;
271  bool isCaloJet;
272  bool isPFJet;
274 };
275 
276 #endif
MonitorElement * mMassRecoOverGen_F_1500
Definition: JetTester.h:172
MonitorElement * mNJetsEta_B_40
Definition: JetTester.h:205
MonitorElement * mPtRecoOverGen_E_20_40
Definition: JetTester.h:132
MonitorElement * mPtRecoOverGen_B_5000_6500
Definition: JetTester.h:148
edm::EDGetTokenT< std::vector< reco::Vertex > > pvToken_
Definition: JetTester.h:68
MonitorElement * mPtCorrOverGen_GenEta_40_200
Definition: JetTester.h:112
MonitorElement * mPtCorrOverReco_Pt_E
Definition: JetTester.h:98
MonitorElement * genPartonPDGID
Definition: JetTester.h:265
MonitorElement * hadEnergyInHE
Definition: JetTester.h:218
MonitorElement * mNvtx
Definition: JetTester.h:77
MonitorElement * HFHadronEnergyFraction
Definition: JetTester.h:247
MonitorElement * mPtRecoOverGen_B_20_40
Definition: JetTester.h:131
MonitorElement * mPtCorrOverGen_GenPt_F
Definition: JetTester.h:110
MonitorElement * mPtRecoOverGen_F_40_200
Definition: JetTester.h:136
edm::EDGetTokenT< reco::GenJetCollection > genJetsToken_
Definition: JetTester.h:71
bool isMiniAODJet
Definition: JetTester.h:273
MonitorElement * mMassRecoOverGen_F_750_1000
Definition: JetTester.h:166
MonitorElement * mPtRecoOverGen_GenEta_3500
Definition: JetTester.h:196
MonitorElement * HOEnergy
Definition: JetTester.h:259
MonitorElement * mMassRecoOverGen_E_1500_3500
Definition: JetTester.h:171
MonitorElement * neutralHadronEnergy
Definition: JetTester.h:233
MonitorElement * electronEnergyFraction
Definition: JetTester.h:243
MonitorElement * mPtRecoOverGen_B_200_600
Definition: JetTester.h:137
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: JetTester.cc:267
MonitorElement * HFEMEnergyFraction
Definition: JetTester.h:249
bool isPFJet
Definition: JetTester.h:272
MonitorElement * mPtRecoOverGen_E_3500_5000
Definition: JetTester.h:147
MonitorElement * mPtRecoOverGen_GenPt_F
Definition: JetTester.h:185
MonitorElement * mMjj
Definition: JetTester.h:202
edm::InputTag mInputGenCollection
Definition: JetTester.h:63
MonitorElement * mPtFirst
Definition: JetTester.h:201
MonitorElement * mMassRecoOverGen_B_3500_5000
Definition: JetTester.h:173
edm::EDGetTokenT< reco::CaloJetCollection > caloJetsToken_
Definition: JetTester.h:69
MonitorElement * photonEnergyFraction
Definition: JetTester.h:241
edm::EDGetTokenT< pat::JetCollection > patJetsToken_
Definition: JetTester.h:73
MonitorElement * neutralMultiplicity
Definition: JetTester.h:258
MonitorElement * mPtRecoOverGen_F_3500
Definition: JetTester.h:180
MonitorElement * mDeltaPhi
Definition: JetTester.h:128
MonitorElement * mPtRecoOverGen_GenEta_3500_5000
Definition: JetTester.h:194
MonitorElement * mMassRecoOverGen_B_1500_3500
Definition: JetTester.h:170
bool isCaloJet
Definition: JetTester.h:271
MonitorElement * mMassRecoOverGen_E_500_750
Definition: JetTester.h:162
edm::InputTag mJetCorrector
Definition: JetTester.h:64
MonitorElement * mMassRecoOverGen_F_40_200
Definition: JetTester.h:157
MonitorElement * mPtRecoOverGen_GenPhi_E
Definition: JetTester.h:187
MonitorElement * mPtRecoOverGen_GenEta_20_40
Definition: JetTester.h:189
MonitorElement * hadEnergyInHB
Definition: JetTester.h:216
MonitorElement * mPtCorrOverReco_Eta_40_200
Definition: JetTester.h:101
MonitorElement * photonMultiplicity
Definition: JetTester.h:252
MonitorElement * mCorrJetPhi
Definition: JetTester.h:93
MonitorElement * mMassRecoOverGen_B_200_500
Definition: JetTester.h:158
MonitorElement * energyFractionHadronic
Definition: JetTester.h:214
double mMatchGenPtThreshold
Definition: JetTester.h:269
MonitorElement * mMassRecoOverGen_F_20_40
Definition: JetTester.h:154
MonitorElement * mPtRecoOverGen_E_40_200
Definition: JetTester.h:135
edm::EDGetTokenT< reco::JetCorrector > jetCorrectorToken_
Definition: JetTester.h:74
MonitorElement * mNJets2
Definition: JetTester.h:209
MonitorElement * mPtCorrOverReco_Eta_200_600
Definition: JetTester.h:102
MonitorElement * muonEnergyFraction
Definition: JetTester.h:245
MonitorElement * n90
Definition: JetTester.h:224
MonitorElement * mPtRecoOverGen_GenPhi_B
Definition: JetTester.h:186
MonitorElement * mEtaFirst
Definition: JetTester.h:199
MonitorElement * mPtRecoOverGen_E_5000_6500
Definition: JetTester.h:149
MonitorElement * mMassRecoOverGen_B_5000
Definition: JetTester.h:175
MonitorElement * mPtCorrOverGen_GenEta_3500_5000
Definition: JetTester.h:116
void fillMatchHists(const double GenEta, const double GenPhi, const double GenPt, const double GenMass, const double RecoEta, const double RecoPhi, const double RecoPt, const double RecoMass)
Definition: JetTester.cc:1091
MonitorElement * emEnergyFraction
Definition: JetTester.h:215
MonitorElement * mMassRecoOverGen_B_40_200
Definition: JetTester.h:155
MonitorElement * mCorrJetEta
Definition: JetTester.h:92
MonitorElement * mPtCorrOverReco_Eta_3500
Definition: JetTester.h:107
MonitorElement * photonEnergy
Definition: JetTester.h:240
MonitorElement * towersArea
Definition: JetTester.h:223
MonitorElement * hadEnergyInHF
Definition: JetTester.h:219
MonitorElement * HFHadronMultiplicity
Definition: JetTester.h:254
MonitorElement * mGenPt
Definition: JetTester.h:123
MonitorElement * muonEnergy
Definition: JetTester.h:244
MonitorElement * electronMultiplicity
Definition: JetTester.h:253
MonitorElement * mPtRecoOverGen_B_600_1500
Definition: JetTester.h:140
MonitorElement * mEnergy
Definition: JetTester.h:84
MonitorElement * mMassRecoOverGen_F_500_750
Definition: JetTester.h:163
MonitorElement * mPtRecoOverGen_GenPt_E
Definition: JetTester.h:184
MonitorElement * mNJetsEta_E_40
Definition: JetTester.h:206
MonitorElement * mEta
Definition: JetTester.h:80
MonitorElement * mGenEtaFirst
Definition: JetTester.h:124
MonitorElement * mNJetsEta_B_20_40
Definition: JetTester.h:203
MonitorElement * mPtRecoOverGen_B_3500
Definition: JetTester.h:178
MonitorElement * chargedMuEnergy
Definition: JetTester.h:256
MonitorElement * mPtRecoOverGen_F_1500_3500
Definition: JetTester.h:145
MonitorElement * mDeltaEta
Definition: JetTester.h:127
MonitorElement * mNJets_40
Definition: JetTester.h:207
MonitorElement * HFHadronEnergy
Definition: JetTester.h:246
MonitorElement * mNJetsEta_E_20_40
Definition: JetTester.h:204
MonitorElement * hadronFlavor
Definition: JetTester.h:263
MonitorElement * mDeltaPt
Definition: JetTester.h:129
MonitorElement * mPtRecoOverGen_B_40_200
Definition: JetTester.h:134
MonitorElement * mPtRecoOverGen_B_1500_3500
Definition: JetTester.h:143
MonitorElement * mPtRecoOverGen_F_200_600
Definition: JetTester.h:139
MonitorElement * mPhiFirst
Definition: JetTester.h:200
MonitorElement * mP
Definition: JetTester.h:83
MonitorElement * mMassRecoOverGen_B_500_750
Definition: JetTester.h:161
edm::EDGetTokenT< GenEventInfoProduct > evtToken_
Definition: JetTester.h:72
MonitorElement * mPtCorrOverGen_GenPt_B
Definition: JetTester.h:108
MonitorElement * mPtCorrOverReco_Eta_600_1500
Definition: JetTester.h:103
MonitorElement * n60
Definition: JetTester.h:225
MonitorElement * mPtCorrOverReco_Eta_5000_6500
Definition: JetTester.h:106
MonitorElement * mPtCorrOverReco_Eta_3500_5000
Definition: JetTester.h:105
MonitorElement * HOEnergyFraction
Definition: JetTester.h:260
MonitorElement * mGenEta
Definition: JetTester.h:121
MonitorElement * hadEnergyInHO
Definition: JetTester.h:217
MonitorElement * mPhi
Definition: JetTester.h:81
MonitorElement * mPtRecoOverGen_E_3500
Definition: JetTester.h:179
MonitorElement * mMassRecoOverGen_F_1000_1500
Definition: JetTester.h:169
MonitorElement * mPtCorrOverGen_GenEta_3500
Definition: JetTester.h:118
MonitorElement * mPtCorrOverGen_GenEta_200_600
Definition: JetTester.h:113
MonitorElement * mPt
Definition: JetTester.h:82
edm::InputTag mInputCollection
Definition: JetTester.h:62
MonitorElement * emEnergyInHF
Definition: JetTester.h:222
MonitorElement * mPtRecoOverGen_E_200_600
Definition: JetTester.h:138
MonitorElement * mMassRecoOverGen_E_750_1000
Definition: JetTester.h:165
JetTester(const edm::ParameterSet &)
Definition: JetTester.cc:12
MonitorElement * mPtRecoOverGen_GenPhi_F
Definition: JetTester.h:188
MonitorElement * chargedHadronEnergyFraction
Definition: JetTester.h:234
MonitorElement * mPtRecoOverGen_E_600_1500
Definition: JetTester.h:141
MonitorElement * mMassRecoOverGen_E_40_200
Definition: JetTester.h:156
MonitorElement * mPtHat
Definition: JetTester.h:126
MonitorElement * chargedHadronEnergy
Definition: JetTester.h:232
MonitorElement * mPtCorrOverReco_Pt_B
Definition: JetTester.h:97
MonitorElement * mPtRecoOverGen_GenPt_B
Definition: JetTester.h:183
MonitorElement * mMassRecoOverGen_B_20_40
Definition: JetTester.h:152
MonitorElement * mPtCorrOverReco_Eta_1500_3500
Definition: JetTester.h:104
MonitorElement * mJetArea
Definition: JetTester.h:87
MonitorElement * mMassRecoOverGen_B_750_1000
Definition: JetTester.h:164
MonitorElement * mMass
Definition: JetTester.h:85
MonitorElement * HFEMMultiplicity
Definition: JetTester.h:255
MonitorElement * chargedEmEnergy
Definition: JetTester.h:230
MonitorElement * mPtRecoOverGen_GenEta_40_200
Definition: JetTester.h:190
MonitorElement * mPtRecoOverGen_E_1500_3500
Definition: JetTester.h:144
MonitorElement * mMassRecoOverGen_B_1000_1500
Definition: JetTester.h:167
MonitorElement * mMassRecoOverGen_E_200_500
Definition: JetTester.h:159
~JetTester() override
Definition: JetTester.cc:514
MonitorElement * mPtRecoOverGen_F_600_1500
Definition: JetTester.h:142
MonitorElement * mMassRecoOverGen_E_5000
Definition: JetTester.h:176
MonitorElement * chargedMuEnergyFraction
Definition: JetTester.h:257
MonitorElement * electronEnergy
Definition: JetTester.h:242
MonitorElement * emEnergyInEE
Definition: JetTester.h:221
MonitorElement * mPtCorrOverGen_GenEta_20_40
Definition: JetTester.h:111
double mRecoJetPtThreshold
Definition: JetTester.h:268
MonitorElement * mPtCorrOverGen_GenEta_1500_3500
Definition: JetTester.h:115
MonitorElement * mGenPhi
Definition: JetTester.h:122
MonitorElement * maxEInHadTowers
Definition: JetTester.h:213
MonitorElement * mCorrJetEta_Pt40
Definition: JetTester.h:94
MonitorElement * emEnergyInEB
Definition: JetTester.h:220
MonitorElement * mMassRecoOverGen_E_1000_1500
Definition: JetTester.h:168
edm::EDGetTokenT< reco::PFJetCollection > pfJetsToken_
Definition: JetTester.h:70
MonitorElement * mConstituents
Definition: JetTester.h:86
MonitorElement * maxEInEmTowers
Definition: JetTester.h:212
MonitorElement * mPtRecoOverGen_F_20_40
Definition: JetTester.h:133
MonitorElement * mGenPhiFirst
Definition: JetTester.h:125
MonitorElement * mCorrJetPt
Definition: JetTester.h:91
MonitorElement * mMassRecoOverGen_E_3500_5000
Definition: JetTester.h:174
MonitorElement * mPtCorrOverGen_GenPt_E
Definition: JetTester.h:109
MonitorElement * mPtRecoOverGen_GenEta_600_1500
Definition: JetTester.h:192
MonitorElement * mPtRecoOverGen_GenEta_200_600
Definition: JetTester.h:191
MonitorElement * mMassRecoOverGen_F_200_500
Definition: JetTester.h:160
MonitorElement * mPtCorrOverReco_Eta_20_40
Definition: JetTester.h:100
MonitorElement * chargedEmEnergyFraction
Definition: JetTester.h:236
MonitorElement * mPtCorrOverReco_Pt_F
Definition: JetTester.h:99
MonitorElement * muonMultiplicity
Definition: JetTester.h:228
MonitorElement * neutralHadronEnergyFraction
Definition: JetTester.h:235
double mRThreshold
Definition: JetTester.h:270
MonitorElement * neutralEmEnergy
Definition: JetTester.h:231
MonitorElement * chargedHadronMultiplicity
Definition: JetTester.h:250
MonitorElement * mPtRecoOverGen_B_3500_5000
Definition: JetTester.h:146
std::string JetType
Definition: JetTester.h:65
MonitorElement * mPtRecoOverGen_GenEta_1500_3500
Definition: JetTester.h:193
MonitorElement * mNJets1
Definition: JetTester.h:208
MonitorElement * mPtCorrOverGen_GenEta_600_1500
Definition: JetTester.h:114
MonitorElement * chargedMultiplicity
Definition: JetTester.h:229
MonitorElement * partonFlavor
Definition: JetTester.h:264
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: JetTester.cc:519
MonitorElement * HFEMEnergy
Definition: JetTester.h:248
MonitorElement * mMassRecoOverGen_E_20_40
Definition: JetTester.h:153
MonitorElement * mCorrJetPhi_Pt40
Definition: JetTester.h:95
MonitorElement * neutralHadronMultiplicity
Definition: JetTester.h:251
Definition: Run.h:45
MonitorElement * neutralEmEnergyFraction
Definition: JetTester.h:237
MonitorElement * mPtRecoOverGen_GenEta_5000_6500
Definition: JetTester.h:195
MonitorElement * mPtCorrOverGen_GenEta_5000_6500
Definition: JetTester.h:117