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