CMS 3D CMS Logo

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