CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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. 2013
9 
10 #include <cmath>
11 #include <string>
12 
40 class MonitorElement;
41 
42 class JetTester : public edm::EDAnalyzer {
43  public:
44 
46  ~JetTester();
47 
48  virtual void analyze(const edm::Event&, const edm::EventSetup&);
49  virtual void beginJob();
50  virtual void endJob();
51 
52  private:
53 
54  void fillMatchHists(const double GenEta, const double GenPhi, const double GenPt,
55  const double RecoEta, const double RecoPhi, const double RecoPt);
56 
59 // edm::InputTag rhoTag;
62 
63  //Tokens
71 
72  // Event variables
74 
75  // Jet parameters
86 // MonitorElement* mRho;
87 
88  // Corrected jets
94  // Corrected jets profiles
111 
112  // Generation
122 
138 
139  // Generation profiles
151 
152  // Some jet algebra
164 
165 // // PFJet specific
166 // MonitorElement* mChargedEmEnergy;
167 // MonitorElement* mChargedHadronEnergy;
168 // MonitorElement* mNeutralEmEnergy;
169 // MonitorElement* mNeutralHadronEnergy;
170 // MonitorElement* mHadEnergyInHF;
171 // MonitorElement* mEmEnergyInHF;
172 
173  // ---- Calo Jet specific information ----
188  // ---- JPT Jet specific information ----
190  // ---- JPT or PF Jet specific information ----
201 
202  // ---- PF Jet specific information ----
222 
223  // Parameters
227  double mRThreshold;
228  bool isCaloJet;
229  bool isJPTJet;
230  bool isPFJet;
231 
232 
234 };
235 
236 #endif
MonitorElement * mNJetsEta_B_40
Definition: JetTester.h:159
MonitorElement * mPtRecoOverGen_E_20_40
Definition: JetTester.h:124
edm::EDGetTokenT< std::vector< reco::Vertex > > pvToken_
Definition: JetTester.h:64
MonitorElement * mPtCorrOverGen_GenEta_40_200
Definition: JetTester.h:107
MonitorElement * mPtCorrOverReco_Pt_E
Definition: JetTester.h:96
MonitorElement * hadEnergyInHE
Definition: JetTester.h:180
MonitorElement * mNvtx
Definition: JetTester.h:73
MonitorElement * HFHadronEnergyFraction
Definition: JetTester.h:210
MonitorElement * mPtRecoOverGen_B_20_40
Definition: JetTester.h:123
MonitorElement * mPtCorrOverGen_GenPt_F
Definition: JetTester.h:105
MonitorElement * mPtRecoOverGen_F_40_200
Definition: JetTester.h:128
edm::EDGetTokenT< reco::GenJetCollection > genJetsToken_
Definition: JetTester.h:69
MonitorElement * neutralHadronEnergy
Definition: JetTester.h:196
MonitorElement * electronEnergyFraction
Definition: JetTester.h:206
MonitorElement * mPtRecoOverGen_B_200_600
Definition: JetTester.h:129
MonitorElement * HFEMEnergyFraction
Definition: JetTester.h:212
bool isPFJet
Definition: JetTester.h:230
MonitorElement * mPtRecoOverGen_GenPt_F
Definition: JetTester.h:142
MonitorElement * mMjj
Definition: JetTester.h:156
edm::InputTag mInputGenCollection
Definition: JetTester.h:58
MonitorElement * mPtFirst
Definition: JetTester.h:155
virtual void beginJob()
Definition: JetTester.cc:450
edm::EDGetTokenT< reco::CaloJetCollection > caloJetsToken_
Definition: JetTester.h:66
MonitorElement * photonEnergyFraction
Definition: JetTester.h:204
MonitorElement * neutralMultiplicity
Definition: JetTester.h:221
MonitorElement * mDeltaPhi
Definition: JetTester.h:120
bool isCaloJet
Definition: JetTester.h:228
MonitorElement * mPtRecoOverGen_GenPhi_E
Definition: JetTester.h:144
MonitorElement * mPtRecoOverGen_GenEta_20_40
Definition: JetTester.h:146
MonitorElement * hadEnergyInHB
Definition: JetTester.h:178
MonitorElement * mPtCorrOverReco_Eta_40_200
Definition: JetTester.h:99
MonitorElement * photonMultiplicity
Definition: JetTester.h:215
MonitorElement * mCorrJetPhi
Definition: JetTester.h:91
MonitorElement * energyFractionHadronic
Definition: JetTester.h:176
double mMatchGenPtThreshold
Definition: JetTester.h:225
MonitorElement * mPtRecoOverGen_E_40_200
Definition: JetTester.h:127
MonitorElement * mNJets2
Definition: JetTester.h:163
MonitorElement * mPtCorrOverReco_Eta_200_600
Definition: JetTester.h:100
MonitorElement * muonEnergyFraction
Definition: JetTester.h:208
MonitorElement * n90
Definition: JetTester.h:186
MonitorElement * mPtRecoOverGen_GenPhi_B
Definition: JetTester.h:143
MonitorElement * mEtaFirst
Definition: JetTester.h:153
MonitorElement * emEnergyFraction
Definition: JetTester.h:177
std::string JetCorrectionService
Definition: JetTester.h:233
MonitorElement * mCorrJetEta
Definition: JetTester.h:90
MonitorElement * photonEnergy
Definition: JetTester.h:203
MonitorElement * towersArea
Definition: JetTester.h:185
MonitorElement * hadEnergyInHF
Definition: JetTester.h:181
MonitorElement * HFHadronMultiplicity
Definition: JetTester.h:217
MonitorElement * mGenPt
Definition: JetTester.h:115
MonitorElement * muonEnergy
Definition: JetTester.h:207
MonitorElement * electronMultiplicity
Definition: JetTester.h:216
MonitorElement * mPtRecoOverGen_B_600_1500
Definition: JetTester.h:132
MonitorElement * mEnergy
Definition: JetTester.h:80
MonitorElement * elecMultiplicity
Definition: JetTester.h:189
MonitorElement * mPtRecoOverGen_GenPt_E
Definition: JetTester.h:141
MonitorElement * mNJetsEta_E_40
Definition: JetTester.h:160
MonitorElement * mEta
Definition: JetTester.h:76
MonitorElement * mGenEtaFirst
Definition: JetTester.h:116
MonitorElement * mNJetsEta_B_20_40
Definition: JetTester.h:157
MonitorElement * chargedMuEnergy
Definition: JetTester.h:219
MonitorElement * mPtRecoOverGen_F_1500_3500
Definition: JetTester.h:137
MonitorElement * mDeltaEta
Definition: JetTester.h:119
MonitorElement * mNJets_40
Definition: JetTester.h:161
MonitorElement * HFHadronEnergy
Definition: JetTester.h:209
MonitorElement * mNJetsEta_E_20_40
Definition: JetTester.h:158
MonitorElement * mDeltaPt
Definition: JetTester.h:121
MonitorElement * mPtRecoOverGen_B_40_200
Definition: JetTester.h:126
MonitorElement * mPtRecoOverGen_B_1500_3500
Definition: JetTester.h:135
MonitorElement * mPtRecoOverGen_F_200_600
Definition: JetTester.h:131
MonitorElement * mPhiFirst
Definition: JetTester.h:154
MonitorElement * mP
Definition: JetTester.h:79
void fillMatchHists(const double GenEta, const double GenPhi, const double GenPt, const double RecoEta, const double RecoPhi, const double RecoPt)
Definition: JetTester.cc:842
edm::EDGetTokenT< reco::JPTJetCollection > jptJetsToken_
Definition: JetTester.h:68
MonitorElement * mEmTiming
Definition: JetTester.h:84
MonitorElement * mPtCorrOverGen_GenPt_B
Definition: JetTester.h:103
MonitorElement * mPtCorrOverReco_Eta_600_1500
Definition: JetTester.h:101
MonitorElement * n60
Definition: JetTester.h:187
MonitorElement * mGenEta
Definition: JetTester.h:113
MonitorElement * hadEnergyInHO
Definition: JetTester.h:179
MonitorElement * mPhi
Definition: JetTester.h:77
virtual void endJob()
Definition: JetTester.cc:456
MonitorElement * mPtCorrOverGen_GenEta_200_600
Definition: JetTester.h:108
MonitorElement * mPt
Definition: JetTester.h:78
edm::InputTag mInputCollection
Definition: JetTester.h:57
MonitorElement * emEnergyInHF
Definition: JetTester.h:184
MonitorElement * mPtRecoOverGen_E_200_600
Definition: JetTester.h:130
JetTester(const edm::ParameterSet &)
Definition: JetTester.cc:12
MonitorElement * mPtRecoOverGen_GenPhi_F
Definition: JetTester.h:145
MonitorElement * chargedHadronEnergyFraction
Definition: JetTester.h:197
MonitorElement * mPtRecoOverGen_E_600_1500
Definition: JetTester.h:133
bool isJPTJet
Definition: JetTester.h:229
MonitorElement * mPtHat
Definition: JetTester.h:118
MonitorElement * chargedHadronEnergy
Definition: JetTester.h:195
MonitorElement * mPtCorrOverReco_Pt_B
Definition: JetTester.h:95
edm::EDGetTokenT< CaloTowerCollection > caloTowersToken_
Definition: JetTester.h:65
MonitorElement * mPtRecoOverGen_GenPt_B
Definition: JetTester.h:140
double mGenEnergyFractionThreshold
Definition: JetTester.h:226
MonitorElement * mPtCorrOverReco_Eta_1500_3500
Definition: JetTester.h:102
MonitorElement * mJetArea
Definition: JetTester.h:85
edm::EDGetTokenT< edm::HepMCProduct > evtToken_
Definition: JetTester.h:70
MonitorElement * mMass
Definition: JetTester.h:81
MonitorElement * HFEMMultiplicity
Definition: JetTester.h:218
MonitorElement * chargedEmEnergy
Definition: JetTester.h:193
MonitorElement * mPtRecoOverGen_GenEta_40_200
Definition: JetTester.h:147
MonitorElement * mPtRecoOverGen_E_1500_3500
Definition: JetTester.h:136
MonitorElement * mPtRecoOverGen_F_600_1500
Definition: JetTester.h:134
std::string mOutputFile
Definition: JetTester.h:60
MonitorElement * chargedMuEnergyFraction
Definition: JetTester.h:220
MonitorElement * electronEnergy
Definition: JetTester.h:205
MonitorElement * emEnergyInEE
Definition: JetTester.h:183
MonitorElement * mPtCorrOverGen_GenEta_20_40
Definition: JetTester.h:106
double mRecoJetPtThreshold
Definition: JetTester.h:224
MonitorElement * mPtCorrOverGen_GenEta_1500_3500
Definition: JetTester.h:110
MonitorElement * mGenPhi
Definition: JetTester.h:114
MonitorElement * maxEInHadTowers
Definition: JetTester.h:175
MonitorElement * mCorrJetEta_Pt40
Definition: JetTester.h:92
MonitorElement * emEnergyInEB
Definition: JetTester.h:182
edm::EDGetTokenT< reco::PFJetCollection > pfJetsToken_
Definition: JetTester.h:67
MonitorElement * mConstituents
Definition: JetTester.h:82
MonitorElement * maxEInEmTowers
Definition: JetTester.h:174
MonitorElement * mPtRecoOverGen_F_20_40
Definition: JetTester.h:125
MonitorElement * mGenPhiFirst
Definition: JetTester.h:117
MonitorElement * mCorrJetPt
Definition: JetTester.h:89
MonitorElement * mPtCorrOverGen_GenPt_E
Definition: JetTester.h:104
MonitorElement * mPtRecoOverGen_GenEta_600_1500
Definition: JetTester.h:149
MonitorElement * mHadTiming
Definition: JetTester.h:83
MonitorElement * mPtRecoOverGen_GenEta_200_600
Definition: JetTester.h:148
MonitorElement * mPtCorrOverReco_Eta_20_40
Definition: JetTester.h:98
MonitorElement * chargedEmEnergyFraction
Definition: JetTester.h:199
MonitorElement * mPtCorrOverReco_Pt_F
Definition: JetTester.h:97
MonitorElement * muonMultiplicity
Definition: JetTester.h:191
MonitorElement * neutralHadronEnergyFraction
Definition: JetTester.h:198
double mRThreshold
Definition: JetTester.h:227
MonitorElement * neutralEmEnergy
Definition: JetTester.h:194
MonitorElement * chargedHadronMultiplicity
Definition: JetTester.h:213
std::string JetType
Definition: JetTester.h:61
MonitorElement * mPtRecoOverGen_GenEta_1500_3500
Definition: JetTester.h:150
MonitorElement * mNJets1
Definition: JetTester.h:162
MonitorElement * mPtCorrOverGen_GenEta_600_1500
Definition: JetTester.h:109
MonitorElement * chargedMultiplicity
Definition: JetTester.h:192
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: JetTester.cc:468
MonitorElement * HFEMEnergy
Definition: JetTester.h:211
MonitorElement * mCorrJetPhi_Pt40
Definition: JetTester.h:93
MonitorElement * neutralHadronMultiplicity
Definition: JetTester.h:214
MonitorElement * neutralEmEnergyFraction
Definition: JetTester.h:200