CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFJetTester.h
Go to the documentation of this file.
1 #ifndef ValidationRecoJetsPFJetTester_h
2 #define ValidationRecoJetsPFJetTester_h
3 
4 // Producer for validation histograms for PFJet objects
5 // F. Ratnikov, Sept. 7, 2006
6 // Modified by Chiyoung.Jeong Feb 2, 2010
7 // $Id: PFJetTester.h,v 1.15 2012/02/15 21:41:52 kovitang Exp $
8 
9 #include <string>
10 
15 
16 namespace reco {
17  class PFJet;
18  class GenJet;
19 }
20 
21 class MonitorElement;
22 
23 class PFJetTester : public edm::EDAnalyzer {
24 public:
25 
27  ~PFJetTester();
28 
29  virtual void analyze(const edm::Event&, const edm::EventSetup&);
30  virtual void beginJob() ;
31  virtual void endJob() ;
32 
33 private:
34 
35  void fillMatchHists (const reco::GenJet& fGenJet, const reco::PFJet& fPFJet,std::vector<reco::Vertex> goodVertices);
36 
44 
45  // count number of events
47 
48  // Generic Jet Parameters
76 
77  //Corr jets
101 
102  // nvtx
140 
141  // Leading Jet Parameters
150 
153 
156 
157  // DiJet Parameters
160 
161  // PFJet specific
166 
171 
184 
185  // MonitorElement* mMaxEInEmTowers;
186  // MonitorElement* mMaxEInHadTowers;
187  // MonitorElement* mHadEnergyInHO;
188  // MonitorElement* mHadEnergyInHB;
192  // MonitorElement* mHadEnergyInHE;
193  // MonitorElement* mHadEnergyInHO_80;
194  // MonitorElement* mHadEnergyInHB_80;
195  // MonitorElement* mHadEnergyInHE_80;
196  // MonitorElement* mHadEnergyInHO_3000;
197  // MonitorElement* mHadEnergyInHB_3000;
198  // MonitorElement* mHadEnergyInHE_3000;
199  // MonitorElement* mEmEnergyInEB;
200  // MonitorElement* mEmEnergyInEE;
204  // MonitorElement* mEmEnergyInEB_80;
205  // MonitorElement* mEmEnergyInEE_80;
206  // MonitorElement* mEmEnergyInEB_3000;
207  // MonitorElement* mEmEnergyInEE_3000;
208  // MonitorElement* mEnergyFractionHadronic;
209  // MonitorElement* mEnergyFractionEm;
210  // MonitorElement* mHFTotal;
211  // MonitorElement* mHFTotal_80;
212  // MonitorElement* mHFTotal_3000;
213  // MonitorElement* mHFLong;
214  // MonitorElement* mHFLong_80;
215  // MonitorElement* mHFLong_3000;
216  // MonitorElement* mHFShort;
217  // MonitorElement* mHFShort_80;
218  // MonitorElement* mHFShort_3000;
219  // MonitorElement* mN90;
220 
230 
231  // pthat
234 
235  // GenJet Generic Jet Parameters
241 
242  // GenJet Leading Jet Parameters
245 
246  // PFJet<->GenJet matching
259 
262 
272 
277 
282 
299 
303 
304  // Matching parameters
308  double mRThreshold;
309 
311 
312  // Switch on/off unimportant histogram
314 
315  // Energy Profiles
319  // MonitorElement* mHadJetEnergyProfile;
320  // MonitorElement* mEMJetEnergyProfile;
321 
322  // CaloMET
334 
335  // RecHits
348 
349 
350 };
351 #endif
MonitorElement * mPhiFineBin
Definition: PFJetTester.h:58
virtual void endJob()
Definition: PFJetTester.cc:541
MonitorElement * mCaloMEx_3000
Definition: PFJetTester.h:324
MonitorElement * mChargedHadronEnergy_80
Definition: PFJetTester.h:163
MonitorElement * mDeltaEta
Definition: PFJetTester.h:254
MonitorElement * mGenEta
Definition: PFJetTester.h:236
MonitorElement * mpTScale1DB_30_200
Definition: PFJetTester.h:283
MonitorElement * mNJets1
Definition: PFJetTester.h:154
MonitorElement * mpTScale1DF_30_200
Definition: PFJetTester.h:285
MonitorElement * mpTResponseE_d
Definition: PFJetTester.h:93
MonitorElement * mConstituents_3000
Definition: PFJetTester.h:73
MonitorElement * mpTScale1D_200_600
Definition: PFJetTester.h:296
MonitorElement * mMuonEnergy_3000
Definition: PFJetTester.h:226
MonitorElement * mEtaFineBin2m
Definition: PFJetTester.h:55
MonitorElement * mpTScale1DE_1500_3500
Definition: PFJetTester.h:293
MonitorElement * mpTScaleB_d
Definition: PFJetTester.h:266
MonitorElement * mpTScale1D_30_200
Definition: PFJetTester.h:295
MonitorElement * mpTScale_b_nvtx_20_30
Definition: PFJetTester.h:124
MonitorElement * mElectronEnergy
Definition: PFJetTester.h:221
MonitorElement * mHETime
Definition: PFJetTester.h:339
MonitorElement * mChargedEmEnergy_80
Definition: PFJetTester.h:162
MonitorElement * mpTScale_600_1500_d
Definition: PFJetTester.h:280
MonitorElement * mpTScale_c_nvtx_15_20
Definition: PFJetTester.h:122
MonitorElement * mpTScale_30_200_d
Definition: PFJetTester.h:278
MonitorElement * mpTResponse_600_1500_d
Definition: PFJetTester.h:97
MonitorElement * nvtx_0_60
Definition: PFJetTester.h:104
MonitorElement * nvtx_0_30
Definition: PFJetTester.h:103
MonitorElement * mGenPt
Definition: PFJetTester.h:238
MonitorElement * mGenPt_3000
Definition: PFJetTester.h:240
MonitorElement * mEETime
Definition: PFJetTester.h:347
MonitorElement * mpTResponse_30_200_d
Definition: PFJetTester.h:95
edm::InputTag mInputCollection
Definition: PFJetTester.h:37
MonitorElement * mpTScale_nvtx_20_30
Definition: PFJetTester.h:133
MonitorElement * mpTScale_200_600_d
Definition: PFJetTester.h:279
MonitorElement * mNeutralEmEnergy_80
Definition: PFJetTester.h:164
MonitorElement * mpTScale1DF_600_1500
Definition: PFJetTester.h:291
MonitorElement * mEFirst
Definition: PFJetTester.h:144
MonitorElement * mEBEne
Definition: PFJetTester.h:344
std::string METType_
Definition: PFJetTester.h:41
MonitorElement * mpTScale1DE_200_600
Definition: PFJetTester.h:287
MonitorElement * mChargedEmEnergyFraction_E
Definition: PFJetTester.h:173
MonitorElement * mP
Definition: PFJetTester.h:62
MonitorElement * mpTResponse_1500_3500_d
Definition: PFJetTester.h:98
MonitorElement * mChargedEmEnergy_3000
Definition: PFJetTester.h:167
PFJetTester(const edm::ParameterSet &)
Definition: PFJetTester.cc:49
MonitorElement * mpTScale_a_nvtx_15_20
Definition: PFJetTester.h:120
MonitorElement * mNJetsEtaC
Definition: PFJetTester.h:151
MonitorElement * numberofevents
Definition: PFJetTester.h:46
MonitorElement * mPhotonEnergy_3000
Definition: PFJetTester.h:229
MonitorElement * mlinEScale
Definition: PFJetTester.h:257
MonitorElement * mpTScale1D_1500_3500
Definition: PFJetTester.h:298
MonitorElement * mHOEne
Definition: PFJetTester.h:340
MonitorElement * mpTScale_a
Definition: PFJetTester.h:136
MonitorElement * mpTScaleE_d
Definition: PFJetTester.h:267
MonitorElement * mDeltaE
Definition: PFJetTester.h:258
MonitorElement * mEmEnergyInHF
Definition: PFJetTester.h:201
MonitorElement * mPhotonEnergy_80
Definition: PFJetTester.h:228
MonitorElement * mConstituents
Definition: PFJetTester.h:71
MonitorElement * mNeutralHadronEnergy_80
Definition: PFJetTester.h:165
MonitorElement * mCorrJetPt_80
Definition: PFJetTester.h:79
MonitorElement * mGenJetMatchEnergyFraction
Definition: PFJetTester.h:251
MonitorElement * mpTScale_30_200_s
Definition: PFJetTester.h:273
MonitorElement * mpTScaleF_s
Definition: PFJetTester.h:265
MonitorElement * mpTScale_b_nvtx_15_20
Definition: PFJetTester.h:121
MonitorElement * mPthat_3000
Definition: PFJetTester.h:233
MonitorElement * mpTRatio_200_600_d
Definition: PFJetTester.h:88
MonitorElement * mMjj_3000
Definition: PFJetTester.h:159
double mGenEnergyFractionThreshold
Definition: PFJetTester.h:306
MonitorElement * mpTRatio_600_1500_d
Definition: PFJetTester.h:89
MonitorElement * mNeutralHadronEnergyFraction_F
Definition: PFJetTester.h:183
MonitorElement * mEBTime
Definition: PFJetTester.h:345
MonitorElement * mMuonEnergy
Definition: PFJetTester.h:224
MonitorElement * mpTScale_a_nvtx_0_5
Definition: PFJetTester.h:111
MonitorElement * mPtFirst_80
Definition: PFJetTester.h:148
Jets made from PFObjects.
Definition: PFJet.h:22
MonitorElement * mpTScale_pT
Definition: PFJetTester.h:139
MonitorElement * mNJets2
Definition: PFJetTester.h:155
MonitorElement * mEEEne
Definition: PFJetTester.h:346
MonitorElement * mPt_80
Definition: PFJetTester.h:66
MonitorElement * mpTScale1DF_1500_3500
Definition: PFJetTester.h:294
MonitorElement * mpTScale_1500_3500_s
Definition: PFJetTester.h:276
MonitorElement * mpTScale1DB_200_600
Definition: PFJetTester.h:286
MonitorElement * mpTRatioE_d
Definition: PFJetTester.h:85
MonitorElement * mCaloSumET_3000
Definition: PFJetTester.h:331
MonitorElement * mpTResponse_nvtx_5_10
Definition: PFJetTester.h:106
MonitorElement * mpTResponse_nvtx_20_30
Definition: PFJetTester.h:109
MonitorElement * mHBEne
Definition: PFJetTester.h:336
std::string mOutputFile
Definition: PFJetTester.h:39
MonitorElement * mNeutralEmEnergyFraction_E
Definition: PFJetTester.h:179
MonitorElement * mpTScale_b_nvtx_5_10
Definition: PFJetTester.h:115
MonitorElement * mpTRatioF_d
Definition: PFJetTester.h:86
MonitorElement * mpTScale_nvtx_30_inf
Definition: PFJetTester.h:134
MonitorElement * mCaloMETSig
Definition: PFJetTester.h:332
MonitorElement * mpTResponse_nvtx_30_inf
Definition: PFJetTester.h:110
MonitorElement * mpTScale_nvtx_15_20
Definition: PFJetTester.h:132
MonitorElement * mpTResponse_nvtx_15_20
Definition: PFJetTester.h:108
MonitorElement * mpTScale1DB_1500_3500
Definition: PFJetTester.h:292
MonitorElement * mpTScalePhiB_d
Definition: PFJetTester.h:269
MonitorElement * mpTScale_c_nvtx_30_inf
Definition: PFJetTester.h:128
MonitorElement * mAllGenJetsPt
Definition: PFJetTester.h:247
MonitorElement * mPtFirst
Definition: PFJetTester.h:147
MonitorElement * mCaloMET
Definition: PFJetTester.h:327
MonitorElement * mpTScale_b_nvtx_30_inf
Definition: PFJetTester.h:127
MonitorElement * mpTScaleB_s
Definition: PFJetTester.h:263
MonitorElement * mNJetsEtaF_30
Definition: PFJetTester.h:135
MonitorElement * mNeutralHadronEnergyFraction_E
Definition: PFJetTester.h:182
MonitorElement * mPtFirst_3000
Definition: PFJetTester.h:149
MonitorElement * mMass_80
Definition: PFJetTester.h:69
double mRThreshold
Definition: PFJetTester.h:308
MonitorElement * mMjj
Definition: PFJetTester.h:158
MonitorElement * mHBTime
Definition: PFJetTester.h:337
MonitorElement * mpTScale_200_600_s
Definition: PFJetTester.h:274
MonitorElement * mpTScale_a_nvtx_10_15
Definition: PFJetTester.h:117
MonitorElement * mpTScale1D_600_1500
Definition: PFJetTester.h:297
MonitorElement * mP_80
Definition: PFJetTester.h:63
MonitorElement * mDelEta
Definition: PFJetTester.h:300
MonitorElement * mMatchedGenJetsEta
Definition: PFJetTester.h:250
MonitorElement * mEmEnergyProfile
Definition: PFJetTester.h:317
MonitorElement * mCorrJetPhi
Definition: PFJetTester.h:82
MonitorElement * mpTScale_b_nvtx_0_5
Definition: PFJetTester.h:112
MonitorElement * mEScale_pt10
Definition: PFJetTester.h:260
MonitorElement * mEmTiming
Definition: PFJetTester.h:75
MonitorElement * mEtaFirst
Definition: PFJetTester.h:142
MonitorElement * mE
Definition: PFJetTester.h:59
MonitorElement * mHOTime
Definition: PFJetTester.h:341
MonitorElement * mpTScale1DE_600_1500
Definition: PFJetTester.h:290
MonitorElement * mHFTime
Definition: PFJetTester.h:343
void fillMatchHists(const reco::GenJet &fGenJet, const reco::PFJet &fPFJet, std::vector< reco::Vertex > goodVertices)
MonitorElement * mMass
Definition: PFJetTester.h:68
MonitorElement * mpTScale_b
Definition: PFJetTester.h:137
MonitorElement * mNeutralEmEnergy_3000
Definition: PFJetTester.h:169
std::string JetCorrectionService
Definition: PFJetTester.h:310
Jets made from MC generator particles.
Definition: GenJet.h:25
std::string inputGenMETLabel_
Definition: PFJetTester.h:42
MonitorElement * mPhi
Definition: PFJetTester.h:57
MonitorElement * mpTScaleF_d
Definition: PFJetTester.h:268
MonitorElement * mpTRatioB_d
Definition: PFJetTester.h:84
MonitorElement * mpTScale_c_nvtx_10_15
Definition: PFJetTester.h:119
MonitorElement * mChargedEmEnergyFraction_B
Definition: PFJetTester.h:172
MonitorElement * mCaloMETPhi
Definition: PFJetTester.h:329
MonitorElement * mPt
Definition: PFJetTester.h:65
MonitorElement * mpTScale_c
Definition: PFJetTester.h:138
MonitorElement * mpTScale1DE_30_200
Definition: PFJetTester.h:284
MonitorElement * mDelPt
Definition: PFJetTester.h:302
tuple goodVertices
The Good vertices collection needed by the tracking failure filter ________||.
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: PFJetTester.cc:546
double mMatchGenPtThreshold
Definition: PFJetTester.h:305
MonitorElement * mConstituents_80
Definition: PFJetTester.h:72
MonitorElement * mHadEnergyInHF_80
Definition: PFJetTester.h:190
MonitorElement * mpTScale_b_nvtx_10_15
Definition: PFJetTester.h:118
edm::InputTag inputMETLabel_
Definition: PFJetTester.h:40
MonitorElement * mNeutralEmEnergyFraction_B
Definition: PFJetTester.h:178
MonitorElement * mHadEnergyInHF
Definition: PFJetTester.h:189
MonitorElement * mGenPhi
Definition: PFJetTester.h:237
MonitorElement * mHadEnergyProfile
Definition: PFJetTester.h:316
std::string inputCaloMETLabel_
Definition: PFJetTester.h:43
MonitorElement * mElectronEnergy_80
Definition: PFJetTester.h:222
MonitorElement * mCaloMEx
Definition: PFJetTester.h:323
double mReverseEnergyFractionThreshold
Definition: PFJetTester.h:307
MonitorElement * mGenPt_80
Definition: PFJetTester.h:239
MonitorElement * mpTScale_a_nvtx_5_10
Definition: PFJetTester.h:114
MonitorElement * mEtaFineBin1m
Definition: PFJetTester.h:54
MonitorElement * mCorrJetEta
Definition: PFJetTester.h:81
MonitorElement * mChargedHadronEnergyFraction_F
Definition: PFJetTester.h:177
virtual void beginJob()
Definition: PFJetTester.cc:538
MonitorElement * mEta
Definition: PFJetTester.h:49
MonitorElement * mGenEtaFirst
Definition: PFJetTester.h:243
MonitorElement * mpTRatio_30_200_d
Definition: PFJetTester.h:87
MonitorElement * mChargedHadronEnergyFraction_E
Definition: PFJetTester.h:176
edm::InputTag mInputGenCollection
Definition: PFJetTester.h:38
MonitorElement * mPt_3000
Definition: PFJetTester.h:67
MonitorElement * mEFirst_3000
Definition: PFJetTester.h:146
MonitorElement * mEFirst_80
Definition: PFJetTester.h:145
MonitorElement * mCorrJetPt
Definition: PFJetTester.h:78
MonitorElement * mpTScale_1500_3500_d
Definition: PFJetTester.h:281
MonitorElement * mPhotonEnergy
Definition: PFJetTester.h:227
MonitorElement * mpTScale1DF_200_600
Definition: PFJetTester.h:288
MonitorElement * mCaloMETSig_3000
Definition: PFJetTester.h:333
MonitorElement * mpTScale_c_nvtx_20_30
Definition: PFJetTester.h:125
MonitorElement * mRMatch
Definition: PFJetTester.h:253
MonitorElement * mpTScale_nvtx_5_10
Definition: PFJetTester.h:130
MonitorElement * mpTScale_c_nvtx_0_5
Definition: PFJetTester.h:113
MonitorElement * mNeutralHadronEnergy_3000
Definition: PFJetTester.h:170
MonitorElement * mHEEne
Definition: PFJetTester.h:338
MonitorElement * mEtaFineBin2p
Definition: PFJetTester.h:52
MonitorElement * mpTScale_nvtx_10_15
Definition: PFJetTester.h:131
MonitorElement * mpTResponse_nvtx_10_15
Definition: PFJetTester.h:107
MonitorElement * mpTResponse_200_600_d
Definition: PFJetTester.h:96
MonitorElement * mNeutralHadronEnergyFraction_B
Definition: PFJetTester.h:181
MonitorElement * mCaloSumET
Definition: PFJetTester.h:330
MonitorElement * mAllGenJetsEta
Definition: PFJetTester.h:249
MonitorElement * mEmEnergyInHF_3000
Definition: PFJetTester.h:203
MonitorElement * mCaloMEy
Definition: PFJetTester.h:325
MonitorElement * mCaloMEy_3000
Definition: PFJetTester.h:326
MonitorElement * mEtaFineBin3p
Definition: PFJetTester.h:53
MonitorElement * mpTRatio_1500_3500_d
Definition: PFJetTester.h:90
MonitorElement * mEScaleFineBin
Definition: PFJetTester.h:261
MonitorElement * mpTScale_c_nvtx_5_10
Definition: PFJetTester.h:116
MonitorElement * mpTResponse_30_d
Definition: PFJetTester.h:99
MonitorElement * mpTScale_a_nvtx_30_inf
Definition: PFJetTester.h:126
MonitorElement * mDelPhi
Definition: PFJetTester.h:301
MonitorElement * mpTResponseF_d
Definition: PFJetTester.h:94
MonitorElement * mElectronEnergy_3000
Definition: PFJetTester.h:223
MonitorElement * mHadTiming
Definition: PFJetTester.h:74
MonitorElement * mChargedHadronEnergy_3000
Definition: PFJetTester.h:168
MonitorElement * mpTResponse
Definition: PFJetTester.h:91
MonitorElement * mE_80
Definition: PFJetTester.h:60
MonitorElement * mEScale
Definition: PFJetTester.h:256
MonitorElement * mpTResponseB_d
Definition: PFJetTester.h:92
MonitorElement * mpTScaleE_s
Definition: PFJetTester.h:264
MonitorElement * mpTScale_600_1500_s
Definition: PFJetTester.h:275
std::string mTurnOnEverything
Definition: PFJetTester.h:313
MonitorElement * mHadEnergyInHF_3000
Definition: PFJetTester.h:191
MonitorElement * mCorrJetPt_3000
Definition: PFJetTester.h:80
MonitorElement * mEtaFineBin
Definition: PFJetTester.h:50
MonitorElement * mPhiFirst
Definition: PFJetTester.h:143
MonitorElement * mNeutralEmEnergyFraction_F
Definition: PFJetTester.h:180
MonitorElement * mpTRatio
Definition: PFJetTester.h:83
MonitorElement * mpTScale1DB_600_1500
Definition: PFJetTester.h:289
MonitorElement * mpTResponse_nvtx_0_5
Definition: PFJetTester.h:105
MonitorElement * mHFEne
Definition: PFJetTester.h:342
MonitorElement * mCaloMET_3000
Definition: PFJetTester.h:328
MonitorElement * mGenPhiFirst
Definition: PFJetTester.h:244
MonitorElement * mJetEnergyProfile
Definition: PFJetTester.h:318
MonitorElement * mpTScale_nvtx_0_5
Definition: PFJetTester.h:129
MonitorElement * mMatchedGenJetsPt
Definition: PFJetTester.h:248
MonitorElement * mpTScalePhiE_d
Definition: PFJetTester.h:270
MonitorElement * mReverseMatchEnergyFraction
Definition: PFJetTester.h:252
MonitorElement * mjetArea
Definition: PFJetTester.h:100
MonitorElement * mMass_3000
Definition: PFJetTester.h:70
MonitorElement * mChargedEmEnergyFraction_F
Definition: PFJetTester.h:174
MonitorElement * mpTScale_a_nvtx_20_30
Definition: PFJetTester.h:123
MonitorElement * mEtaFineBin1p
Definition: PFJetTester.h:51
MonitorElement * mP_3000
Definition: PFJetTester.h:64
MonitorElement * mChargedHadronEnergyFraction_B
Definition: PFJetTester.h:175
MonitorElement * mDeltaPhi
Definition: PFJetTester.h:255
MonitorElement * mEtaFineBin3m
Definition: PFJetTester.h:56
MonitorElement * mE_3000
Definition: PFJetTester.h:61
MonitorElement * mPthat_80
Definition: PFJetTester.h:232
MonitorElement * mEmEnergyInHF_80
Definition: PFJetTester.h:202
MonitorElement * mNJetsEtaF
Definition: PFJetTester.h:152
MonitorElement * mpTScalePhiF_d
Definition: PFJetTester.h:271
MonitorElement * mMuonEnergy_80
Definition: PFJetTester.h:225