ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/LJMet/MultivariateAnalysis/interface/TtLJetsAnalyzer.h
Revision: 1.2
Committed: Thu Nov 20 17:27:21 2008 UTC (16 years, 5 months ago) by kukartse
Content type: text/plain
Branch: MAIN
Changes since 1.1: +13 -1 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 // -*- C++ -*-
2 //
3 // Package: TtLJetsAnalyzer
4 // Class: TtLJetsAnalyzer
5 //
6 /**\class TtLJetsAnalyzer TtLJetsAnalyzer.cc RecoBTag/TtLJetsAnalyzer/src/TtLJetsAnalyzer.cc
7
8 Description: Likelihood variables for ttbar events
9
10 Implementation:
11 Ttbar cross section without b tagging. Likelihood quantities.
12 */
13 //
14 // Original Author: Gena Kukartsev, kukarzev@fnal.gov
15 // Created: Fri Jun 20 06:19:59 CDT 2008
16 // $Id: TtLJetsAnalyzer.h,v 1.1 2008/11/11 23:01:21 kukartse Exp $
17 //
18 //
19
20 #include <memory>
21 #include <string>
22
23 #include "FWCore/Framework/interface/Frameworkfwd.h"
24 #include "FWCore/Framework/interface/EDAnalyzer.h"
25 #include "FWCore/Framework/interface/Event.h"
26 #include "FWCore/Framework/interface/MakerMacros.h"
27 #include "FWCore/ParameterSet/interface/ParameterSet.h"
28 #include "LJMet/MultivariateAnalysis/interface/RooGKCounter.h"
29
30 #include "TFile.h"
31 #include "TTree.h"
32 #include "Rtypes.h"
33
34 class TtLJetsAnalyzer : public edm::EDAnalyzer {
35 public:
36 explicit TtLJetsAnalyzer(const edm::ParameterSet&);
37 ~TtLJetsAnalyzer();
38
39
40 private:
41 std::string _jetSource, _electronSource, _muonSource, _METSource;
42 std::string _outFile;
43 int nCaloJets_min;
44 int nLepton_min;
45 double jet_pt_min ;
46 double jet_eta_max ;
47 double muon_pt_min ;
48 double muon_eta_max ;
49 double muon_trackIso_max ;
50 double muon_caloIso_max ;
51 double electron_pt_min ;
52 double electron_eta_max ;
53 double electron_trackIso_max ;
54 double electron_caloIso_max ;
55 double met_et_min ;
56
57 RooGKCounter eventCounter;
58 RooGKCounter selectedEvents;
59
60 TFile * _file;
61 TTree * _tree;
62
63 Int_t _event;
64 Int_t _process_id;
65 Int_t _n_jets;
66 Int_t _n_met;
67 Int_t _n_muons;
68 Int_t _n_electrons;
69 Int_t _lepton_is_muon;
70 Double_t _event_weight;
71 Double_t _lepton_pt;
72 Double_t _lepton_eta;
73 Double_t _lepton_phi;
74 Double_t _lepton_energy;
75 Double_t _lepton_track_chi2;
76 Double_t _lepton_track_ndof;
77 Double_t _lepton_track_nChi2;
78 Double_t _lepton_track_iso;
79 Double_t _lepton_calo_iso;
80 Double_t _lepton_ecal_iso;
81 Double_t _lepton_hcal_iso;
82 Double_t _lepton_user_iso;
83 Double_t _met_pt;
84 Double_t _met_et;
85 Double_t _met_eta;
86 Double_t _met_phi;
87 Double_t _met_energy;
88 Double_t _jet1_pt;
89 Double_t _jet1_eta;
90 Double_t _jet1_phi;
91 Double_t _jet1_energy;
92 Double_t _jet2_pt;
93 Double_t _jet2_eta;
94 Double_t _jet2_phi;
95 Double_t _jet2_energy;
96 Double_t _jet3_pt;
97 Double_t _jet3_eta;
98 Double_t _jet3_phi;
99 Double_t _jet3_energy;
100 Double_t _jet4_pt;
101 Double_t _jet4_eta;
102 Double_t _jet4_phi;
103 Double_t _jet4_energy;
104
105 Double_t _aplanarity ;
106 Double_t _centrality ;
107 Double_t _sphericity ;
108 Double_t _ht ;
109 Double_t _htPlusLepton ;
110 Double_t _metHtPlusLepton ;
111 Double_t _h ;
112 Double_t _ktMinPrime ;
113 Double_t _dPhiLMet ;
114 Double_t _minDijetMass ;
115 Double_t _maxJetEta ;
116 Double_t _et3 ;
117 Double_t _minDiJetDeltaR ;
118 Double_t _leptonJetDeltaR ;
119 Double_t _ht2p ;
120 Double_t _jet1Jet2DeltaR ;
121 Double_t _jet1Jet2DeltaPhi ;
122 Double_t _jet1Jet2_M ;
123 Double_t _jet1Jet2_Pt ;
124 Double_t _jet1Jet2W_M ;
125 Double_t _jet1Jet2W_Pt ;
126
127 Double_t _hz ;
128 Double_t _HT2 ;
129 Double_t _HT2prime ;
130 Double_t _W_MT ;
131 Double_t _W_M ;
132 Double_t _W_Pt ;
133 Double_t _DphiJMET ;
134
135 // Ht
136 Double_t _getHt ;
137 Double_t _getHtp ;
138 Double_t _getHtpp ;
139 Double_t _getHt2 ;
140 Double_t _getHt2p ;
141 Double_t _getHt2pp ;
142 Double_t _getHt3 ;
143 Double_t _getHt3p ;
144 Double_t _getHt3pp ;
145 Double_t _getCen ;
146 Double_t _getNJW ;
147 Double_t _getJetEtaMax ;
148 Double_t _getMdijetMin ;
149 Double_t _getMtjets ;
150 Double_t _getSqrtsT ;
151 Double_t _getMtAurelio ;
152 Double_t _getPzOverHT ;
153 Double_t _getMevent ;
154 Double_t _getM123inv ;
155 Double_t _getEta2Sum ;
156 Double_t _getMwRec ;
157 Double_t _getH ;
158
159 // event topo
160 Double_t _getSph ;
161 Double_t _getApl ;
162 Double_t _getAplMu ;
163
164 // Kt
165 Double_t _getKtminp ;
166 Double_t _getKtminpReduced ;
167 Double_t _getDrMinJetJet ;
168
169 // mT
170 Double_t _getDphiMuMet ;
171 Double_t _getMt ;
172
173 Double_t _lepton_id;
174 Double_t _electron_id_robust;
175 Double_t _electron_id_loose;
176 Double_t _electron_id_tight;
177 Double_t _electron_tdrid_medium;
178 Double_t _electron_tdrid_loose;
179 Double_t _electron_tdrid_tight;
180 Int_t _n_tagged_jets_trackCounting_loose;
181 Int_t _n_tagged_jets_trackCounting_medium;
182 Int_t _n_tagged_jets_trackCounting_tight;
183 Int_t _n_tagged_jets_jetProb_loose;
184 Int_t _n_tagged_jets_jetProb_medium;
185 Int_t _n_tagged_jets_jetProb_tight;
186
187 TBranch * b_event;
188 TBranch * b_process_id;
189 TBranch * b_n_jets;
190 TBranch * b_n_met;
191 TBranch * b_n_muons;
192 TBranch * b_n_electrons;
193 TBranch * b_lepton_is_muon;
194 TBranch * b_event_weight;
195 TBranch * b_lepton_pt;
196 TBranch * b_lepton_eta;
197 TBranch * b_lepton_phi;
198 TBranch * b_lepton_energy;
199 TBranch * b_lepton_track_chi2;
200 TBranch * b_lepton_track_ndof;
201 TBranch * b_lepton_track_nChi2;
202 TBranch * b_lepton_track_iso;
203 TBranch * b_lepton_calo_iso;
204 TBranch * b_lepton_ecal_iso;
205 TBranch * b_lepton_hcal_iso;
206 TBranch * b_lepton_user_iso;
207 TBranch * b_met_pt;
208 TBranch * b_met_et;
209 TBranch * b_met_eta;
210 TBranch * b_met_phi;
211 TBranch * b_met_energy;
212 TBranch * b_jet1_pt;
213 TBranch * b_jet1_eta;
214 TBranch * b_jet1_phi;
215 TBranch * b_jet1_energy;
216 TBranch * b_jet2_pt;
217 TBranch * b_jet2_eta;
218 TBranch * b_jet2_phi;
219 TBranch * b_jet2_energy;
220 TBranch * b_jet3_pt;
221 TBranch * b_jet3_eta;
222 TBranch * b_jet3_phi;
223 TBranch * b_jet3_energy;
224 TBranch * b_jet4_pt;
225 TBranch * b_jet4_eta;
226 TBranch * b_jet4_phi;
227 TBranch * b_jet4_energy;
228 TBranch * b_lepton_id;
229 TBranch * b_electron_id_robust;
230 TBranch * b_electron_id_loose;
231 TBranch * b_electron_id_tight;
232 TBranch * b_electron_tdrid_medium;
233 TBranch * b_electron_tdrid_loose;
234 TBranch * b_electron_tdrid_tight;
235 TBranch * b_n_tagged_jets_trackCounting_loose;
236 TBranch * b_n_tagged_jets_trackCounting_medium;
237 TBranch * b_n_tagged_jets_trackCounting_tight;
238 TBranch * b_n_tagged_jets_jetProb_loose;
239 TBranch * b_n_tagged_jets_jetProb_medium;
240 TBranch * b_n_tagged_jets_jetProb_tight;
241
242 TBranch * b_aplanarity ;
243 TBranch * b_centrality ;
244 TBranch * b_sphericity ;
245 TBranch * b_ht ;
246 TBranch * b_htPlusLepton ;
247 TBranch * b_metHtPlusLepton ;
248 TBranch * b_h ;
249 TBranch * b_ktMinPrime ;
250 TBranch * b_dPhiLMet ;
251 TBranch * b_minDijetMass ;
252 TBranch * b_maxJetEta ;
253 TBranch * b_et3 ;
254 TBranch * b_minDiJetDeltaR ;
255 TBranch * b_leptonJetDeltaR ;
256 TBranch * b_ht2p ;
257 TBranch * b_jet1Jet2DeltaR ;
258 TBranch * b_jet1Jet2DeltaPhi ;
259 TBranch * b_jet1Jet2_M ;
260 TBranch * b_jet1Jet2_Pt ;
261 TBranch * b_jet1Jet2W_M ;
262 TBranch * b_jet1Jet2W_Pt ;
263
264 TBranch * b_hz ;
265 TBranch * b_HT2 ;
266 TBranch * b_HT2prime ;
267 TBranch * b_W_MT ;
268 TBranch * b_W_M ;
269 TBranch * b_W_Pt ;
270 TBranch * b_DphiJMET ;
271
272 // Ht
273 TBranch * b_getHt ;
274 TBranch * b_getHtp ;
275 TBranch * b_getHtpp ;
276 TBranch * b_getHt2 ;
277 TBranch * b_getHt2p ;
278 TBranch * b_getHt2pp ;
279 TBranch * b_getHt3 ;
280 TBranch * b_getHt3p ;
281 TBranch * b_getHt3pp ;
282 TBranch * b_getCen ;
283 TBranch * b_getNJW ;
284 TBranch * b_getJetEtaMax ;
285 TBranch * b_getMdijetMin ;
286 TBranch * b_getMtjets ;
287 TBranch * b_getSqrtsT ;
288 TBranch * b_getMtAurelio ;
289 TBranch * b_getPzOverHT ;
290 TBranch * b_getMevent ;
291 TBranch * b_getM123inv ;
292 TBranch * b_getEta2Sum ;
293 TBranch * b_getMwRec ;
294 TBranch * b_getH ;
295
296 // event topo
297 TBranch * b_getSph ;
298 TBranch * b_getApl ;
299 TBranch * b_getAplMu ;
300
301 // Kt
302 TBranch * b_getKtminp ;
303 TBranch * b_getKtminpReduced ;
304 TBranch * b_getDrMinJetJet ;
305
306 // mT
307 TBranch * b_getDphiMuMet ;
308 TBranch * b_getMt ;
309
310 virtual void beginJob(const edm::EventSetup&) ;
311 virtual void analyze(const edm::Event&, const edm::EventSetup&);
312 virtual void endJob() ;
313 };