CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
JetAnalyzer.h
Go to the documentation of this file.
1 #ifndef JetAnalyzer_H
2 #define JetAnalyzer_H
3 
4 
13 #include <memory>
14 #include <fstream>
25 //
30 
32 
33 #include <string>
34 
35 
36 #include "GlobalVariables.h"
37 
38 
39 class JetAnalyzer : public JetAnalyzerBase {
40  public:
41 
43  // JetAnalyzer(const edm::ParameterSet&, JetServiceProxy *theService);
45 
47  virtual ~JetAnalyzer();
48 
50  void beginJob(DQMStore * dbe);
51 
53  void endJob();
54 
56  void analyze(const edm::Event&, const edm::EventSetup&,
58  const int numPV);
59 
61  _source = source;
62  }
63 
64  void setLeadJetFlag(int flag) {
65  _leadJetFlag = flag;
66  }
68  return _leadJetFlag;
69  }
70  void setJetLoPass(int pass) {
71  _JetLoPass = pass;
72  }
73 
74  void setJetHiPass(int pass) {
75  _JetHiPass = pass;
76  }
77 
78  private:
79  // ----------member data ---------------------------
80 
82  // Switch for verbosity
85  // Calo Jet Label
87 
91  int _theend;
92  double _ptThreshold;
93 
96 
98 
99  //JID cuts
100  double _fHPDMax;
101  double _resEMFMin;
103  //
113 
114  //histo binning parameters
115  int etaBin;
116  double etaMin;
117  double etaMax;
118 
119  int phiBin;
120  double phiMin;
121  double phiMax;
122 
123  int ptBin;
124  double ptMin;
125  double ptMax;
126 
127  int eBin;
128  double eMin;
129  double eMax;
130 
131  int pBin;
132  double pMin;
133  double pMax;
134 
135  //the histos
137 
138  // JetID helper
140 
141  // Calo Jets
142 
143  // std::vector<MonitorElement*> etaCaloJet;
144  // std::vector<MonitorElement*> phiCaloJet;
145  // std::vector<MonitorElement*> ptCaloJet;
146  // std::vector<MonitorElement*> qGlbTrack;
147 
148  // MonitorElement* etaCaloJet;
149  // MonitorElement* phiCaloJet;
150  // MonitorElement* ptCaloJet;
151 
152  // Generic Jet Parameters
153 
154  // --- Used for Data Certification
165 
168 
171 
174 
175  //MonitorElement* mPt_Barrel_Lo;
176  //MonitorElement* mPhi_Barrel_Lo;
180  //MonitorElement* mPt_EndCap_Lo;
181  //MonitorElement* mPhi_EndCap_Lo;
185  //MonitorElement* mPt_Forward_Lo;
186  //MonitorElement* mPhi_Forward_Lo;
190 
203  // ---
204 
205 
206  //MonitorElement* mE_Barrel;
207  //MonitorElement* mE_EndCap;
208  //MonitorElement* mE_Forward;
209 
210  //MonitorElement* mE;
211  //MonitorElement* mP;
212  // MonitorElement* mMass;
215 
216  // Leading Jet Parameters
219  //MonitorElement* mEFirst;
221 
222 
223  // CaloJet specific
233  // MonitorElement* mEnergyFractionHadronic;
234  // MonitorElement* mEnergyFractionEm;
239  // MonitorElement* msigmaEta;
240  // MonitorElement* msigmaPhi;
245 
246  // Events passing the jet triggers
247  //MonitorElement* mEta_Lo;
250 
254 
255  //dijet analysis quantities
258 
259 
260  // NPV profiles
261  //----------------------------------------------------------------------------
269 };
270 
271 
272 #endif
MonitorElement * mEFrac_EndCap
Definition: JetAnalyzer.h:184
MonitorElement * mNJets
Definition: JetAnalyzer.h:213
MonitorElement * mPt_Forward_Hi
Definition: JetAnalyzer.h:199
int _n90HitsMinTight
Definition: JetAnalyzer.h:110
MonitorElement * mHadEnergyInHB
Definition: JetAnalyzer.h:227
MonitorElement * mMaxEInEmTowers
Definition: JetAnalyzer.h:224
MonitorElement * mfRBX
Definition: JetAnalyzer.h:237
MonitorElement * mPhi_Forward
Definition: JetAnalyzer.h:173
int _n90HitsMinLoose
Definition: JetAnalyzer.h:107
MonitorElement * mPt_Lo
Definition: JetAnalyzer.h:249
MonitorElement * mEmEnergyInHF
Definition: JetAnalyzer.h:232
MonitorElement * mPhiFirst
Definition: JetAnalyzer.h:218
MonitorElement * mPt_Forward
Definition: JetAnalyzer.h:172
MonitorElement * mConstituents_Forward_Hi
Definition: JetAnalyzer.h:201
JetAnalyzer(const edm::ParameterSet &)
Constructor.
Definition: JetAnalyzer.cc:20
double phiMax
Definition: JetAnalyzer.h:121
MonitorElement * mHFrac_Forward
Definition: JetAnalyzer.h:188
MonitorElement * mEmEnergyInEE
Definition: JetAnalyzer.h:231
double eMin
Definition: JetAnalyzer.h:128
int makedijetselection
Definition: JetAnalyzer.h:97
MonitorElement * jetME
Definition: JetAnalyzer.h:136
MonitorElement * mPhi_EndCap
Definition: JetAnalyzer.h:170
MonitorElement * mN90Hits
Definition: JetAnalyzer.h:235
MonitorElement * mEta_Hi
Definition: JetAnalyzer.h:251
edm::InputTag theCaloJetCollectionLabel
Definition: JetAnalyzer.h:86
MonitorElement * mEFrac_profile
Definition: JetAnalyzer.h:268
MonitorElement * mPt_3
Definition: JetAnalyzer.h:158
MonitorElement * mHFrac_Barrel_Hi
Definition: JetAnalyzer.h:194
MonitorElement * mEta
Definition: JetAnalyzer.h:159
double _fHPDMaxTight
Definition: JetAnalyzer.h:108
MonitorElement * mConstituents_Forward
Definition: JetAnalyzer.h:187
MonitorElement * mPt_Hi
Definition: JetAnalyzer.h:253
double _resEMFMin
Definition: JetAnalyzer.h:101
double ptMin
Definition: JetAnalyzer.h:124
double _fHPDMax
Definition: JetAnalyzer.h:100
MonitorElement * mTightJIDPassFractionVSpt
Definition: JetAnalyzer.h:244
MonitorElement * mLooseJIDPassFractionVSpt
Definition: JetAnalyzer.h:242
double etaMax
Definition: JetAnalyzer.h:117
double _fHPDMaxLoose
Definition: JetAnalyzer.h:105
edm::ParameterSet parameters
Definition: JetAnalyzer.h:81
MonitorElement * mDPhi
Definition: JetAnalyzer.h:214
MonitorElement * mresEMF
Definition: JetAnalyzer.h:238
int getLeadJetFlag()
Definition: JetAnalyzer.h:67
MonitorElement * mConstituents_profile
Definition: JetAnalyzer.h:266
MonitorElement * mPt_Barrel_Hi
Definition: JetAnalyzer.h:191
MonitorElement * mEmEnergyInEB
Definition: JetAnalyzer.h:230
double _balanceThirdJetCut
Definition: JetAnalyzer.h:95
MonitorElement * mDijetBalance
Definition: JetAnalyzer.h:256
MonitorElement * mPhi_Barrel
Definition: JetAnalyzer.h:167
virtual ~JetAnalyzer()
Destructor.
Definition: JetAnalyzer.cc:44
MonitorElement * mConstituents_EndCap
Definition: JetAnalyzer.h:182
MonitorElement * mPhi_EndCap_Hi
Definition: JetAnalyzer.h:196
int _leadJetFlag
Definition: JetAnalyzer.h:90
void setJetLoPass(int pass)
Definition: JetAnalyzer.h:70
MonitorElement * mPt_1
Definition: JetAnalyzer.h:156
MonitorElement * mConstituents_Barrel
Definition: JetAnalyzer.h:177
std::string jetname
Definition: JetAnalyzer.h:83
MonitorElement * mPhi
Definition: JetAnalyzer.h:160
std::string _source
Definition: JetAnalyzer.h:84
MonitorElement * mPt_profile
Definition: JetAnalyzer.h:263
MonitorElement * mEtaFirst
Definition: JetAnalyzer.h:217
MonitorElement * mEFrac_Forward
Definition: JetAnalyzer.h:189
double _resEMFMinTight
Definition: JetAnalyzer.h:109
double pMax
Definition: JetAnalyzer.h:133
MonitorElement * mPt_2
Definition: JetAnalyzer.h:157
MonitorElement * mHFrac_Barrel
Definition: JetAnalyzer.h:178
double phiMin
Definition: JetAnalyzer.h:120
MonitorElement * mNJets_profile
Definition: JetAnalyzer.h:262
MonitorElement * mEFrac
Definition: JetAnalyzer.h:163
double _sigmaEtaMinTight
Definition: JetAnalyzer.h:111
double ptMax
Definition: JetAnalyzer.h:125
void setJetHiPass(int pass)
Definition: JetAnalyzer.h:74
void endJob()
Finish up a job.
Definition: JetAnalyzer.cc:265
MonitorElement * mHadEnergyInHF
Definition: JetAnalyzer.h:228
MonitorElement * mfHPD
Definition: JetAnalyzer.h:236
MonitorElement * mDijetAsymmetry
Definition: JetAnalyzer.h:257
MonitorElement * mHFrac_EndCap_Hi
Definition: JetAnalyzer.h:198
MonitorElement * mPt
Definition: JetAnalyzer.h:155
MonitorElement * mEFrac_Barrel
Definition: JetAnalyzer.h:179
MonitorElement * mConstituents_Barrel_Hi
Definition: JetAnalyzer.h:193
double _asymmetryThirdJetCut
Definition: JetAnalyzer.h:94
MonitorElement * mPhi_Barrel_Hi
Definition: JetAnalyzer.h:192
MonitorElement * mHFrac_EndCap
Definition: JetAnalyzer.h:183
MonitorElement * mPhiVSEta
Definition: JetAnalyzer.h:164
MonitorElement * mHFrac_Forward_Hi
Definition: JetAnalyzer.h:202
int _JetHiPass
Definition: JetAnalyzer.h:89
MonitorElement * mTightJIDPassFractionVSeta
Definition: JetAnalyzer.h:243
double etaMin
Definition: JetAnalyzer.h:116
void beginJob(DQMStore *dbe)
Inizialize parameters for histo binning.
Definition: JetAnalyzer.cc:48
MonitorElement * mLooseJIDPassFractionVSeta
Definition: JetAnalyzer.h:241
MonitorElement * mHFrac_profile
Definition: JetAnalyzer.h:267
reco::helper::JetIDHelper * jetID
Definition: JetAnalyzer.h:139
void setLeadJetFlag(int flag)
Definition: JetAnalyzer.h:64
MonitorElement * mPt_EndCap_Hi
Definition: JetAnalyzer.h:195
int fillJIDPassFrac
Definition: JetAnalyzer.h:104
double _resEMFMinLoose
Definition: JetAnalyzer.h:106
MonitorElement * mMaxEInHadTowers
Definition: JetAnalyzer.h:225
MonitorElement * mPhi_Hi
Definition: JetAnalyzer.h:252
MonitorElement * mPtFirst
Definition: JetAnalyzer.h:220
MonitorElement * mPhi_profile
Definition: JetAnalyzer.h:265
MonitorElement * mPt_Barrel
Definition: JetAnalyzer.h:166
MonitorElement * mHadEnergyInHE
Definition: JetAnalyzer.h:229
MonitorElement * mConstituents
Definition: JetAnalyzer.h:161
MonitorElement * mPhi_Forward_Hi
Definition: JetAnalyzer.h:200
MonitorElement * mEta_profile
Definition: JetAnalyzer.h:264
MonitorElement * mConstituents_EndCap_Hi
Definition: JetAnalyzer.h:197
MonitorElement * mPt_EndCap
Definition: JetAnalyzer.h:169
int _JetLoPass
Definition: JetAnalyzer.h:88
double eMax
Definition: JetAnalyzer.h:129
void setSource(std::string source)
Definition: JetAnalyzer.h:60
static std::string const source
Definition: EdmProvDump.cc:43
double pMin
Definition: JetAnalyzer.h:132
double _sigmaPhiMinTight
Definition: JetAnalyzer.h:112
void analyze(const edm::Event &, const edm::EventSetup &, const reco::CaloJetCollection &caloJets, const int numPV)
Get the analysis.
Definition: JetAnalyzer.cc:271
MonitorElement * mPhi_Lo
Definition: JetAnalyzer.h:248
MonitorElement * mHFrac
Definition: JetAnalyzer.h:162
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects
double _ptThreshold
Definition: JetAnalyzer.h:92
MonitorElement * mHadEnergyInHO
Definition: JetAnalyzer.h:226