ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/interface/ntupleLoader.hpp
Revision: 1.1
Committed: Fri Apr 27 14:24:40 2012 UTC (13 years ago) by bortigno
Branch: MAIN
Log Message:
Pier code

File Contents

# Content
1 //////////////////////////////////////////////////////////
2 // This class has been automatically generated on
3 // Mon Dec 19 15:42:42 2011 by ROOT version 5.30/02
4 // from TTree tree/myTree
5 // found on file: /Users/pier/Physics/ZSVAnalysis/HBB_EDMNtuple/V11/DiJetPt_DoubleElectron_Run2011_FULL.root
6 //////////////////////////////////////////////////////////
7
8 #ifndef ntupleLoader_h
9 #define ntupleLoader_h
10
11 #include <TROOT.h>
12 #include <TChain.h>
13 #include <TFile.h>
14 #include "TLorentzVector.h"
15
16 class ntupleLoader {
17 public :
18
19 TTree * tree;
20 TTree *fChain; //!pointer to the analyzed TTree or TChain
21 Int_t fCurrent; //!current Tree number in a TChain
22
23 // Declaration of leaf types
24 Float_t H_mass;
25 Float_t H_pt;
26 Float_t H_eta;
27 Float_t H_phi;
28 Float_t H_dR;
29 Float_t H_dPhi;
30 Float_t H_dEta;
31 Float_t V_mass;
32 Float_t V_pt;
33 Float_t V_eta;
34 Float_t V_phi;
35 Int_t nhJets;
36 Int_t naJets;
37 Float_t hJet_pt[2]; //[nhJets]
38 Float_t hJet_eta[2]; //[nhJets]
39 Float_t hJet_phi[2]; //[nhJets]
40 Float_t hJet_e[2]; //[nhJets]
41 Float_t hJet_csv[2]; //[nhJets]
42 Float_t hJet_csvDown[2]; //[nhJets]
43 Float_t hJet_csvUp[2]; //[nhJets]
44 Float_t hJet_csvFDown[2]; //[nhJets]
45 Float_t hJet_csvFUp[2]; //[nhJets]
46 Float_t hJet_cosTheta[2]; //[nhJets]
47 Int_t hJet_numTracksSV[2]; //[nhJets]
48 Float_t hJet_chf[2]; //[nhJets]
49 Float_t hJet_nhf[2]; //[nhJets]
50 Float_t hJet_cef[2]; //[nhJets]
51 Float_t hJet_nef[2]; //[nhJets]
52 Float_t hJet_nch[2]; //[nhJets]
53 Float_t hJet_nconstituents[2]; //[nhJets]
54 Float_t hJet_flavour[2]; //[nhJets]
55 Float_t hJet_genPt[2]; //[nhJets]
56 Float_t hJet_genEta[2]; //[nhJets]
57 Float_t hJet_genPhi[2]; //[nhJets]
58 Float_t hJet_JECUnc[2]; //[nhJets]
59 Float_t hJet_vtxMass[2]; //[nhJets]
60 Float_t hJet_vtx3dL[2]; //[nhJets]
61 Float_t hJet_vtx3deL[2]; //[nhJets]
62 UChar_t hJet_id[2]; //[nhJets]
63 UChar_t hJet_SF_CSVL[2]; //[nhJets]
64 UChar_t hJet_SF_CSVM[2]; //[nhJets]
65 UChar_t hJet_SF_CSVT[2]; //[nhJets]
66 UChar_t hJet_SF_CSVLerr[2]; //[nhJets]
67 UChar_t hJet_SF_CSVMerr[2]; //[nhJets]
68 UChar_t hJet_SF_CSVTerr[2]; //[nhJets]
69 Float_t aJet_pt[37]; //[naJets]
70 Float_t aJet_eta[37]; //[naJets]
71 Float_t aJet_phi[37]; //[naJets]
72 Float_t aJet_e[37]; //[naJets]
73 Float_t aJet_csv[37]; //[naJets]
74 Float_t aJet_cosTheta[37]; //[naJets]
75 Int_t aJet_numTracksSV[37]; //[naJets]
76 Float_t aJet_chf[37]; //[naJets]
77 Float_t aJet_nhf[37]; //[naJets]
78 Float_t aJet_cef[37]; //[naJets]
79 Float_t aJet_nef[37]; //[naJets]
80 Float_t aJet_nch[37]; //[naJets]
81 Float_t aJet_nconstituents[37]; //[naJets]
82 Float_t aJet_flavour[37]; //[naJets]
83 Float_t aJet_genPt[37]; //[naJets]
84 Float_t aJet_genEta[37]; //[naJets]
85 Float_t aJet_genPhi[37]; //[naJets]
86 Float_t aJet_JECUnc[37]; //[naJets]
87 Float_t aJet_vtxMass[37]; //[naJets]
88 Float_t aJet_vtx3dL[37]; //[naJets]
89 Float_t aJet_vtx3deL[37]; //[naJets]
90 UChar_t aJet_id[37]; //[naJets]
91 UChar_t aJet_SF_CSVL[37]; //[naJets]
92 UChar_t aJet_SF_CSVM[37]; //[naJets]
93 UChar_t aJet_SF_CSVT[37]; //[naJets]
94 UChar_t aJet_SF_CSVLerr[37]; //[naJets]
95 UChar_t aJet_SF_CSVMerr[37]; //[naJets]
96 UChar_t aJet_SF_CSVTerr[37]; //[naJets]
97 Int_t numJets;
98 Int_t numBJets;
99 Float_t deltaPullAngle;
100 Float_t deltaPullAngle2;
101 Float_t gendrcc;
102 Float_t gendrbb;
103 Float_t genZpt;
104 Float_t genWpt;
105 Float_t weightTrig;
106 Float_t weightTrigMay;
107 Float_t weightTrigV4;
108 Float_t weightTrigMET;
109 Float_t weightTrigOrMu30;
110 Float_t weightEleRecoAndId;
111 Float_t weightEleTrigJetMETPart;
112 Float_t weightEleTrigElePart;
113 Float_t weightEleTrigEleAugPart;
114 Float_t weightTrigMET80;
115 Float_t weightTrigMET100;
116 Float_t weightTrig2CJet20;
117 Float_t weightTrigMET150;
118 Float_t weightTrigMET802CJet;
119 Float_t weightTrigMET1002CJet;
120 Float_t weightTrigMETLP;
121 Float_t deltaPullAngleAK7;
122 Float_t deltaPullAngle2AK7;
123 Float_t PU0;
124 Float_t PUm1;
125 Float_t PUp1;
126 Float_t PUweight;
127 Float_t PUweight2011B;
128 Int_t eventFlav;
129 Int_t Vtype;
130 Float_t HVdPhi;
131 Float_t HVMass;
132 Float_t HMETdPhi;
133 Float_t VMt;
134 Int_t nvlep;
135 Int_t nalep;
136 Float_t vLepton_mass[2]; //[nvlep]
137 Float_t vLepton_pt[2]; //[nvlep]
138 Float_t vLepton_eta[2]; //[nvlep]
139 Float_t vLepton_phi[2]; //[nvlep]
140 Float_t vLepton_aodCombRelIso[2]; //[nvlep]
141 Float_t vLepton_pfCombRelIso[2]; //[nvlep]
142 Float_t vLepton_photonIso[2]; //[nvlep]
143 Float_t vLepton_neutralHadIso[2]; //[nvlep]
144 Float_t vLepton_chargedHadIso[2]; //[nvlep]
145 Float_t vLepton_chargedPUIso[2]; //[nvlep]
146 Float_t vLepton_particleIso[2]; //[nvlep]
147 Float_t vLepton_dxy[2]; //[nvlep]
148 Float_t vLepton_dz[2]; //[nvlep]
149 Int_t vLepton_type[2]; //[nvlep]
150 Float_t vLepton_id80[2]; //[nvlep]
151 Float_t vLepton_id95[2]; //[nvlep]
152 Float_t vLepton_vbtf[2]; //[nvlep]
153 Float_t vLepton_id80NoIso[2]; //[nvlep]
154 Float_t vLepton_genPt[2]; //[nvlep]
155 Float_t vLepton_genEta[2]; //[nvlep]
156 Float_t vLepton_genPhi[2]; //[nvlep]
157 Float_t aLepton_mass[4]; //[nalep]
158 Float_t aLepton_pt[4]; //[nalep]
159 Float_t aLepton_eta[4]; //[nalep]
160 Float_t aLepton_phi[4]; //[nalep]
161 Float_t aLepton_aodCombRelIso[4]; //[nalep]
162 Float_t aLepton_pfCombRelIso[4]; //[nalep]
163 Float_t aLepton_photonIso[4]; //[nalep]
164 Float_t aLepton_neutralHadIso[4]; //[nalep]
165 Float_t aLepton_chargedHadIso[4]; //[nalep]
166 Float_t aLepton_chargedPUIso[4]; //[nalep]
167 Float_t aLepton_particleIso[4]; //[nalep]
168 Float_t aLepton_dxy[4]; //[nalep]
169 Float_t aLepton_dz[4]; //[nalep]
170 Int_t aLepton_type[4]; //[nalep]
171 Float_t aLepton_id80[4]; //[nalep]
172 Float_t aLepton_id95[4]; //[nalep]
173 Float_t aLepton_vbtf[4]; //[nalep]
174 Float_t aLepton_id80NoIso[4]; //[nalep]
175 Float_t aLepton_genPt[4]; //[nalep]
176 Float_t aLepton_genEta[4]; //[nalep]
177 Float_t aLepton_genPhi[4]; //[nalep]
178 Float_t top_mass;
179 Float_t top_pt;
180 Float_t top_wMass;
181 Int_t WplusMode;
182 Int_t WminusMode;
183 Int_t nSvs;
184 Float_t Sv_massBCand[5]; //[nSvs]
185 Float_t Sv_massSv[5]; //[nSvs]
186 Float_t Sv_pt[5]; //[nSvs]
187 Float_t Sv_eta[5]; //[nSvs]
188 Float_t Sv_phi[5]; //[nSvs]
189 Float_t Sv_dist3D[5]; //[nSvs]
190 Float_t Sv_dist2D[5]; //[nSvs]
191 Float_t Sv_distSim2D[5]; //[nSvs]
192 Float_t Sv_distSig3D[5]; //[nSvs]
193 Float_t Sv_dist3D_norm[5]; //[nSvs]
194 Float_t SVH_mass;
195 Float_t SVH_pt;
196 Float_t SVH_eta;
197 Float_t SVH_phi;
198 Float_t SVH_dR;
199 Float_t SVH_dPhi;
200 Float_t SVH_dEta;
201 Int_t nSimBs;
202 Float_t SimBs_mass[8]; //[nSimBs]
203 Float_t SimBs_pt[8]; //[nSimBs]
204 Float_t SimBs_eta[8]; //[nSimBs]
205 Float_t SimBs_phi[8]; //[nSimBs]
206 Float_t SimBs_vtx_x[8]; //[nSimBs]
207 Float_t SimBs_vtx_y[8]; //[nSimBs]
208 Float_t SimBs_vtx_z[8]; //[nSimBs]
209 Float_t SimBs_pdgId[8]; //[nSimBs]
210 Float_t SimBs_status[8]; //[nSimBs]
211 Float_t SimBsH_mass;
212 Float_t SimBsH_pt;
213 Float_t SimBsH_eta;
214 Float_t SimBsH_phi;
215 Float_t SimBsH_dR;
216 Float_t SimBsH_dPhi;
217 Float_t SimBsH_dEta;
218 Float_t rho;
219 Float_t rho25;
220 Int_t nPVs;
221 Float_t METnoPU_et;
222 Float_t METnoPU_sumet;
223 Float_t METnoPU_sig;
224 Float_t METnoPU_phi;
225 Float_t METnoPUCh_et;
226 Float_t METnoPUCh_sumet;
227 Float_t METnoPUCh_sig;
228 Float_t METnoPUCh_phi;
229 Float_t MET_et;
230 Float_t MET_sumet;
231 Float_t MET_sig;
232 Float_t MET_phi;
233 Float_t fakeMET_et;
234 Float_t fakeMET_sumet;
235 Float_t fakeMET_sig;
236 Float_t fakeMET_phi;
237 Float_t MHT_mht;
238 Float_t MHT_ht;
239 Float_t MHT_sig;
240 Float_t MHT_phi;
241 Float_t minDeltaPhijetMET;
242 Float_t jetPt_minDeltaPhijetMET;
243 UChar_t triggerFlags[28];
244 Int_t EVENT_run;
245 Int_t EVENT_lumi;
246 Int_t EVENT_event;
247 Int_t EVENT_json;
248 UChar_t hbhe;
249 UChar_t totalKinematics;
250 UChar_t ecalFlag;
251 Float_t btag1TSF;
252 Float_t btag2TSF;
253 Float_t btag1T2CSF;
254 Float_t btag2CSF;
255 Float_t btagA0CSF;
256 Float_t btagA0TSF;
257 Float_t btag1TA1C;
258
259 // List of branches
260 TBranch *b_H; //!
261 TBranch *b_V; //!
262 TBranch *b_nhJets; //!
263 TBranch *b_naJets; //!
264 TBranch *b_hJet_pt; //!
265 TBranch *b_hJet_eta; //!
266 TBranch *b_hJet_phi; //!
267 TBranch *b_hJet_e; //!
268 TBranch *b_hJet_csv; //!
269 TBranch *b_hJet_csvDown; //!
270 TBranch *b_hJet_csvUp; //!
271 TBranch *b_hJet_csvFDown; //!
272 TBranch *b_hJet_csvFUp; //!
273 TBranch *b_hJet_cosTheta; //!
274 TBranch *b_hJet_numTracksSV; //!
275 TBranch *b_hJet_chf; //!
276 TBranch *b_hJet_nhf; //!
277 TBranch *b_hJet_cef; //!
278 TBranch *b_hJet_nef; //!
279 TBranch *b_hJet_nch; //!
280 TBranch *b_hJet_nconstituents; //!
281 TBranch *b_hJet_flavour; //!
282 TBranch *b_hJet_genPt; //!
283 TBranch *b_hJet_genEta; //!
284 TBranch *b_hJet_genPhi; //!
285 TBranch *b_hJet_JECUnc; //!
286 TBranch *b_hJet_vtxMass; //!
287 TBranch *b_hJet_vtx3dL; //!
288 TBranch *b_hJet_vtx3deL; //!
289 TBranch *b_hJet_id; //!
290 TBranch *b_hJet_SF_CSVL; //!
291 TBranch *b_hJet_SF_CSVM; //!
292 TBranch *b_hJet_SF_CSVT; //!
293 TBranch *b_hJet_SF_CSVLerr; //!
294 TBranch *b_hJet_SF_CSVMerr; //!
295 TBranch *b_hJet_SF_CSVTerr; //!
296 TBranch *b_aJet_pt; //!
297 TBranch *b_aJet_eta; //!
298 TBranch *b_aJet_phi; //!
299 TBranch *b_aJet_e; //!
300 TBranch *b_aJet_csv; //!
301 TBranch *b_aJet_cosTheta; //!
302 TBranch *b_aJet_numTracksSV; //!
303 TBranch *b_aJet_chf; //!
304 TBranch *b_aJet_nhf; //!
305 TBranch *b_aJet_cef; //!
306 TBranch *b_aJet_nef; //!
307 TBranch *b_aJet_nch; //!
308 TBranch *b_aJet_nconstituents; //!
309 TBranch *b_aJet_flavour; //!
310 TBranch *b_aJet_genPt; //!
311 TBranch *b_aJet_genEta; //!
312 TBranch *b_aJet_genPhi; //!
313 TBranch *b_aJet_JECUnc; //!
314 TBranch *b_aJet_vtxMass; //!
315 TBranch *b_aJet_vtx3dL; //!
316 TBranch *b_aJet_vtx3deL; //!
317 TBranch *b_aJet_id; //!
318 TBranch *b_aJet_SF_CSVL; //!
319 TBranch *b_aJet_SF_CSVM; //!
320 TBranch *b_aJet_SF_CSVT; //!
321 TBranch *b_aJet_SF_CSVLerr; //!
322 TBranch *b_aJet_SF_CSVMerr; //!
323 TBranch *b_aJet_SF_CSVTerr; //!
324 TBranch *b_numJets; //!
325 TBranch *b_numBJets; //!
326 TBranch *b_deltaPullAngle; //!
327 TBranch *b_deltaPullAngle2; //!
328 TBranch *b_gendrcc; //!
329 TBranch *b_gendrbb; //!
330 TBranch *b_genZpt; //!
331 TBranch *b_genWpt; //!
332 TBranch *b_weightTrig; //!
333 TBranch *b_weightTrigMay; //!
334 TBranch *b_weightTrigV4; //!
335 TBranch *b_weightTrigMET; //!
336 TBranch *b_weightTrigOrMu30; //!
337 TBranch *b_weightEleRecoAndId; //!
338 TBranch *b_weightEleTrigJetMETPart; //!
339 TBranch *b_weightEleTrigElePart; //!
340 TBranch *b_weightEleTrigEleAugPart; //!
341 TBranch *b_weightTrigMET80; //!
342 TBranch *b_weightTrigMET100; //!
343 TBranch *b_weightTrig2CJet20; //!
344 TBranch *b_weightTrigMET150; //!
345 TBranch *b_weightTrigMET802CJet; //!
346 TBranch *b_weightTrigMET1002CJet; //!
347 TBranch *b_weightTrigMETLP; //!
348 TBranch *b_deltaPullAngleAK7; //!
349 TBranch *b_deltaPullAngle2AK7; //!
350 TBranch *b_PU0; //!
351 TBranch *b_PUm1; //!
352 TBranch *b_PUp1; //!
353 TBranch *b_PUweight; //!
354 TBranch *b_PUweight2011B; //!
355 TBranch *b_eventFlav; //!
356 TBranch *b_Vtype; //!
357 TBranch *b_HVdPhi; //!
358 TBranch *b_HVMass; //!
359 TBranch *b_HMETdPhi; //!
360 TBranch *b_VMt; //!
361 TBranch *b_nvlep; //!
362 TBranch *b_nalep; //!
363 TBranch *b_vLepton_mass; //!
364 TBranch *b_vLepton_pt; //!
365 TBranch *b_vLepton_eta; //!
366 TBranch *b_vLepton_phi; //!
367 TBranch *b_vLepton_aodCombRelIso; //!
368 TBranch *b_vLepton_pfCombRelIso; //!
369 TBranch *b_vLepton_photonIso; //!
370 TBranch *b_vLepton_neutralHadIso; //!
371 TBranch *b_vLepton_chargedHadIso; //!
372 TBranch *b_vLepton_chargedPUIso; //!
373 TBranch *b_vLepton_particleIso; //!
374 TBranch *b_vLepton_dxy; //!
375 TBranch *b_vLepton_dz; //!
376 TBranch *b_vLepton_type; //!
377 TBranch *b_vLepton_id80; //!
378 TBranch *b_vLepton_id95; //!
379 TBranch *b_vLepton_vbtf; //!
380 TBranch *b_vLepton_id80NoIso; //!
381 TBranch *b_vLepton_genPt; //!
382 TBranch *b_vLepton_genEta; //!
383 TBranch *b_vLepton_genPhi; //!
384 TBranch *b_aLepton_mass; //!
385 TBranch *b_aLepton_pt; //!
386 TBranch *b_aLepton_eta; //!
387 TBranch *b_aLepton_phi; //!
388 TBranch *b_aLepton_aodCombRelIso; //!
389 TBranch *b_aLepton_pfCombRelIso; //!
390 TBranch *b_aLepton_photonIso; //!
391 TBranch *b_aLepton_neutralHadIso; //!
392 TBranch *b_aLepton_chargedHadIso; //!
393 TBranch *b_aLepton_chargedPUIso; //!
394 TBranch *b_aLepton_particleIso; //!
395 TBranch *b_aLepton_dxy; //!
396 TBranch *b_aLepton_dz; //!
397 TBranch *b_aLepton_type; //!
398 TBranch *b_aLepton_id80; //!
399 TBranch *b_aLepton_id95; //!
400 TBranch *b_aLepton_vbtf; //!
401 TBranch *b_aLepton_id80NoIso; //!
402 TBranch *b_aLepton_genPt; //!
403 TBranch *b_aLepton_genEta; //!
404 TBranch *b_aLepton_genPhi; //!
405 TBranch *b_top; //!
406 TBranch *b_WplusMode; //!
407 TBranch *b_WminusMode; //!
408 TBranch *b_nSvs; //!
409 TBranch *b_Sv_massBCand; //!
410 TBranch *b_Sv_massSv; //!
411 TBranch *b_Sv_pt; //!
412 TBranch *b_Sv_eta; //!
413 TBranch *b_Sv_phi; //!
414 TBranch *b_Sv_dist3D; //!
415 TBranch *b_Sv_dist2D; //!
416 TBranch *b_Sv_distSim2D; //!
417 TBranch *b_Sv_distSig3D; //!
418 TBranch *b_Sv_dist3D_norm; //!
419 TBranch *b_SVH; //!
420 TBranch *b_nSimBs; //!
421 TBranch *b_SimBs_mass; //!
422 TBranch *b_SimBs_pt; //!
423 TBranch *b_SimBs_eta; //!
424 TBranch *b_SimBs_phi; //!
425 TBranch *b_SimBs_vtx_x; //!
426 TBranch *b_SimBs_vtx_y; //!
427 TBranch *b_SimBs_vtx_z; //!
428 TBranch *b_SimBs_pdgId; //!
429 TBranch *b_SimBs_status; //!
430 TBranch *b_SimBsH; //!
431 TBranch *b_rho; //!
432 TBranch *b_rho25; //!
433 TBranch *b_nPVs; //!
434 TBranch *b_METnoPU; //!
435 TBranch *b_METnoPUCh; //!
436 TBranch *b_MET; //!
437 TBranch *b_fakeMET; //!
438 TBranch *b_MHT; //!
439 TBranch *b_minDeltaPhijetMET; //!
440 TBranch *b_jetPt_minDeltaPhijetMET; //!
441 TBranch *b_triggerFlags; //!
442 TBranch *b_EVENT; //!
443 TBranch *b_hbhe; //!
444 TBranch *b_totalKinematics; //!
445 TBranch *b_ecalFlag; //!
446 TBranch *b_btag1TSF; //!
447 TBranch *b_btag2TSF; //!
448 TBranch *b_btag1T2CSF; //!
449 TBranch *b_btag2CSF; //!
450 TBranch *b_btagA0CSF; //!
451 TBranch *b_btagA0TSF; //!
452 TBranch *b_btag1TA1C; //!
453
454 ntupleLoader(const char * infile);
455 virtual ~ntupleLoader();
456 virtual Int_t Cut(Long64_t entry);
457 virtual Int_t GetEntry(Long64_t entry);
458 virtual Long64_t LoadTree(Long64_t entry);
459 virtual void Init(TTree *tree);
460 virtual void Loop();
461 virtual Bool_t Notify();
462 virtual void Show(Long64_t entry = -1);
463
464 };
465
466
467 ntupleLoader::ntupleLoader(const char * infile)
468 {
469 // if parameter tree is not specified (or zero), connect the file
470 // used to generate this class and read the Tree.
471 tree=0;
472 if (tree == 0) {
473 TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject(infile);
474 if (!f) {
475 f = new TFile(infile);
476 }
477 tree = (TTree*)gDirectory->Get("tree");
478
479 }
480 Init(tree);
481 }
482
483 ntupleLoader::~ntupleLoader()
484 {
485 if (!fChain) return;
486 delete fChain->GetCurrentFile();
487 }
488
489 Int_t ntupleLoader::GetEntry(Long64_t entry)
490 {
491 // Read contents of entry.
492 if (!fChain) return 0;
493 return fChain->GetEntry(entry);
494 }
495 Long64_t ntupleLoader::LoadTree(Long64_t entry)
496 {
497 // Set the environment to read one entry
498 if (!fChain) return -5;
499 Long64_t centry = fChain->LoadTree(entry);
500 if (centry < 0) return centry;
501 if (fChain->GetTreeNumber() != fCurrent) {
502 fCurrent = fChain->GetTreeNumber();
503 Notify();
504 }
505 return centry;
506 }
507
508
509 void ntupleLoader::Init(TTree *tree)
510 {
511 // The Init() function is called when the selector needs to initialize
512 // a new tree or chain. Typically here the branch addresses and branch
513 // pointers of the tree will be set.
514 // It is normally not necessary to make changes to the generated
515 // code, but the routine can be extended by the user if needed.
516 // Init() will be called many times when running on PROOF
517 // (once per file to be processed).
518
519 // Set branch addresses and branch pointers
520 if (!tree) return;
521 fChain = tree;
522 fCurrent = -1;
523 fChain->SetMakeClass(1);
524
525 fChain->SetBranchAddress("H", &H_mass, &b_H);
526 fChain->SetBranchAddress("V", &V_mass, &b_V);
527 fChain->SetBranchAddress("nhJets", &nhJets, &b_nhJets);
528 fChain->SetBranchAddress("naJets", &naJets, &b_naJets);
529 fChain->SetBranchAddress("hJet_pt", hJet_pt, &b_hJet_pt);
530 fChain->SetBranchAddress("hJet_eta", hJet_eta, &b_hJet_eta);
531 fChain->SetBranchAddress("hJet_phi", hJet_phi, &b_hJet_phi);
532 fChain->SetBranchAddress("hJet_e", hJet_e, &b_hJet_e);
533 fChain->SetBranchAddress("hJet_csv", hJet_csv, &b_hJet_csv);
534 fChain->SetBranchAddress("hJet_csvDown", hJet_csvDown, &b_hJet_csvDown);
535 fChain->SetBranchAddress("hJet_csvUp", hJet_csvUp, &b_hJet_csvUp);
536 fChain->SetBranchAddress("hJet_csvFDown", hJet_csvFDown, &b_hJet_csvFDown);
537 fChain->SetBranchAddress("hJet_csvFUp", hJet_csvFUp, &b_hJet_csvFUp);
538 fChain->SetBranchAddress("hJet_cosTheta", hJet_cosTheta, &b_hJet_cosTheta);
539 fChain->SetBranchAddress("hJet_numTracksSV", hJet_numTracksSV, &b_hJet_numTracksSV);
540 fChain->SetBranchAddress("hJet_chf", hJet_chf, &b_hJet_chf);
541 fChain->SetBranchAddress("hJet_nhf", hJet_nhf, &b_hJet_nhf);
542 fChain->SetBranchAddress("hJet_cef", hJet_cef, &b_hJet_cef);
543 fChain->SetBranchAddress("hJet_nef", hJet_nef, &b_hJet_nef);
544 fChain->SetBranchAddress("hJet_nch", hJet_nch, &b_hJet_nch);
545 fChain->SetBranchAddress("hJet_nconstituents", hJet_nconstituents, &b_hJet_nconstituents);
546 fChain->SetBranchAddress("hJet_flavour", hJet_flavour, &b_hJet_flavour);
547 fChain->SetBranchAddress("hJet_genPt", hJet_genPt, &b_hJet_genPt);
548 fChain->SetBranchAddress("hJet_genEta", hJet_genEta, &b_hJet_genEta);
549 fChain->SetBranchAddress("hJet_genPhi", hJet_genPhi, &b_hJet_genPhi);
550 fChain->SetBranchAddress("hJet_JECUnc", hJet_JECUnc, &b_hJet_JECUnc);
551 fChain->SetBranchAddress("hJet_vtxMass", hJet_vtxMass, &b_hJet_vtxMass);
552 fChain->SetBranchAddress("hJet_vtx3dL", hJet_vtx3dL, &b_hJet_vtx3dL);
553 fChain->SetBranchAddress("hJet_vtx3deL", hJet_vtx3deL, &b_hJet_vtx3deL);
554 fChain->SetBranchAddress("hJet_id", hJet_id, &b_hJet_id);
555 fChain->SetBranchAddress("hJet_SF_CSVL", hJet_SF_CSVL, &b_hJet_SF_CSVL);
556 fChain->SetBranchAddress("hJet_SF_CSVM", hJet_SF_CSVM, &b_hJet_SF_CSVM);
557 fChain->SetBranchAddress("hJet_SF_CSVT", hJet_SF_CSVT, &b_hJet_SF_CSVT);
558 fChain->SetBranchAddress("hJet_SF_CSVLerr", hJet_SF_CSVLerr, &b_hJet_SF_CSVLerr);
559 fChain->SetBranchAddress("hJet_SF_CSVMerr", hJet_SF_CSVMerr, &b_hJet_SF_CSVMerr);
560 fChain->SetBranchAddress("hJet_SF_CSVTerr", hJet_SF_CSVTerr, &b_hJet_SF_CSVTerr);
561 fChain->SetBranchAddress("aJet_pt", aJet_pt, &b_aJet_pt);
562 fChain->SetBranchAddress("aJet_eta", aJet_eta, &b_aJet_eta);
563 fChain->SetBranchAddress("aJet_phi", aJet_phi, &b_aJet_phi);
564 fChain->SetBranchAddress("aJet_e", aJet_e, &b_aJet_e);
565 fChain->SetBranchAddress("aJet_csv", aJet_csv, &b_aJet_csv);
566 fChain->SetBranchAddress("aJet_cosTheta", aJet_cosTheta, &b_aJet_cosTheta);
567 fChain->SetBranchAddress("aJet_numTracksSV", aJet_numTracksSV, &b_aJet_numTracksSV);
568 fChain->SetBranchAddress("aJet_chf", aJet_chf, &b_aJet_chf);
569 fChain->SetBranchAddress("aJet_nhf", aJet_nhf, &b_aJet_nhf);
570 fChain->SetBranchAddress("aJet_cef", aJet_cef, &b_aJet_cef);
571 fChain->SetBranchAddress("aJet_nef", aJet_nef, &b_aJet_nef);
572 fChain->SetBranchAddress("aJet_nch", aJet_nch, &b_aJet_nch);
573 fChain->SetBranchAddress("aJet_nconstituents", aJet_nconstituents, &b_aJet_nconstituents);
574 fChain->SetBranchAddress("aJet_flavour", aJet_flavour, &b_aJet_flavour);
575 fChain->SetBranchAddress("aJet_genPt", aJet_genPt, &b_aJet_genPt);
576 fChain->SetBranchAddress("aJet_genEta", aJet_genEta, &b_aJet_genEta);
577 fChain->SetBranchAddress("aJet_genPhi", aJet_genPhi, &b_aJet_genPhi);
578 fChain->SetBranchAddress("aJet_JECUnc", aJet_JECUnc, &b_aJet_JECUnc);
579 fChain->SetBranchAddress("aJet_vtxMass", aJet_vtxMass, &b_aJet_vtxMass);
580 fChain->SetBranchAddress("aJet_vtx3dL", aJet_vtx3dL, &b_aJet_vtx3dL);
581 fChain->SetBranchAddress("aJet_vtx3deL", aJet_vtx3deL, &b_aJet_vtx3deL);
582 fChain->SetBranchAddress("aJet_id", aJet_id, &b_aJet_id);
583 fChain->SetBranchAddress("aJet_SF_CSVL", aJet_SF_CSVL, &b_aJet_SF_CSVL);
584 fChain->SetBranchAddress("aJet_SF_CSVM", aJet_SF_CSVM, &b_aJet_SF_CSVM);
585 fChain->SetBranchAddress("aJet_SF_CSVT", aJet_SF_CSVT, &b_aJet_SF_CSVT);
586 fChain->SetBranchAddress("aJet_SF_CSVLerr", aJet_SF_CSVLerr, &b_aJet_SF_CSVLerr);
587 fChain->SetBranchAddress("aJet_SF_CSVMerr", aJet_SF_CSVMerr, &b_aJet_SF_CSVMerr);
588 fChain->SetBranchAddress("aJet_SF_CSVTerr", aJet_SF_CSVTerr, &b_aJet_SF_CSVTerr);
589 fChain->SetBranchAddress("numJets", &numJets, &b_numJets);
590 fChain->SetBranchAddress("numBJets", &numBJets, &b_numBJets);
591 fChain->SetBranchAddress("deltaPullAngle", &deltaPullAngle, &b_deltaPullAngle);
592 fChain->SetBranchAddress("deltaPullAngle2", &deltaPullAngle2, &b_deltaPullAngle2);
593 fChain->SetBranchAddress("gendrcc", &gendrcc, &b_gendrcc);
594 fChain->SetBranchAddress("gendrbb", &gendrbb, &b_gendrbb);
595 fChain->SetBranchAddress("genZpt", &genZpt, &b_genZpt);
596 fChain->SetBranchAddress("genWpt", &genWpt, &b_genWpt);
597 fChain->SetBranchAddress("weightTrig", &weightTrig, &b_weightTrig);
598 fChain->SetBranchAddress("weightTrigMay", &weightTrigMay, &b_weightTrigMay);
599 fChain->SetBranchAddress("weightTrigV4", &weightTrigV4, &b_weightTrigV4);
600 fChain->SetBranchAddress("weightTrigMET", &weightTrigMET, &b_weightTrigMET);
601 fChain->SetBranchAddress("weightTrigOrMu30", &weightTrigOrMu30, &b_weightTrigOrMu30);
602 fChain->SetBranchAddress("weightEleRecoAndId", &weightEleRecoAndId, &b_weightEleRecoAndId);
603 fChain->SetBranchAddress("weightEleTrigJetMETPart", &weightEleTrigJetMETPart, &b_weightEleTrigJetMETPart);
604 fChain->SetBranchAddress("weightEleTrigElePart", &weightEleTrigElePart, &b_weightEleTrigElePart);
605 fChain->SetBranchAddress("weightEleTrigEleAugPart", &weightEleTrigEleAugPart, &b_weightEleTrigEleAugPart);
606 fChain->SetBranchAddress("weightTrigMET80", &weightTrigMET80, &b_weightTrigMET80);
607 fChain->SetBranchAddress("weightTrigMET100", &weightTrigMET100, &b_weightTrigMET100);
608 fChain->SetBranchAddress("weightTrig2CJet20", &weightTrig2CJet20, &b_weightTrig2CJet20);
609 fChain->SetBranchAddress("weightTrigMET150", &weightTrigMET150, &b_weightTrigMET150);
610 fChain->SetBranchAddress("weightTrigMET802CJet", &weightTrigMET802CJet, &b_weightTrigMET802CJet);
611 fChain->SetBranchAddress("weightTrigMET1002CJet", &weightTrigMET1002CJet, &b_weightTrigMET1002CJet);
612 fChain->SetBranchAddress("weightTrigMETLP", &weightTrigMETLP, &b_weightTrigMETLP);
613 fChain->SetBranchAddress("deltaPullAngleAK7", &deltaPullAngleAK7, &b_deltaPullAngleAK7);
614 fChain->SetBranchAddress("deltaPullAngle2AK7", &deltaPullAngle2AK7, &b_deltaPullAngle2AK7);
615 fChain->SetBranchAddress("PU0", &PU0, &b_PU0);
616 fChain->SetBranchAddress("PUm1", &PUm1, &b_PUm1);
617 fChain->SetBranchAddress("PUp1", &PUp1, &b_PUp1);
618 fChain->SetBranchAddress("PUweight", &PUweight, &b_PUweight);
619 fChain->SetBranchAddress("PUweight2011B", &PUweight2011B, &b_PUweight2011B);
620 fChain->SetBranchAddress("eventFlav", &eventFlav, &b_eventFlav);
621 fChain->SetBranchAddress("Vtype", &Vtype, &b_Vtype);
622 fChain->SetBranchAddress("HVdPhi", &HVdPhi, &b_HVdPhi);
623 fChain->SetBranchAddress("HVMass", &HVMass, &b_HVMass);
624 fChain->SetBranchAddress("HMETdPhi", &HMETdPhi, &b_HMETdPhi);
625 fChain->SetBranchAddress("VMt", &VMt, &b_VMt);
626 fChain->SetBranchAddress("nvlep", &nvlep, &b_nvlep);
627 fChain->SetBranchAddress("nalep", &nalep, &b_nalep);
628 fChain->SetBranchAddress("vLepton_mass", vLepton_mass, &b_vLepton_mass);
629 fChain->SetBranchAddress("vLepton_pt", vLepton_pt, &b_vLepton_pt);
630 fChain->SetBranchAddress("vLepton_eta", vLepton_eta, &b_vLepton_eta);
631 fChain->SetBranchAddress("vLepton_phi", vLepton_phi, &b_vLepton_phi);
632 fChain->SetBranchAddress("vLepton_aodCombRelIso", vLepton_aodCombRelIso, &b_vLepton_aodCombRelIso);
633 fChain->SetBranchAddress("vLepton_pfCombRelIso", vLepton_pfCombRelIso, &b_vLepton_pfCombRelIso);
634 fChain->SetBranchAddress("vLepton_photonIso", vLepton_photonIso, &b_vLepton_photonIso);
635 fChain->SetBranchAddress("vLepton_neutralHadIso", vLepton_neutralHadIso, &b_vLepton_neutralHadIso);
636 fChain->SetBranchAddress("vLepton_chargedHadIso", vLepton_chargedHadIso, &b_vLepton_chargedHadIso);
637 fChain->SetBranchAddress("vLepton_chargedPUIso", vLepton_chargedPUIso, &b_vLepton_chargedPUIso);
638 fChain->SetBranchAddress("vLepton_particleIso", vLepton_particleIso, &b_vLepton_particleIso);
639 fChain->SetBranchAddress("vLepton_dxy", vLepton_dxy, &b_vLepton_dxy);
640 fChain->SetBranchAddress("vLepton_dz", vLepton_dz, &b_vLepton_dz);
641 fChain->SetBranchAddress("vLepton_type", vLepton_type, &b_vLepton_type);
642 fChain->SetBranchAddress("vLepton_id80", vLepton_id80, &b_vLepton_id80);
643 fChain->SetBranchAddress("vLepton_id95", vLepton_id95, &b_vLepton_id95);
644 fChain->SetBranchAddress("vLepton_vbtf", vLepton_vbtf, &b_vLepton_vbtf);
645 fChain->SetBranchAddress("vLepton_id80NoIso", vLepton_id80NoIso, &b_vLepton_id80NoIso);
646 fChain->SetBranchAddress("vLepton_genPt", vLepton_genPt, &b_vLepton_genPt);
647 fChain->SetBranchAddress("vLepton_genEta", vLepton_genEta, &b_vLepton_genEta);
648 fChain->SetBranchAddress("vLepton_genPhi", vLepton_genPhi, &b_vLepton_genPhi);
649 fChain->SetBranchAddress("aLepton_mass", aLepton_mass, &b_aLepton_mass);
650 fChain->SetBranchAddress("aLepton_pt", aLepton_pt, &b_aLepton_pt);
651 fChain->SetBranchAddress("aLepton_eta", aLepton_eta, &b_aLepton_eta);
652 fChain->SetBranchAddress("aLepton_phi", aLepton_phi, &b_aLepton_phi);
653 fChain->SetBranchAddress("aLepton_aodCombRelIso", aLepton_aodCombRelIso, &b_aLepton_aodCombRelIso);
654 fChain->SetBranchAddress("aLepton_pfCombRelIso", aLepton_pfCombRelIso, &b_aLepton_pfCombRelIso);
655 fChain->SetBranchAddress("aLepton_photonIso", aLepton_photonIso, &b_aLepton_photonIso);
656 fChain->SetBranchAddress("aLepton_neutralHadIso", aLepton_neutralHadIso, &b_aLepton_neutralHadIso);
657 fChain->SetBranchAddress("aLepton_chargedHadIso", aLepton_chargedHadIso, &b_aLepton_chargedHadIso);
658 fChain->SetBranchAddress("aLepton_chargedPUIso", aLepton_chargedPUIso, &b_aLepton_chargedPUIso);
659 fChain->SetBranchAddress("aLepton_particleIso", aLepton_particleIso, &b_aLepton_particleIso);
660 fChain->SetBranchAddress("aLepton_dxy", aLepton_dxy, &b_aLepton_dxy);
661 fChain->SetBranchAddress("aLepton_dz", aLepton_dz, &b_aLepton_dz);
662 fChain->SetBranchAddress("aLepton_type", aLepton_type, &b_aLepton_type);
663 fChain->SetBranchAddress("aLepton_id80", aLepton_id80, &b_aLepton_id80);
664 fChain->SetBranchAddress("aLepton_id95", aLepton_id95, &b_aLepton_id95);
665 fChain->SetBranchAddress("aLepton_vbtf", aLepton_vbtf, &b_aLepton_vbtf);
666 fChain->SetBranchAddress("aLepton_id80NoIso", aLepton_id80NoIso, &b_aLepton_id80NoIso);
667 fChain->SetBranchAddress("aLepton_genPt", aLepton_genPt, &b_aLepton_genPt);
668 fChain->SetBranchAddress("aLepton_genEta", aLepton_genEta, &b_aLepton_genEta);
669 fChain->SetBranchAddress("aLepton_genPhi", aLepton_genPhi, &b_aLepton_genPhi);
670 fChain->SetBranchAddress("top", &top_mass, &b_top);
671 fChain->SetBranchAddress("WplusMode", &WplusMode, &b_WplusMode);
672 fChain->SetBranchAddress("WminusMode", &WminusMode, &b_WminusMode);
673 fChain->SetBranchAddress("nSvs", &nSvs, &b_nSvs);
674 fChain->SetBranchAddress("Sv_massBCand", Sv_massBCand, &b_Sv_massBCand);
675 fChain->SetBranchAddress("Sv_massSv", Sv_massSv, &b_Sv_massSv);
676 fChain->SetBranchAddress("Sv_pt", Sv_pt, &b_Sv_pt);
677 fChain->SetBranchAddress("Sv_eta", Sv_eta, &b_Sv_eta);
678 fChain->SetBranchAddress("Sv_phi", Sv_phi, &b_Sv_phi);
679 fChain->SetBranchAddress("Sv_dist3D", Sv_dist3D, &b_Sv_dist3D);
680 fChain->SetBranchAddress("Sv_dist2D", Sv_dist2D, &b_Sv_dist2D);
681 fChain->SetBranchAddress("Sv_distSim2D", Sv_distSim2D, &b_Sv_distSim2D);
682 fChain->SetBranchAddress("Sv_distSig3D", Sv_distSig3D, &b_Sv_distSig3D);
683 fChain->SetBranchAddress("Sv_dist3D_norm", Sv_dist3D_norm, &b_Sv_dist3D_norm);
684 fChain->SetBranchAddress("SVH", &SVH_mass, &b_SVH);
685 fChain->SetBranchAddress("nSimBs", &nSimBs, &b_nSimBs);
686 fChain->SetBranchAddress("SimBs_mass", SimBs_mass, &b_SimBs_mass);
687 fChain->SetBranchAddress("SimBs_pt", SimBs_pt, &b_SimBs_pt);
688 fChain->SetBranchAddress("SimBs_eta", SimBs_eta, &b_SimBs_eta);
689 fChain->SetBranchAddress("SimBs_phi", SimBs_phi, &b_SimBs_phi);
690 fChain->SetBranchAddress("SimBs_vtx_x", SimBs_vtx_x, &b_SimBs_vtx_x);
691 fChain->SetBranchAddress("SimBs_vtx_y", SimBs_vtx_y, &b_SimBs_vtx_y);
692 fChain->SetBranchAddress("SimBs_vtx_z", SimBs_vtx_z, &b_SimBs_vtx_z);
693 fChain->SetBranchAddress("SimBs_pdgId", SimBs_pdgId, &b_SimBs_pdgId);
694 fChain->SetBranchAddress("SimBs_status", SimBs_status, &b_SimBs_status);
695 fChain->SetBranchAddress("SimBsH", &SimBsH_mass, &b_SimBsH);
696 fChain->SetBranchAddress("rho", &rho, &b_rho);
697 fChain->SetBranchAddress("rho25", &rho25, &b_rho25);
698 fChain->SetBranchAddress("nPVs", &nPVs, &b_nPVs);
699 fChain->SetBranchAddress("METnoPU", &METnoPU_et, &b_METnoPU);
700 fChain->SetBranchAddress("METnoPUCh", &METnoPUCh_et, &b_METnoPUCh);
701 fChain->SetBranchAddress("MET", &MET_et, &b_MET);
702 fChain->SetBranchAddress("fakeMET", &fakeMET_et, &b_fakeMET);
703 fChain->SetBranchAddress("MHT", &MHT_mht, &b_MHT);
704 fChain->SetBranchAddress("minDeltaPhijetMET", &minDeltaPhijetMET, &b_minDeltaPhijetMET);
705 fChain->SetBranchAddress("jetPt_minDeltaPhijetMET", &jetPt_minDeltaPhijetMET, &b_jetPt_minDeltaPhijetMET);
706 fChain->SetBranchAddress("triggerFlags", triggerFlags, &b_triggerFlags);
707 fChain->SetBranchAddress("EVENT", &EVENT_run, &b_EVENT);
708 fChain->SetBranchAddress("hbhe", &hbhe, &b_hbhe);
709 fChain->SetBranchAddress("totalKinematics", &totalKinematics, &b_totalKinematics);
710 fChain->SetBranchAddress("ecalFlag", &ecalFlag, &b_ecalFlag);
711 fChain->SetBranchAddress("btag1TSF", &btag1TSF, &b_btag1TSF);
712 fChain->SetBranchAddress("btag2TSF", &btag2TSF, &b_btag2TSF);
713 fChain->SetBranchAddress("btag1T2CSF", &btag1T2CSF, &b_btag1T2CSF);
714 fChain->SetBranchAddress("btag2CSF", &btag2CSF, &b_btag2CSF);
715 fChain->SetBranchAddress("btagA0CSF", &btagA0CSF, &b_btagA0CSF);
716 fChain->SetBranchAddress("btagA0TSF", &btagA0TSF, &b_btagA0TSF);
717 fChain->SetBranchAddress("btag1TA1C", &btag1TA1C, &b_btag1TA1C);
718 Notify();
719 }
720
721 Bool_t ntupleLoader::Notify()
722 {
723 // The Notify() function is called when a new file is opened. This
724 // can be either for a new TTree in a TChain or when when a new TTree
725 // is started when using PROOF. It is normally not necessary to make changes
726 // to the generated code, but the routine can be extended by the
727 // user if needed. The return value is currently not used.
728
729 return kTRUE;
730 }
731
732 void ntupleLoader::Show(Long64_t entry)
733 {
734 // Print contents of entry.
735 // If entry is not specified, print current entry
736 if (!fChain) return;
737 fChain->Show(entry);
738 }
739 Int_t ntupleLoader::Cut(Long64_t entry)
740 {
741 // This function may be called from Loop.
742 // returns 1 if entry is accepted.
743 // returns -1 otherwise.
744 return 1;
745 }
746
747 void ntupleLoader::Loop()
748 {
749 if (fChain == 0) return;
750
751 Long64_t nentries = fChain->GetEntriesFast();
752
753 Long64_t nbytes = 0, nb = 0;
754 for (Long64_t jentry=0; jentry<nentries;jentry++) {
755 Long64_t ientry = LoadTree(jentry);
756 if (ientry < 0) break;
757 nb = fChain->GetEntry(jentry); nbytes += nb;
758 // if (Cut(ientry) < 0) continue;
759 }
760 }
761 #endif // #ifdef ntupleLoader_cxx
762