ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/interface/ntupleLoader.hpp
Revision: 1.5
Committed: Thu Oct 4 09:50:06 2012 UTC (12 years, 7 months ago) by bortigno
Branch: MAIN
CVS Tags: hcpPreApp
Changes since 1.4: +1 -1 lines
Log Message:
fix BTagReshape path

File Contents

# User Rev Content
1 bortigno 1.1 //////////////////////////////////////////////////////////
2     // This class has been automatically generated on
3 bortigno 1.4 // Thu Jun 14 17:42:52 2012 by ROOT version 5.32/00
4 bortigno 1.1 // from TTree tree/myTree
5 bortigno 1.4 // found on file: ZllH.Jun14.DYJetsToLL_PtZ-70To100_TuneZ2star_8TeV-madgraph-tarball.root
6 bortigno 1.1 //////////////////////////////////////////////////////////
7    
8 bortigno 1.2 #ifndef ntupleLoader_hpp
9     #define ntupleLoader_hpp
10 bortigno 1.1
11     #include <TROOT.h>
12     #include <TChain.h>
13     #include <TFile.h>
14 bortigno 1.5 #include "BTagReshaping.h"
15 bortigno 1.1
16     class ntupleLoader {
17     public :
18     TTree * tree;
19 bortigno 1.4
20     BTagShapeInterface reshape;
21     BTagShapeInterface reshape_bTagUp;
22     BTagShapeInterface reshape_bTagDown;
23     BTagShapeInterface reshape_misTagUp;
24     BTagShapeInterface reshape_misTagDown;
25    
26 bortigno 1.1 TTree *fChain; //!pointer to the analyzed TTree or TChain
27     Int_t fCurrent; //!current Tree number in a TChain
28    
29 bortigno 1.4
30 bortigno 1.1 // Declaration of leaf types
31 bortigno 1.2 Int_t H_HiggsFlag;
32 bortigno 1.1 Float_t H_mass;
33     Float_t H_pt;
34     Float_t H_eta;
35     Float_t H_phi;
36     Float_t H_dR;
37     Float_t H_dPhi;
38     Float_t H_dEta;
39     Float_t V_mass;
40     Float_t V_pt;
41     Float_t V_eta;
42     Float_t V_phi;
43 bortigno 1.2 Int_t FatH_FatHiggsFlag;
44     Float_t FatH_mass;
45     Float_t FatH_pt;
46     Float_t FatH_eta;
47     Float_t FatH_phi;
48     Float_t FatH_filteredmass;
49     Float_t FatH_filteredpt;
50     Float_t FatH_filteredeta;
51     Float_t FatH_filteredphi;
52     Float_t lheV_pt;
53 bortigno 1.4 Float_t lheHT;
54     Float_t lheNj;
55 bortigno 1.2 Float_t genZ_mass;
56     Float_t genZ_pt;
57     Float_t genZ_eta;
58     Float_t genZ_phi;
59     Float_t genZ_status;
60     Float_t genZ_charge;
61     Float_t genZ_momid;
62     Float_t genZstar_mass;
63     Float_t genZstar_pt;
64     Float_t genZstar_eta;
65     Float_t genZstar_phi;
66     Float_t genZstar_status;
67     Float_t genZstar_charge;
68     Float_t genZstar_momid;
69     Float_t genW_mass;
70     Float_t genW_pt;
71     Float_t genW_eta;
72     Float_t genW_phi;
73     Float_t genW_status;
74     Float_t genW_charge;
75     Float_t genW_momid;
76     Float_t genWstar_mass;
77     Float_t genWstar_pt;
78     Float_t genWstar_eta;
79     Float_t genWstar_phi;
80     Float_t genWstar_status;
81     Float_t genWstar_charge;
82     Float_t genWstar_momid;
83     Float_t genH_mass;
84     Float_t genH_pt;
85     Float_t genH_eta;
86     Float_t genH_phi;
87     Float_t genH_status;
88     Float_t genH_charge;
89     Float_t genH_momid;
90     Float_t genB_mass;
91     Float_t genB_pt;
92     Float_t genB_eta;
93     Float_t genB_phi;
94     Float_t genB_status;
95     Float_t genB_charge;
96     Float_t genB_momid;
97     Float_t genBbar_mass;
98     Float_t genBbar_pt;
99     Float_t genBbar_eta;
100     Float_t genBbar_phi;
101     Float_t genBbar_status;
102     Float_t genBbar_charge;
103     Float_t genBbar_momid;
104     Float_t genTop_bmass;
105     Float_t genTop_bpt;
106     Float_t genTop_beta;
107     Float_t genTop_bphi;
108     Float_t genTop_bstatus;
109     Float_t genTop_wdau1mass;
110     Float_t genTop_wdau1pt;
111     Float_t genTop_wdau1eta;
112     Float_t genTop_wdau1phi;
113     Float_t genTop_wdau1id;
114     Float_t genTop_wdau2mass;
115     Float_t genTop_wdau2pt;
116     Float_t genTop_wdau2eta;
117     Float_t genTop_wdau2phi;
118     Float_t genTop_wdau2id;
119     Float_t genTbar_bmass;
120     Float_t genTbar_bpt;
121     Float_t genTbar_beta;
122     Float_t genTbar_bphi;
123     Float_t genTbar_bstatus;
124     Float_t genTbar_wdau1mass;
125     Float_t genTbar_wdau1pt;
126     Float_t genTbar_wdau1eta;
127     Float_t genTbar_wdau1phi;
128     Float_t genTbar_wdau1id;
129     Float_t genTbar_wdau2mass;
130     Float_t genTbar_wdau2pt;
131     Float_t genTbar_wdau2eta;
132     Float_t genTbar_wdau2phi;
133     Float_t genTbar_wdau2id;
134     UChar_t TkSharing_HiggsCSVtkSharing;
135     UChar_t TkSharing_HiggsIPtkSharing;
136     UChar_t TkSharing_HiggsSVtkSharing;
137     UChar_t TkSharing_FatHiggsCSVtkSharing;
138     UChar_t TkSharing_FatHiggsIPtkSharing;
139     UChar_t TkSharing_FatHiggsSVtkSharing;
140 bortigno 1.1 Int_t nhJets;
141 bortigno 1.2 Int_t nfathFilterJets;
142 bortigno 1.1 Int_t naJets;
143     Float_t hJet_pt[2]; //[nhJets]
144     Float_t hJet_eta[2]; //[nhJets]
145     Float_t hJet_phi[2]; //[nhJets]
146     Float_t hJet_e[2]; //[nhJets]
147     Float_t hJet_csv[2]; //[nhJets]
148 bortigno 1.4 Float_t hJet_csv_nominal[2]; //[nhJets]
149     Float_t hJet_csv_upBC[2]; //[nhJets]
150     Float_t hJet_csv_downBC[2]; //[nhJets]
151     Float_t hJet_csv_upL[2]; //[nhJets]
152     Float_t hJet_csv_downL[2]; //[nhJets]
153 bortigno 1.2 Float_t hJet_csvivf[2]; //[nhJets]
154     Float_t hJet_cmva[2]; //[nhJets]
155 bortigno 1.1 Float_t hJet_cosTheta[2]; //[nhJets]
156     Int_t hJet_numTracksSV[2]; //[nhJets]
157     Float_t hJet_chf[2]; //[nhJets]
158     Float_t hJet_nhf[2]; //[nhJets]
159     Float_t hJet_cef[2]; //[nhJets]
160     Float_t hJet_nef[2]; //[nhJets]
161     Float_t hJet_nch[2]; //[nhJets]
162     Float_t hJet_nconstituents[2]; //[nhJets]
163     Float_t hJet_flavour[2]; //[nhJets]
164 bortigno 1.2 Int_t hJet_isSemiLept[2]; //[nhJets]
165     Int_t hJet_isSemiLeptMCtruth[2]; //[nhJets]
166     Int_t hJet_SoftLeptpdgId[2]; //[nhJets]
167     Int_t hJet_SoftLeptIdlooseMu[2]; //[nhJets]
168     Int_t hJet_SoftLeptId95[2]; //[nhJets]
169     Float_t hJet_SoftLeptPt[2]; //[nhJets]
170     Float_t hJet_SoftLeptdR[2]; //[nhJets]
171     Float_t hJet_SoftLeptptRel[2]; //[nhJets]
172     Float_t hJet_SoftLeptRelCombIso[2]; //[nhJets]
173 bortigno 1.1 Float_t hJet_genPt[2]; //[nhJets]
174     Float_t hJet_genEta[2]; //[nhJets]
175     Float_t hJet_genPhi[2]; //[nhJets]
176     Float_t hJet_JECUnc[2]; //[nhJets]
177     Float_t hJet_vtxMass[2]; //[nhJets]
178 bortigno 1.2 Float_t hJet_vtxPt[2]; //[nhJets]
179     Float_t hJet_vtxEta[2]; //[nhJets]
180     Float_t hJet_vtxPhi[2]; //[nhJets]
181     Float_t hJet_vtxE[2]; //[nhJets]
182 bortigno 1.1 Float_t hJet_vtx3dL[2]; //[nhJets]
183     Float_t hJet_vtx3deL[2]; //[nhJets]
184     UChar_t hJet_id[2]; //[nhJets]
185     UChar_t hJet_SF_CSVL[2]; //[nhJets]
186     UChar_t hJet_SF_CSVM[2]; //[nhJets]
187     UChar_t hJet_SF_CSVT[2]; //[nhJets]
188     UChar_t hJet_SF_CSVLerr[2]; //[nhJets]
189     UChar_t hJet_SF_CSVMerr[2]; //[nhJets]
190     UChar_t hJet_SF_CSVTerr[2]; //[nhJets]
191 bortigno 1.2 Float_t hJet_ptRaw[2]; //[nhJets]
192     Float_t hJet_ptLeadTrack[2]; //[nhJets]
193 bortigno 1.3 Float_t hJet_puJetIdL[2]; //[nhJets]
194     Float_t hJet_puJetIdM[2]; //[nhJets]
195     Float_t hJet_puJetIdT[2]; //[nhJets]
196     Float_t hJet_puJetIdMva[2]; //[nhJets]
197 bortigno 1.2 Float_t fathFilterJets_pt[3]; //[nfathFilterJets]
198     Float_t fathFilterJets_eta[3]; //[nfathFilterJets]
199     Float_t fathFilterJets_phi[3]; //[nfathFilterJets]
200     Float_t fathFilterJets_e[3]; //[nfathFilterJets]
201     Float_t fathFilterJets_csv[3]; //[nfathFilterJets]
202     Float_t fathFilterJets_chf[3]; //[nfathFilterJets]
203     Float_t fathFilterJets_ptRaw[3]; //[nfathFilterJets]
204     Float_t fathFilterJets_ptLeadTrack[3]; //[nfathFilterJets]
205     Float_t fathFilterJets_flavour[3]; //[nfathFilterJets]
206     Float_t fathFilterJets_isSemiLept[3]; //[nfathFilterJets]
207     Float_t fathFilterJets_isSemiLeptMCtruth[3]; //[nfathFilterJets]
208     Float_t fathFilterJets_genPt[3]; //[nfathFilterJets]
209     Float_t fathFilterJets_genEta[3]; //[nfathFilterJets]
210     Float_t fathFilterJets_genPhi[3]; //[nfathFilterJets]
211     Float_t fathFilterJets_vtxMass[3]; //[nfathFilterJets]
212     Float_t fathFilterJets_vtx3dL[3]; //[nfathFilterJets]
213     Float_t fathFilterJets_vtx3deL[3]; //[nfathFilterJets]
214     Float_t fathFilterJets_vtxPt[3]; //[nfathFilterJets]
215     Float_t fathFilterJets_vtxEta[3]; //[nfathFilterJets]
216     Float_t fathFilterJets_vtxPhi[3]; //[nfathFilterJets]
217     Float_t fathFilterJets_vtxE[3]; //[nfathFilterJets]
218     Float_t fathFilterJets_csvivf[3]; //[nfathFilterJets]
219     Float_t fathFilterJets_cmva[3]; //[nfathFilterJets]
220 bortigno 1.3 Float_t fathFilterJets_AnglePVtoSVmom[3]; //!
221     Float_t fathFilterJets_AnglePVtoJetmom[3]; //!
222 bortigno 1.4 Float_t aJet_pt[19]; //[naJets]
223     Float_t aJet_eta[19]; //[naJets]
224     Float_t aJet_phi[19]; //[naJets]
225     Float_t aJet_e[19]; //[naJets]
226     Float_t aJet_csv[19]; //[naJets]
227     Float_t aJet_csv_nominal[19]; //[naJets]
228     Float_t aJet_csv_upBC[19]; //[naJets]
229     Float_t aJet_csv_downBC[19]; //[naJets]
230     Float_t aJet_csv_upL[19]; //[naJets]
231     Float_t aJet_csv_downL[19]; //[naJets]
232     Float_t aJet_csvivf[19]; //[naJets]
233     Float_t aJet_cmva[19]; //[naJets]
234     Float_t aJet_cosTheta[19]; //[naJets]
235     Int_t aJet_numTracksSV[19]; //[naJets]
236     Float_t aJet_chf[19]; //[naJets]
237     Float_t aJet_nhf[19]; //[naJets]
238     Float_t aJet_cef[19]; //[naJets]
239     Float_t aJet_nef[19]; //[naJets]
240     Float_t aJet_nch[19]; //[naJets]
241     Float_t aJet_nconstituents[19]; //[naJets]
242     Float_t aJet_flavour[19]; //[naJets]
243     Int_t aJet_isSemiLept[19]; //[naJets]
244     Int_t aJet_isSemiLeptMCtruth[19]; //[naJets]
245     Int_t aJet_SoftLeptpdgId[19]; //[naJets]
246     Int_t aJet_SoftLeptIdlooseMu[19]; //[naJets]
247     Int_t aJet_SoftLeptId95[19]; //[naJets]
248     Float_t aJet_SoftLeptPt[19]; //[naJets]
249     Float_t aJet_SoftLeptdR[19]; //[naJets]
250     Float_t aJet_SoftLeptptRel[19]; //[naJets]
251     Float_t aJet_SoftLeptRelCombIso[19]; //[naJets]
252     Float_t aJet_puJetIdL[19]; //[naJets]
253     Float_t aJet_puJetIdM[19]; //[naJets]
254     Float_t aJet_puJetIdT[19]; //[naJets]
255     Float_t aJet_puJetIdMva[19]; //[naJets]
256     Float_t aJet_genPt[19]; //[naJets]
257     Float_t aJet_genEta[19]; //[naJets]
258     Float_t aJet_genPhi[19]; //[naJets]
259     Float_t aJet_JECUnc[19]; //[naJets]
260     Float_t aJet_vtxMass[19]; //[naJets]
261     Float_t aJet_vtx3dL[19]; //[naJets]
262     Float_t aJet_vtx3deL[19]; //[naJets]
263     UChar_t aJet_id[19]; //[naJets]
264     UChar_t aJet_SF_CSVL[19]; //[naJets]
265     UChar_t aJet_SF_CSVM[19]; //[naJets]
266     UChar_t aJet_SF_CSVT[19]; //[naJets]
267     UChar_t aJet_SF_CSVLerr[19]; //[naJets]
268     UChar_t aJet_SF_CSVMerr[19]; //[naJets]
269     UChar_t aJet_SF_CSVTerr[19]; //[naJets]
270 bortigno 1.2 Int_t naJetsFat;
271 bortigno 1.4 Float_t aJetFat_pt[16]; //[naJetsFat]
272     Float_t aJetFat_eta[16]; //[naJetsFat]
273     Float_t aJetFat_phi[16]; //[naJetsFat]
274     Float_t aJetFat_e[16]; //[naJetsFat]
275     Float_t aJetFat_csv[16]; //[naJetsFat]
276 bortigno 1.1 Int_t numJets;
277     Int_t numBJets;
278     Float_t deltaPullAngle;
279     Float_t deltaPullAngle2;
280     Float_t gendrcc;
281     Float_t gendrbb;
282     Float_t genZpt;
283     Float_t genWpt;
284 bortigno 1.2 Float_t genHpt;
285 bortigno 1.3 Float_t lheWeight;
286 bortigno 1.1 Float_t weightTrig;
287     Float_t weightTrigMay;
288     Float_t weightTrigV4;
289     Float_t weightTrigMET;
290     Float_t weightTrigOrMu30;
291     Float_t weightEleRecoAndId;
292     Float_t weightEleTrigJetMETPart;
293     Float_t weightEleTrigElePart;
294     Float_t weightEleTrigEleAugPart;
295     Float_t weightTrigMET80;
296     Float_t weightTrigMET100;
297     Float_t weightTrig2CJet20;
298     Float_t weightTrigMET150;
299     Float_t weightTrigMET802CJet;
300     Float_t weightTrigMET1002CJet;
301     Float_t weightTrigMETLP;
302 bortigno 1.3 Float_t weightTrig2012A;
303     Float_t weightTrig2012ADiMuon;
304     Float_t weightTrig2012ADiEle;
305     Float_t weightTrig2012ASingleMuon;
306     Float_t weightTrig2012ASingleEle;
307     Float_t weightTrig2012AMuonPlusWCandPt;
308 bortigno 1.4 Float_t weightTrig2012DiJet30MHT80;
309     Float_t weightTrig2012PFMET150;
310     Float_t weightTrig2012SumpT100MET100;
311 bortigno 1.1 Float_t deltaPullAngleAK7;
312     Float_t deltaPullAngle2AK7;
313     Float_t PU0;
314     Float_t PUm1;
315     Float_t PUp1;
316     Float_t PUweight;
317     Float_t PUweight2011B;
318 bortigno 1.3 Float_t PUweight1DObs;
319 bortigno 1.1 Int_t eventFlav;
320     Int_t Vtype;
321     Float_t HVdPhi;
322     Float_t HVMass;
323     Float_t HMETdPhi;
324     Float_t VMt;
325     Int_t nvlep;
326     Int_t nalep;
327     Float_t vLepton_mass[2]; //[nvlep]
328     Float_t vLepton_pt[2]; //[nvlep]
329     Float_t vLepton_eta[2]; //[nvlep]
330     Float_t vLepton_phi[2]; //[nvlep]
331     Float_t vLepton_aodCombRelIso[2]; //[nvlep]
332     Float_t vLepton_pfCombRelIso[2]; //[nvlep]
333     Float_t vLepton_photonIso[2]; //[nvlep]
334     Float_t vLepton_neutralHadIso[2]; //[nvlep]
335     Float_t vLepton_chargedHadIso[2]; //[nvlep]
336     Float_t vLepton_chargedPUIso[2]; //[nvlep]
337     Float_t vLepton_particleIso[2]; //[nvlep]
338     Float_t vLepton_dxy[2]; //[nvlep]
339     Float_t vLepton_dz[2]; //[nvlep]
340     Int_t vLepton_type[2]; //[nvlep]
341     Float_t vLepton_id80[2]; //[nvlep]
342     Float_t vLepton_id95[2]; //[nvlep]
343     Float_t vLepton_vbtf[2]; //[nvlep]
344     Float_t vLepton_id80NoIso[2]; //[nvlep]
345     Float_t vLepton_genPt[2]; //[nvlep]
346     Float_t vLepton_genEta[2]; //[nvlep]
347     Float_t vLepton_genPhi[2]; //[nvlep]
348 bortigno 1.2 Float_t vLepton_charge[2]; //[nvlep]
349 bortigno 1.3 Float_t vLepton_pfCorrIso[2]; //[nvlep]
350     Float_t vLepton_id2012tight[2]; //[nvlep]
351     Float_t vLepton_idMVAnotrig[2]; //[nvlep]
352     Float_t vLepton_idMVAtrig[2]; //[nvlep]
353 bortigno 1.4 Float_t vLepton_idMVApresel[2]; //[nvlep]
354 bortigno 1.3 Float_t vLepton_innerHits[2]; //[nvlep]
355     Float_t vLepton_photonIsoDoubleCount[2]; //[nvlep]
356 bortigno 1.4 Float_t vLepton_wpHWW[2]; //[nvlep]
357 bortigno 1.3 Float_t vLepton_wp95[2]; //[nvlep]
358     Float_t vLepton_wp90[2]; //[nvlep]
359     Float_t vLepton_wp85[2]; //[nvlep]
360     Float_t vLepton_wp80[2]; //[nvlep]
361     Float_t vLepton_wp70[2]; //[nvlep]
362     Float_t aLepton_mass[55]; //[nalep]
363     Float_t aLepton_pt[55]; //[nalep]
364     Float_t aLepton_eta[55]; //[nalep]
365     Float_t aLepton_phi[55]; //[nalep]
366     Float_t aLepton_aodCombRelIso[55]; //[nalep]
367     Float_t aLepton_pfCombRelIso[55]; //[nalep]
368     Float_t aLepton_photonIso[55]; //[nalep]
369     Float_t aLepton_neutralHadIso[55]; //[nalep]
370     Float_t aLepton_chargedHadIso[55]; //[nalep]
371     Float_t aLepton_chargedPUIso[55]; //[nalep]
372     Float_t aLepton_particleIso[55]; //[nalep]
373     Float_t aLepton_dxy[55]; //[nalep]
374     Float_t aLepton_dz[55]; //[nalep]
375     Int_t aLepton_type[55]; //[nalep]
376     Float_t aLepton_id80[55]; //[nalep]
377     Float_t aLepton_id95[55]; //[nalep]
378     Float_t aLepton_vbtf[55]; //[nalep]
379     Float_t aLepton_id80NoIso[55]; //[nalep]
380     Float_t aLepton_genPt[55]; //[nalep]
381     Float_t aLepton_genEta[55]; //[nalep]
382     Float_t aLepton_genPhi[55]; //[nalep]
383     Float_t aLepton_charge[55]; //[nalep]
384     Float_t aLepton_pfCorrIso[55]; //[nalep]
385     Float_t aLepton_id2012tight[55]; //[nalep]
386     Float_t aLepton_idMVAnotrig[55]; //[nalep]
387     Float_t aLepton_idMVAtrig[55]; //[nalep]
388 bortigno 1.4 Float_t aLepton_idMVApresel[55]; //[nalep]
389 bortigno 1.3 Float_t aLepton_innerHits[55]; //[nalep]
390     Float_t aLepton_photonIsoDoubleCount[55]; //[nalep]
391 bortigno 1.4 Float_t aLepton_wpHWW[55]; //[nalep]
392 bortigno 1.3 Float_t aLepton_wp95[55]; //[nalep]
393     Float_t aLepton_wp90[55]; //[nalep]
394     Float_t aLepton_wp85[55]; //[nalep]
395     Float_t aLepton_wp80[55]; //[nalep]
396     Float_t aLepton_wp70[55]; //[nalep]
397 bortigno 1.1 Float_t top_mass;
398     Float_t top_pt;
399     Float_t top_wMass;
400     Int_t WplusMode;
401     Int_t WminusMode;
402     Int_t nSvs;
403 bortigno 1.3 Float_t Sv_massBCand[4]; //[nSvs]
404     Float_t Sv_massSv[4]; //[nSvs]
405     Float_t Sv_pt[4]; //[nSvs]
406     Float_t Sv_eta[4]; //[nSvs]
407     Float_t Sv_phi[4]; //[nSvs]
408     Float_t Sv_dist3D[4]; //[nSvs]
409     Float_t Sv_dist2D[4]; //[nSvs]
410     Float_t Sv_distSim2D[4]; //[nSvs]
411     Float_t Sv_distSig3D[4]; //[nSvs]
412     Float_t Sv_dist3D_norm[4]; //[nSvs]
413 bortigno 1.1 Float_t SVH_mass;
414     Float_t SVH_pt;
415     Float_t SVH_eta;
416     Float_t SVH_phi;
417     Float_t SVH_dR;
418     Float_t SVH_dPhi;
419     Float_t SVH_dEta;
420     Int_t nSimBs;
421     Float_t SimBs_mass[8]; //[nSimBs]
422     Float_t SimBs_pt[8]; //[nSimBs]
423     Float_t SimBs_eta[8]; //[nSimBs]
424     Float_t SimBs_phi[8]; //[nSimBs]
425     Float_t SimBs_vtx_x[8]; //[nSimBs]
426     Float_t SimBs_vtx_y[8]; //[nSimBs]
427     Float_t SimBs_vtx_z[8]; //[nSimBs]
428     Float_t SimBs_pdgId[8]; //[nSimBs]
429     Float_t SimBs_status[8]; //[nSimBs]
430     Float_t SimBsH_mass;
431     Float_t SimBsH_pt;
432     Float_t SimBsH_eta;
433     Float_t SimBsH_phi;
434     Float_t SimBsH_dR;
435     Float_t SimBsH_dPhi;
436     Float_t SimBsH_dEta;
437     Float_t rho;
438     Float_t rho25;
439 bortigno 1.3 Float_t rhoN;
440 bortigno 1.1 Int_t nPVs;
441     Float_t METnoPU_et;
442     Float_t METnoPU_sumet;
443     Float_t METnoPU_sig;
444     Float_t METnoPU_phi;
445     Float_t METnoPUCh_et;
446     Float_t METnoPUCh_sumet;
447     Float_t METnoPUCh_sig;
448     Float_t METnoPUCh_phi;
449     Float_t MET_et;
450     Float_t MET_sumet;
451     Float_t MET_sig;
452     Float_t MET_phi;
453 bortigno 1.2 Float_t METtype1corr_et;
454     Float_t METtype1corr_sumet;
455     Float_t METtype1corr_sig;
456     Float_t METtype1corr_phi;
457     Float_t METtype1p2corr_et;
458     Float_t METtype1p2corr_sumet;
459     Float_t METtype1p2corr_sig;
460     Float_t METtype1p2corr_phi;
461     Float_t METnoPUtype1corr_et;
462     Float_t METnoPUtype1corr_sumet;
463     Float_t METnoPUtype1corr_sig;
464     Float_t METnoPUtype1corr_phi;
465     Float_t METnoPUtype1p2corr_et;
466     Float_t METnoPUtype1p2corr_sumet;
467     Float_t METnoPUtype1p2corr_sig;
468     Float_t METnoPUtype1p2corr_phi;
469     Float_t metUnc_et[24];
470     Float_t metUnc_phi[24];
471     Float_t metUnc_sumet[24];
472 bortigno 1.1 Float_t fakeMET_et;
473     Float_t fakeMET_sumet;
474     Float_t fakeMET_sig;
475     Float_t fakeMET_phi;
476     Float_t MHT_mht;
477     Float_t MHT_ht;
478     Float_t MHT_sig;
479     Float_t MHT_phi;
480     Float_t minDeltaPhijetMET;
481     Float_t jetPt_minDeltaPhijetMET;
482 bortigno 1.4 UChar_t triggerFlags[50];
483 bortigno 1.1 Int_t EVENT_run;
484     Int_t EVENT_lumi;
485     Int_t EVENT_event;
486     Int_t EVENT_json;
487     UChar_t hbhe;
488     UChar_t totalKinematics;
489     UChar_t ecalFlag;
490 bortigno 1.2 UChar_t cschaloFlag;
491     UChar_t hcallaserFlag;
492     UChar_t trackingfailureFlag;
493 bortigno 1.1 Float_t btag1TSF;
494     Float_t btag2TSF;
495     Float_t btag1T2CSF;
496     Float_t btag2CSF;
497     Float_t btagA0CSF;
498     Float_t btagA0TSF;
499     Float_t btag1TA1C;
500 bortigno 1.2 Float_t PUweight2011BUp;
501     Float_t PUweight2011BDown;
502     Float_t hJet_csvOld[2]; //[nhJets]
503     Float_t hJet_csvDown[2]; //[nhJets]
504     Float_t hJet_csvUp[2]; //[nhJets]
505     Float_t hJet_csvFDown[2]; //[nhJets]
506     Float_t hJet_csvFUp[2]; //[nhJets]
507     Float_t weightTrig_up;
508     Float_t weightTrigMay_up;
509     Float_t weightTrigV4_up;
510     Float_t weightTrigMET_up;
511     Float_t weightTrigOrMu30_up;
512     Float_t weightEleRecoAndId_up;
513     Float_t weightEleTrigJetMETPart_up;
514     Float_t weightEleTrigElePart_up;
515 bortigno 1.1
516     // List of branches
517     TBranch *b_H; //!
518     TBranch *b_V; //!
519 bortigno 1.2 TBranch *b_FatH; //!
520     TBranch *b_lheV_pt; //!
521 bortigno 1.4 TBranch *b_lheHT; //!
522     TBranch *b_lheNj; //!
523 bortigno 1.2 TBranch *b_genZ; //!
524     TBranch *b_genZstar; //!
525     TBranch *b_genW; //!
526     TBranch *b_genWstar; //!
527     TBranch *b_genH; //!
528     TBranch *b_genB; //!
529     TBranch *b_genBbar; //!
530     TBranch *b_genTop; //!
531     TBranch *b_genTbar; //!
532     TBranch *b_TkSharing; //!
533 bortigno 1.1 TBranch *b_nhJets; //!
534 bortigno 1.2 TBranch *b_nfathFilterJets; //!
535 bortigno 1.1 TBranch *b_naJets; //!
536     TBranch *b_hJet_pt; //!
537     TBranch *b_hJet_eta; //!
538     TBranch *b_hJet_phi; //!
539     TBranch *b_hJet_e; //!
540     TBranch *b_hJet_csv; //!
541 bortigno 1.4 TBranch *b_hJet_csv_nominal; //!
542     TBranch *b_hJet_csv_upBC; //!
543     TBranch *b_hJet_csv_downBC; //!
544     TBranch *b_hJet_csv_upL; //!
545     TBranch *b_hJet_csv_downL; //!
546 bortigno 1.2 TBranch *b_hJet_csvivf; //!
547     TBranch *b_hJet_cmva; //!
548 bortigno 1.1 TBranch *b_hJet_cosTheta; //!
549     TBranch *b_hJet_numTracksSV; //!
550     TBranch *b_hJet_chf; //!
551     TBranch *b_hJet_nhf; //!
552     TBranch *b_hJet_cef; //!
553     TBranch *b_hJet_nef; //!
554     TBranch *b_hJet_nch; //!
555     TBranch *b_hJet_nconstituents; //!
556     TBranch *b_hJet_flavour; //!
557 bortigno 1.2 TBranch *b_hJet_isSemiLept; //!
558     TBranch *b_hJet_isSemiLeptMCtruth; //!
559     TBranch *b_hJet_SoftLeptpdgId; //!
560     TBranch *b_hJet_SoftLeptIdlooseMu; //!
561     TBranch *b_hJet_SoftLeptId95; //!
562     TBranch *b_hJet_SoftLeptPt; //!
563     TBranch *b_hJet_SoftLeptdR; //!
564     TBranch *b_hJet_SoftLeptptRel; //!
565     TBranch *b_hJet_SoftLeptRelCombIso; //!
566 bortigno 1.1 TBranch *b_hJet_genPt; //!
567     TBranch *b_hJet_genEta; //!
568     TBranch *b_hJet_genPhi; //!
569     TBranch *b_hJet_JECUnc; //!
570     TBranch *b_hJet_vtxMass; //!
571 bortigno 1.2 TBranch *b_hJet_vtxPt; //!
572     TBranch *b_hJet_vtxEta; //!
573     TBranch *b_hJet_vtxPhi; //!
574     TBranch *b_hJet_vtxE; //!
575 bortigno 1.1 TBranch *b_hJet_vtx3dL; //!
576     TBranch *b_hJet_vtx3deL; //!
577     TBranch *b_hJet_id; //!
578     TBranch *b_hJet_SF_CSVL; //!
579     TBranch *b_hJet_SF_CSVM; //!
580     TBranch *b_hJet_SF_CSVT; //!
581     TBranch *b_hJet_SF_CSVLerr; //!
582     TBranch *b_hJet_SF_CSVMerr; //!
583     TBranch *b_hJet_SF_CSVTerr; //!
584 bortigno 1.2 TBranch *b_hJet_ptRaw; //!
585     TBranch *b_hJet_ptLeadTrack; //!
586 bortigno 1.3 TBranch *b_hJet_puJetIdL; //!
587     TBranch *b_hJet_puJetIdM; //!
588     TBranch *b_hJet_puJetIdT; //!
589     TBranch *b_hJet_puJetIdMva; //!
590 bortigno 1.2 TBranch *b_fathFilterJets_pt; //!
591     TBranch *b_fathFilterJets_eta; //!
592     TBranch *b_fathFilterJets_phi; //!
593     TBranch *b_fathFilterJets_e; //!
594     TBranch *b_fathFilterJets_csv; //!
595     TBranch *b_fathFilterJets_chf; //!
596     TBranch *b_fathFilterJets_ptRaw; //!
597     TBranch *b_fathFilterJets_ptLeadTrack; //!
598     TBranch *b_fathFilterJets_flavour; //!
599     TBranch *b_fathFilterJets_isSemiLept; //!
600     TBranch *b_fathFilterJets_isSemiLeptMCtruth; //!
601     TBranch *b_fathFilterJets_genPt; //!
602     TBranch *b_fathFilterJets_genEta; //!
603     TBranch *b_fathFilterJets_genPhi; //!
604     TBranch *b_fathFilterJets_vtxMass; //!
605     TBranch *b_fathFilterJets_vtx3dL; //!
606     TBranch *b_fathFilterJets_vtx3deL; //!
607     TBranch *b_fathFilterJets_vtxPt; //!
608     TBranch *b_fathFilterJets_vtxEta; //!
609     TBranch *b_fathFilterJets_vtxPhi; //!
610     TBranch *b_fathFilterJets_vtxE; //!
611     TBranch *b_fathFilterJets_AnglePVtoSVmom; //!
612     TBranch *b_fathFilterJets_AnglePVtoJetmom; //!
613     TBranch *b_fathFilterJets_csvivf; //!
614     TBranch *b_fathFilterJets_cmva; //!
615 bortigno 1.1 TBranch *b_aJet_pt; //!
616     TBranch *b_aJet_eta; //!
617     TBranch *b_aJet_phi; //!
618     TBranch *b_aJet_e; //!
619     TBranch *b_aJet_csv; //!
620 bortigno 1.4 TBranch *b_aJet_csv_nominal; //!
621     TBranch *b_aJet_csv_upBC; //!
622     TBranch *b_aJet_csv_downBC; //!
623     TBranch *b_aJet_csv_upL; //!
624     TBranch *b_aJet_csv_downL; //!
625 bortigno 1.2 TBranch *b_aJet_csvivf; //!
626     TBranch *b_aJet_cmva; //!
627 bortigno 1.1 TBranch *b_aJet_cosTheta; //!
628     TBranch *b_aJet_numTracksSV; //!
629     TBranch *b_aJet_chf; //!
630     TBranch *b_aJet_nhf; //!
631     TBranch *b_aJet_cef; //!
632     TBranch *b_aJet_nef; //!
633     TBranch *b_aJet_nch; //!
634     TBranch *b_aJet_nconstituents; //!
635     TBranch *b_aJet_flavour; //!
636 bortigno 1.2 TBranch *b_aJet_isSemiLept; //!
637     TBranch *b_aJet_isSemiLeptMCtruth; //!
638     TBranch *b_aJet_SoftLeptpdgId; //!
639     TBranch *b_aJet_SoftLeptIdlooseMu; //!
640     TBranch *b_aJet_SoftLeptId95; //!
641     TBranch *b_aJet_SoftLeptPt; //!
642     TBranch *b_aJet_SoftLeptdR; //!
643     TBranch *b_aJet_SoftLeptptRel; //!
644     TBranch *b_aJet_SoftLeptRelCombIso; //!
645 bortigno 1.3 TBranch *b_aJet_puJetIdL; //!
646     TBranch *b_aJet_puJetIdM; //!
647     TBranch *b_aJet_puJetIdT; //!
648     TBranch *b_aJet_puJetIdMva; //!
649 bortigno 1.1 TBranch *b_aJet_genPt; //!
650     TBranch *b_aJet_genEta; //!
651     TBranch *b_aJet_genPhi; //!
652     TBranch *b_aJet_JECUnc; //!
653     TBranch *b_aJet_vtxMass; //!
654     TBranch *b_aJet_vtx3dL; //!
655     TBranch *b_aJet_vtx3deL; //!
656     TBranch *b_aJet_id; //!
657     TBranch *b_aJet_SF_CSVL; //!
658     TBranch *b_aJet_SF_CSVM; //!
659     TBranch *b_aJet_SF_CSVT; //!
660     TBranch *b_aJet_SF_CSVLerr; //!
661     TBranch *b_aJet_SF_CSVMerr; //!
662     TBranch *b_aJet_SF_CSVTerr; //!
663 bortigno 1.2 TBranch *b_naJetsFat; //!
664     TBranch *b_aJetFat_pt; //!
665     TBranch *b_aJetFat_eta; //!
666     TBranch *b_aJetFat_phi; //!
667     TBranch *b_aJetFat_e; //!
668     TBranch *b_aJetFat_csv; //!
669 bortigno 1.1 TBranch *b_numJets; //!
670     TBranch *b_numBJets; //!
671     TBranch *b_deltaPullAngle; //!
672     TBranch *b_deltaPullAngle2; //!
673     TBranch *b_gendrcc; //!
674     TBranch *b_gendrbb; //!
675     TBranch *b_genZpt; //!
676     TBranch *b_genWpt; //!
677 bortigno 1.2 TBranch *b_genHpt; //!
678 bortigno 1.3 TBranch *b_lheWeight; //!
679 bortigno 1.1 TBranch *b_weightTrig; //!
680     TBranch *b_weightTrigMay; //!
681     TBranch *b_weightTrigV4; //!
682     TBranch *b_weightTrigMET; //!
683     TBranch *b_weightTrigOrMu30; //!
684     TBranch *b_weightEleRecoAndId; //!
685     TBranch *b_weightEleTrigJetMETPart; //!
686     TBranch *b_weightEleTrigElePart; //!
687     TBranch *b_weightEleTrigEleAugPart; //!
688     TBranch *b_weightTrigMET80; //!
689     TBranch *b_weightTrigMET100; //!
690     TBranch *b_weightTrig2CJet20; //!
691     TBranch *b_weightTrigMET150; //!
692     TBranch *b_weightTrigMET802CJet; //!
693     TBranch *b_weightTrigMET1002CJet; //!
694     TBranch *b_weightTrigMETLP; //!
695 bortigno 1.3 TBranch *b_weightTrig2012A; //!
696     TBranch *b_weightTrig2012ADiMuon; //!
697     TBranch *b_weightTrig2012ADiEle; //!
698     TBranch *b_weightTrig2012ASingleMuon; //!
699     TBranch *b_weightTrig2012ASingleEle; //!
700     TBranch *b_weightTrig2012AMuonPlusWCandPt; //!
701 bortigno 1.4 TBranch *b_weightTrig2012DiJet30MHT80; //!
702     TBranch *b_weightTrig2012PFMET150; //!
703     TBranch *b_weightTrig2012SumpT100MET100; //!
704 bortigno 1.1 TBranch *b_deltaPullAngleAK7; //!
705     TBranch *b_deltaPullAngle2AK7; //!
706     TBranch *b_PU0; //!
707     TBranch *b_PUm1; //!
708     TBranch *b_PUp1; //!
709     TBranch *b_PUweight; //!
710     TBranch *b_PUweight2011B; //!
711 bortigno 1.3 TBranch *b_PUweight1DObs; //!
712 bortigno 1.1 TBranch *b_eventFlav; //!
713     TBranch *b_Vtype; //!
714     TBranch *b_HVdPhi; //!
715     TBranch *b_HVMass; //!
716     TBranch *b_HMETdPhi; //!
717     TBranch *b_VMt; //!
718     TBranch *b_nvlep; //!
719     TBranch *b_nalep; //!
720     TBranch *b_vLepton_mass; //!
721     TBranch *b_vLepton_pt; //!
722     TBranch *b_vLepton_eta; //!
723     TBranch *b_vLepton_phi; //!
724     TBranch *b_vLepton_aodCombRelIso; //!
725     TBranch *b_vLepton_pfCombRelIso; //!
726     TBranch *b_vLepton_photonIso; //!
727     TBranch *b_vLepton_neutralHadIso; //!
728     TBranch *b_vLepton_chargedHadIso; //!
729     TBranch *b_vLepton_chargedPUIso; //!
730     TBranch *b_vLepton_particleIso; //!
731     TBranch *b_vLepton_dxy; //!
732     TBranch *b_vLepton_dz; //!
733     TBranch *b_vLepton_type; //!
734     TBranch *b_vLepton_id80; //!
735     TBranch *b_vLepton_id95; //!
736     TBranch *b_vLepton_vbtf; //!
737     TBranch *b_vLepton_id80NoIso; //!
738     TBranch *b_vLepton_genPt; //!
739     TBranch *b_vLepton_genEta; //!
740     TBranch *b_vLepton_genPhi; //!
741 bortigno 1.2 TBranch *b_vLepton_charge; //!
742 bortigno 1.3 TBranch *b_vLepton_pfCorrIso; //!
743     TBranch *b_vLepton_id2012tight; //!
744     TBranch *b_vLepton_idMVAnotrig; //!
745     TBranch *b_vLepton_idMVAtrig; //!
746 bortigno 1.4 TBranch *b_vLepton_idMVApresel; //!
747 bortigno 1.3 TBranch *b_vLepton_innerHits; //!
748     TBranch *b_vLepton_photonIsoDoubleCount; //!
749 bortigno 1.4 TBranch *b_vLepton_wpHWW; //!
750 bortigno 1.3 TBranch *b_vLepton_wp95; //!
751     TBranch *b_vLepton_wp90; //!
752     TBranch *b_vLepton_wp85; //!
753     TBranch *b_vLepton_wp80; //!
754     TBranch *b_vLepton_wp70; //!
755 bortigno 1.1 TBranch *b_aLepton_mass; //!
756     TBranch *b_aLepton_pt; //!
757     TBranch *b_aLepton_eta; //!
758     TBranch *b_aLepton_phi; //!
759     TBranch *b_aLepton_aodCombRelIso; //!
760     TBranch *b_aLepton_pfCombRelIso; //!
761     TBranch *b_aLepton_photonIso; //!
762     TBranch *b_aLepton_neutralHadIso; //!
763     TBranch *b_aLepton_chargedHadIso; //!
764     TBranch *b_aLepton_chargedPUIso; //!
765     TBranch *b_aLepton_particleIso; //!
766     TBranch *b_aLepton_dxy; //!
767     TBranch *b_aLepton_dz; //!
768     TBranch *b_aLepton_type; //!
769     TBranch *b_aLepton_id80; //!
770     TBranch *b_aLepton_id95; //!
771     TBranch *b_aLepton_vbtf; //!
772     TBranch *b_aLepton_id80NoIso; //!
773     TBranch *b_aLepton_genPt; //!
774     TBranch *b_aLepton_genEta; //!
775     TBranch *b_aLepton_genPhi; //!
776 bortigno 1.2 TBranch *b_aLepton_charge; //!
777 bortigno 1.3 TBranch *b_aLepton_pfCorrIso; //!
778     TBranch *b_aLepton_id2012tight; //!
779     TBranch *b_aLepton_idMVAnotrig; //!
780     TBranch *b_aLepton_idMVAtrig; //!
781 bortigno 1.4 TBranch *b_aLepton_idMVApresel; //!
782 bortigno 1.3 TBranch *b_aLepton_innerHits; //!
783     TBranch *b_aLepton_photonIsoDoubleCount; //!
784 bortigno 1.4 TBranch *b_aLepton_wpHWW; //!
785 bortigno 1.3 TBranch *b_aLepton_wp95; //!
786     TBranch *b_aLepton_wp90; //!
787     TBranch *b_aLepton_wp85; //!
788     TBranch *b_aLepton_wp80; //!
789     TBranch *b_aLepton_wp70; //!
790 bortigno 1.1 TBranch *b_top; //!
791     TBranch *b_WplusMode; //!
792     TBranch *b_WminusMode; //!
793     TBranch *b_nSvs; //!
794     TBranch *b_Sv_massBCand; //!
795     TBranch *b_Sv_massSv; //!
796     TBranch *b_Sv_pt; //!
797     TBranch *b_Sv_eta; //!
798     TBranch *b_Sv_phi; //!
799     TBranch *b_Sv_dist3D; //!
800     TBranch *b_Sv_dist2D; //!
801     TBranch *b_Sv_distSim2D; //!
802     TBranch *b_Sv_distSig3D; //!
803     TBranch *b_Sv_dist3D_norm; //!
804     TBranch *b_SVH; //!
805     TBranch *b_nSimBs; //!
806     TBranch *b_SimBs_mass; //!
807     TBranch *b_SimBs_pt; //!
808     TBranch *b_SimBs_eta; //!
809     TBranch *b_SimBs_phi; //!
810     TBranch *b_SimBs_vtx_x; //!
811     TBranch *b_SimBs_vtx_y; //!
812     TBranch *b_SimBs_vtx_z; //!
813     TBranch *b_SimBs_pdgId; //!
814     TBranch *b_SimBs_status; //!
815     TBranch *b_SimBsH; //!
816     TBranch *b_rho; //!
817     TBranch *b_rho25; //!
818 bortigno 1.3 TBranch *b_rhoN; //!
819 bortigno 1.1 TBranch *b_nPVs; //!
820     TBranch *b_METnoPU; //!
821     TBranch *b_METnoPUCh; //!
822     TBranch *b_MET; //!
823 bortigno 1.2 TBranch *b_METtype1corr; //!
824     TBranch *b_METtype1p2corr; //!
825     TBranch *b_METnoPUtype1corr; //!
826     TBranch *b_METnoPUtype1p2corr; //!
827     TBranch *b_et; //!
828     TBranch *b_phi; //!
829     TBranch *b_sumet; //!
830 bortigno 1.1 TBranch *b_fakeMET; //!
831     TBranch *b_MHT; //!
832     TBranch *b_minDeltaPhijetMET; //!
833     TBranch *b_jetPt_minDeltaPhijetMET; //!
834     TBranch *b_triggerFlags; //!
835     TBranch *b_EVENT; //!
836     TBranch *b_hbhe; //!
837     TBranch *b_totalKinematics; //!
838     TBranch *b_ecalFlag; //!
839 bortigno 1.2 TBranch *b_cschaloFlag; //!
840     TBranch *b_hcallaserFlag; //!
841     TBranch *b_trackingfailureFlag; //!
842 bortigno 1.1 TBranch *b_btag1TSF; //!
843     TBranch *b_btag2TSF; //!
844     TBranch *b_btag1T2CSF; //!
845     TBranch *b_btag2CSF; //!
846     TBranch *b_btagA0CSF; //!
847     TBranch *b_btagA0TSF; //!
848     TBranch *b_btag1TA1C; //!
849 bortigno 1.2 TBranch *b_PUweight2011BUp; //!
850     TBranch *b_PUweight2011BDown; //!
851     TBranch *b_hJet_csvOld; //!
852     TBranch *b_hJet_csvDown; //!
853     TBranch *b_hJet_csvUp; //!
854     TBranch *b_hJet_csvFDown; //!
855     TBranch *b_hJet_csvFUp; //!
856     TBranch *b_weightTrig_up; //!
857     TBranch *b_weightTrigMay_up; //!
858     TBranch *b_weightTrigV4_up; //!
859     TBranch *b_weightTrigMET_up; //!
860     TBranch *b_weightTrigOrMu30_up; //!
861     TBranch *b_weightEleRecoAndId_up; //!
862     TBranch *b_weightEleTrigJetMETPart_up; //!
863     TBranch *b_weightEleTrigElePart_up; //!
864 bortigno 1.1
865 bortigno 1.2 ntupleLoader(const char *infile);
866 bortigno 1.1 virtual ~ntupleLoader();
867     virtual Int_t Cut(Long64_t entry);
868     virtual Int_t GetEntry(Long64_t entry);
869     virtual Long64_t LoadTree(Long64_t entry);
870     virtual void Init(TTree *tree);
871     virtual Bool_t Notify();
872     virtual void Show(Long64_t entry = -1);
873     };
874    
875    
876 bortigno 1.4 ntupleLoader::ntupleLoader(const char * infile):
877     reshape("../data/csvdiscr.root",0,0),
878     reshape_bTagUp("../data/csvdiscr.root",1,0),
879     reshape_bTagDown("../data/csvdiscr.root",-1,0),
880     reshape_misTagUp("../data/csvdiscr.root",0,1),
881     reshape_misTagDown("../data/csvdiscr.root",0,-1)
882 bortigno 1.1 {
883     // if parameter tree is not specified (or zero), connect the file
884     // used to generate this class and read the Tree.
885     tree=0;
886     if (tree == 0) {
887     TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject(infile);
888 bortigno 1.2 if (!f || !f->IsOpen()) {
889     f = new TFile(infile);
890 bortigno 1.1 }
891 bortigno 1.2 f->GetObject("tree",tree);
892 bortigno 1.1
893     }
894     Init(tree);
895 bortigno 1.4
896     // //for the reshaping
897     // BTagShapeInterface btagSh("../data/csvdisc.root",0,0);
898     // sh = btagSh;
899    
900 bortigno 1.1 }
901    
902     ntupleLoader::~ntupleLoader()
903     {
904     if (!fChain) return;
905     delete fChain->GetCurrentFile();
906     }
907    
908     Int_t ntupleLoader::GetEntry(Long64_t entry)
909     {
910     // Read contents of entry.
911     if (!fChain) return 0;
912     return fChain->GetEntry(entry);
913     }
914     Long64_t ntupleLoader::LoadTree(Long64_t entry)
915     {
916     // Set the environment to read one entry
917     if (!fChain) return -5;
918     Long64_t centry = fChain->LoadTree(entry);
919     if (centry < 0) return centry;
920     if (fChain->GetTreeNumber() != fCurrent) {
921     fCurrent = fChain->GetTreeNumber();
922     Notify();
923     }
924     return centry;
925     }
926    
927     void ntupleLoader::Init(TTree *tree)
928     {
929     // The Init() function is called when the selector needs to initialize
930     // a new tree or chain. Typically here the branch addresses and branch
931     // pointers of the tree will be set.
932     // It is normally not necessary to make changes to the generated
933     // code, but the routine can be extended by the user if needed.
934     // Init() will be called many times when running on PROOF
935     // (once per file to be processed).
936    
937     // Set branch addresses and branch pointers
938     if (!tree) return;
939     fChain = tree;
940     fCurrent = -1;
941     fChain->SetMakeClass(1);
942    
943 bortigno 1.2 fChain->SetBranchAddress("H", &H_HiggsFlag, &b_H);
944 bortigno 1.1 fChain->SetBranchAddress("V", &V_mass, &b_V);
945 bortigno 1.2 fChain->SetBranchAddress("FatH", &FatH_FatHiggsFlag, &b_FatH);
946     fChain->SetBranchAddress("lheV_pt", &lheV_pt, &b_lheV_pt);
947 bortigno 1.4 fChain->SetBranchAddress("lheHT", &lheHT, &b_lheHT);
948     fChain->SetBranchAddress("lheNj", &lheNj, &b_lheNj);
949 bortigno 1.2 fChain->SetBranchAddress("genZ", &genZ_mass, &b_genZ);
950     fChain->SetBranchAddress("genZstar", &genZstar_mass, &b_genZstar);
951     fChain->SetBranchAddress("genW", &genW_mass, &b_genW);
952     fChain->SetBranchAddress("genWstar", &genWstar_mass, &b_genWstar);
953     fChain->SetBranchAddress("genH", &genH_mass, &b_genH);
954     fChain->SetBranchAddress("genB", &genB_mass, &b_genB);
955     fChain->SetBranchAddress("genBbar", &genBbar_mass, &b_genBbar);
956     fChain->SetBranchAddress("genTop", &genTop_bmass, &b_genTop);
957     fChain->SetBranchAddress("genTbar", &genTbar_bmass, &b_genTbar);
958     fChain->SetBranchAddress("TkSharing", &TkSharing_HiggsCSVtkSharing, &b_TkSharing);
959 bortigno 1.1 fChain->SetBranchAddress("nhJets", &nhJets, &b_nhJets);
960 bortigno 1.2 fChain->SetBranchAddress("nfathFilterJets", &nfathFilterJets, &b_nfathFilterJets);
961 bortigno 1.1 fChain->SetBranchAddress("naJets", &naJets, &b_naJets);
962     fChain->SetBranchAddress("hJet_pt", hJet_pt, &b_hJet_pt);
963     fChain->SetBranchAddress("hJet_eta", hJet_eta, &b_hJet_eta);
964     fChain->SetBranchAddress("hJet_phi", hJet_phi, &b_hJet_phi);
965     fChain->SetBranchAddress("hJet_e", hJet_e, &b_hJet_e);
966     fChain->SetBranchAddress("hJet_csv", hJet_csv, &b_hJet_csv);
967 bortigno 1.4 fChain->SetBranchAddress("hJet_csv_nominal", hJet_csv_nominal, &b_hJet_csv_nominal);
968     fChain->SetBranchAddress("hJet_csv_upBC", hJet_csv_upBC, &b_hJet_csv_upBC);
969     fChain->SetBranchAddress("hJet_csv_downBC", hJet_csv_downBC, &b_hJet_csv_downBC);
970     fChain->SetBranchAddress("hJet_csv_upL", hJet_csv_upL, &b_hJet_csv_upL);
971     fChain->SetBranchAddress("hJet_csv_downL", hJet_csv_downL, &b_hJet_csv_downL);
972 bortigno 1.2 fChain->SetBranchAddress("hJet_csvivf", hJet_csvivf, &b_hJet_csvivf);
973     fChain->SetBranchAddress("hJet_cmva", hJet_cmva, &b_hJet_cmva);
974 bortigno 1.1 fChain->SetBranchAddress("hJet_cosTheta", hJet_cosTheta, &b_hJet_cosTheta);
975     fChain->SetBranchAddress("hJet_numTracksSV", hJet_numTracksSV, &b_hJet_numTracksSV);
976     fChain->SetBranchAddress("hJet_chf", hJet_chf, &b_hJet_chf);
977     fChain->SetBranchAddress("hJet_nhf", hJet_nhf, &b_hJet_nhf);
978     fChain->SetBranchAddress("hJet_cef", hJet_cef, &b_hJet_cef);
979     fChain->SetBranchAddress("hJet_nef", hJet_nef, &b_hJet_nef);
980     fChain->SetBranchAddress("hJet_nch", hJet_nch, &b_hJet_nch);
981     fChain->SetBranchAddress("hJet_nconstituents", hJet_nconstituents, &b_hJet_nconstituents);
982     fChain->SetBranchAddress("hJet_flavour", hJet_flavour, &b_hJet_flavour);
983 bortigno 1.2 fChain->SetBranchAddress("hJet_isSemiLept", hJet_isSemiLept, &b_hJet_isSemiLept);
984     fChain->SetBranchAddress("hJet_isSemiLeptMCtruth", hJet_isSemiLeptMCtruth, &b_hJet_isSemiLeptMCtruth);
985     fChain->SetBranchAddress("hJet_SoftLeptpdgId", hJet_SoftLeptpdgId, &b_hJet_SoftLeptpdgId);
986     fChain->SetBranchAddress("hJet_SoftLeptIdlooseMu", hJet_SoftLeptIdlooseMu, &b_hJet_SoftLeptIdlooseMu);
987     fChain->SetBranchAddress("hJet_SoftLeptId95", hJet_SoftLeptId95, &b_hJet_SoftLeptId95);
988     fChain->SetBranchAddress("hJet_SoftLeptPt", hJet_SoftLeptPt, &b_hJet_SoftLeptPt);
989     fChain->SetBranchAddress("hJet_SoftLeptdR", hJet_SoftLeptdR, &b_hJet_SoftLeptdR);
990     fChain->SetBranchAddress("hJet_SoftLeptptRel", hJet_SoftLeptptRel, &b_hJet_SoftLeptptRel);
991     fChain->SetBranchAddress("hJet_SoftLeptRelCombIso", hJet_SoftLeptRelCombIso, &b_hJet_SoftLeptRelCombIso);
992 bortigno 1.1 fChain->SetBranchAddress("hJet_genPt", hJet_genPt, &b_hJet_genPt);
993     fChain->SetBranchAddress("hJet_genEta", hJet_genEta, &b_hJet_genEta);
994     fChain->SetBranchAddress("hJet_genPhi", hJet_genPhi, &b_hJet_genPhi);
995     fChain->SetBranchAddress("hJet_JECUnc", hJet_JECUnc, &b_hJet_JECUnc);
996     fChain->SetBranchAddress("hJet_vtxMass", hJet_vtxMass, &b_hJet_vtxMass);
997 bortigno 1.2 fChain->SetBranchAddress("hJet_vtxPt", hJet_vtxPt, &b_hJet_vtxPt);
998     fChain->SetBranchAddress("hJet_vtxEta", hJet_vtxEta, &b_hJet_vtxEta);
999     fChain->SetBranchAddress("hJet_vtxPhi", hJet_vtxPhi, &b_hJet_vtxPhi);
1000     fChain->SetBranchAddress("hJet_vtxE", hJet_vtxE, &b_hJet_vtxE);
1001 bortigno 1.1 fChain->SetBranchAddress("hJet_vtx3dL", hJet_vtx3dL, &b_hJet_vtx3dL);
1002     fChain->SetBranchAddress("hJet_vtx3deL", hJet_vtx3deL, &b_hJet_vtx3deL);
1003     fChain->SetBranchAddress("hJet_id", hJet_id, &b_hJet_id);
1004     fChain->SetBranchAddress("hJet_SF_CSVL", hJet_SF_CSVL, &b_hJet_SF_CSVL);
1005     fChain->SetBranchAddress("hJet_SF_CSVM", hJet_SF_CSVM, &b_hJet_SF_CSVM);
1006     fChain->SetBranchAddress("hJet_SF_CSVT", hJet_SF_CSVT, &b_hJet_SF_CSVT);
1007     fChain->SetBranchAddress("hJet_SF_CSVLerr", hJet_SF_CSVLerr, &b_hJet_SF_CSVLerr);
1008     fChain->SetBranchAddress("hJet_SF_CSVMerr", hJet_SF_CSVMerr, &b_hJet_SF_CSVMerr);
1009     fChain->SetBranchAddress("hJet_SF_CSVTerr", hJet_SF_CSVTerr, &b_hJet_SF_CSVTerr);
1010 bortigno 1.2 fChain->SetBranchAddress("hJet_ptRaw", hJet_ptRaw, &b_hJet_ptRaw);
1011     fChain->SetBranchAddress("hJet_ptLeadTrack", hJet_ptLeadTrack, &b_hJet_ptLeadTrack);
1012 bortigno 1.3 fChain->SetBranchAddress("hJet_puJetIdL", hJet_puJetIdL, &b_hJet_puJetIdL);
1013     fChain->SetBranchAddress("hJet_puJetIdM", hJet_puJetIdM, &b_hJet_puJetIdM);
1014     fChain->SetBranchAddress("hJet_puJetIdT", hJet_puJetIdT, &b_hJet_puJetIdT);
1015     fChain->SetBranchAddress("hJet_puJetIdMva", hJet_puJetIdMva, &b_hJet_puJetIdMva);
1016 bortigno 1.2 fChain->SetBranchAddress("fathFilterJets_pt", fathFilterJets_pt, &b_fathFilterJets_pt);
1017     fChain->SetBranchAddress("fathFilterJets_eta", fathFilterJets_eta, &b_fathFilterJets_eta);
1018     fChain->SetBranchAddress("fathFilterJets_phi", fathFilterJets_phi, &b_fathFilterJets_phi);
1019     fChain->SetBranchAddress("fathFilterJets_e", fathFilterJets_e, &b_fathFilterJets_e);
1020     fChain->SetBranchAddress("fathFilterJets_csv", fathFilterJets_csv, &b_fathFilterJets_csv);
1021     fChain->SetBranchAddress("fathFilterJets_chf", fathFilterJets_chf, &b_fathFilterJets_chf);
1022     fChain->SetBranchAddress("fathFilterJets_ptRaw", fathFilterJets_ptRaw, &b_fathFilterJets_ptRaw);
1023     fChain->SetBranchAddress("fathFilterJets_ptLeadTrack", fathFilterJets_ptLeadTrack, &b_fathFilterJets_ptLeadTrack);
1024     fChain->SetBranchAddress("fathFilterJets_flavour", fathFilterJets_flavour, &b_fathFilterJets_flavour);
1025     fChain->SetBranchAddress("fathFilterJets_isSemiLept", fathFilterJets_isSemiLept, &b_fathFilterJets_isSemiLept);
1026     fChain->SetBranchAddress("fathFilterJets_isSemiLeptMCtruth", fathFilterJets_isSemiLeptMCtruth, &b_fathFilterJets_isSemiLeptMCtruth);
1027     fChain->SetBranchAddress("fathFilterJets_genPt", fathFilterJets_genPt, &b_fathFilterJets_genPt);
1028     fChain->SetBranchAddress("fathFilterJets_genEta", fathFilterJets_genEta, &b_fathFilterJets_genEta);
1029     fChain->SetBranchAddress("fathFilterJets_genPhi", fathFilterJets_genPhi, &b_fathFilterJets_genPhi);
1030     fChain->SetBranchAddress("fathFilterJets_vtxMass", fathFilterJets_vtxMass, &b_fathFilterJets_vtxMass);
1031     fChain->SetBranchAddress("fathFilterJets_vtx3dL", fathFilterJets_vtx3dL, &b_fathFilterJets_vtx3dL);
1032     fChain->SetBranchAddress("fathFilterJets_vtx3deL", fathFilterJets_vtx3deL, &b_fathFilterJets_vtx3deL);
1033     fChain->SetBranchAddress("fathFilterJets_vtxPt", fathFilterJets_vtxPt, &b_fathFilterJets_vtxPt);
1034     fChain->SetBranchAddress("fathFilterJets_vtxEta", fathFilterJets_vtxEta, &b_fathFilterJets_vtxEta);
1035     fChain->SetBranchAddress("fathFilterJets_vtxPhi", fathFilterJets_vtxPhi, &b_fathFilterJets_vtxPhi);
1036     fChain->SetBranchAddress("fathFilterJets_vtxE", fathFilterJets_vtxE, &b_fathFilterJets_vtxE);
1037     fChain->SetBranchAddress("fathFilterJets_AnglePVtoSVmom", fathFilterJets_AnglePVtoSVmom, &b_fathFilterJets_AnglePVtoSVmom);
1038     fChain->SetBranchAddress("fathFilterJets_AnglePVtoJetmom", fathFilterJets_AnglePVtoJetmom, &b_fathFilterJets_AnglePVtoJetmom);
1039     fChain->SetBranchAddress("fathFilterJets_csvivf", fathFilterJets_csvivf, &b_fathFilterJets_csvivf);
1040     fChain->SetBranchAddress("fathFilterJets_cmva", fathFilterJets_cmva, &b_fathFilterJets_cmva);
1041 bortigno 1.1 fChain->SetBranchAddress("aJet_pt", aJet_pt, &b_aJet_pt);
1042     fChain->SetBranchAddress("aJet_eta", aJet_eta, &b_aJet_eta);
1043     fChain->SetBranchAddress("aJet_phi", aJet_phi, &b_aJet_phi);
1044     fChain->SetBranchAddress("aJet_e", aJet_e, &b_aJet_e);
1045     fChain->SetBranchAddress("aJet_csv", aJet_csv, &b_aJet_csv);
1046 bortigno 1.4 fChain->SetBranchAddress("aJet_csv_nominal", aJet_csv_nominal, &b_aJet_csv_nominal);
1047     fChain->SetBranchAddress("aJet_csv_upBC", aJet_csv_upBC, &b_aJet_csv_upBC);
1048     fChain->SetBranchAddress("aJet_csv_downBC", aJet_csv_downBC, &b_aJet_csv_downBC);
1049     fChain->SetBranchAddress("aJet_csv_upL", aJet_csv_upL, &b_aJet_csv_upL);
1050     fChain->SetBranchAddress("aJet_csv_downL", aJet_csv_downL, &b_aJet_csv_downL);
1051 bortigno 1.2 fChain->SetBranchAddress("aJet_csvivf", aJet_csvivf, &b_aJet_csvivf);
1052     fChain->SetBranchAddress("aJet_cmva", aJet_cmva, &b_aJet_cmva);
1053 bortigno 1.1 fChain->SetBranchAddress("aJet_cosTheta", aJet_cosTheta, &b_aJet_cosTheta);
1054     fChain->SetBranchAddress("aJet_numTracksSV", aJet_numTracksSV, &b_aJet_numTracksSV);
1055     fChain->SetBranchAddress("aJet_chf", aJet_chf, &b_aJet_chf);
1056     fChain->SetBranchAddress("aJet_nhf", aJet_nhf, &b_aJet_nhf);
1057     fChain->SetBranchAddress("aJet_cef", aJet_cef, &b_aJet_cef);
1058     fChain->SetBranchAddress("aJet_nef", aJet_nef, &b_aJet_nef);
1059     fChain->SetBranchAddress("aJet_nch", aJet_nch, &b_aJet_nch);
1060     fChain->SetBranchAddress("aJet_nconstituents", aJet_nconstituents, &b_aJet_nconstituents);
1061     fChain->SetBranchAddress("aJet_flavour", aJet_flavour, &b_aJet_flavour);
1062 bortigno 1.2 fChain->SetBranchAddress("aJet_isSemiLept", aJet_isSemiLept, &b_aJet_isSemiLept);
1063     fChain->SetBranchAddress("aJet_isSemiLeptMCtruth", aJet_isSemiLeptMCtruth, &b_aJet_isSemiLeptMCtruth);
1064     fChain->SetBranchAddress("aJet_SoftLeptpdgId", aJet_SoftLeptpdgId, &b_aJet_SoftLeptpdgId);
1065     fChain->SetBranchAddress("aJet_SoftLeptIdlooseMu", aJet_SoftLeptIdlooseMu, &b_aJet_SoftLeptIdlooseMu);
1066     fChain->SetBranchAddress("aJet_SoftLeptId95", aJet_SoftLeptId95, &b_aJet_SoftLeptId95);
1067     fChain->SetBranchAddress("aJet_SoftLeptPt", aJet_SoftLeptPt, &b_aJet_SoftLeptPt);
1068     fChain->SetBranchAddress("aJet_SoftLeptdR", aJet_SoftLeptdR, &b_aJet_SoftLeptdR);
1069     fChain->SetBranchAddress("aJet_SoftLeptptRel", aJet_SoftLeptptRel, &b_aJet_SoftLeptptRel);
1070     fChain->SetBranchAddress("aJet_SoftLeptRelCombIso", aJet_SoftLeptRelCombIso, &b_aJet_SoftLeptRelCombIso);
1071 bortigno 1.3 fChain->SetBranchAddress("aJet_puJetIdL", aJet_puJetIdL, &b_aJet_puJetIdL);
1072     fChain->SetBranchAddress("aJet_puJetIdM", aJet_puJetIdM, &b_aJet_puJetIdM);
1073     fChain->SetBranchAddress("aJet_puJetIdT", aJet_puJetIdT, &b_aJet_puJetIdT);
1074     fChain->SetBranchAddress("aJet_puJetIdMva", aJet_puJetIdMva, &b_aJet_puJetIdMva);
1075 bortigno 1.1 fChain->SetBranchAddress("aJet_genPt", aJet_genPt, &b_aJet_genPt);
1076     fChain->SetBranchAddress("aJet_genEta", aJet_genEta, &b_aJet_genEta);
1077     fChain->SetBranchAddress("aJet_genPhi", aJet_genPhi, &b_aJet_genPhi);
1078     fChain->SetBranchAddress("aJet_JECUnc", aJet_JECUnc, &b_aJet_JECUnc);
1079     fChain->SetBranchAddress("aJet_vtxMass", aJet_vtxMass, &b_aJet_vtxMass);
1080     fChain->SetBranchAddress("aJet_vtx3dL", aJet_vtx3dL, &b_aJet_vtx3dL);
1081     fChain->SetBranchAddress("aJet_vtx3deL", aJet_vtx3deL, &b_aJet_vtx3deL);
1082     fChain->SetBranchAddress("aJet_id", aJet_id, &b_aJet_id);
1083     fChain->SetBranchAddress("aJet_SF_CSVL", aJet_SF_CSVL, &b_aJet_SF_CSVL);
1084     fChain->SetBranchAddress("aJet_SF_CSVM", aJet_SF_CSVM, &b_aJet_SF_CSVM);
1085     fChain->SetBranchAddress("aJet_SF_CSVT", aJet_SF_CSVT, &b_aJet_SF_CSVT);
1086     fChain->SetBranchAddress("aJet_SF_CSVLerr", aJet_SF_CSVLerr, &b_aJet_SF_CSVLerr);
1087     fChain->SetBranchAddress("aJet_SF_CSVMerr", aJet_SF_CSVMerr, &b_aJet_SF_CSVMerr);
1088     fChain->SetBranchAddress("aJet_SF_CSVTerr", aJet_SF_CSVTerr, &b_aJet_SF_CSVTerr);
1089 bortigno 1.2 fChain->SetBranchAddress("naJetsFat", &naJetsFat, &b_naJetsFat);
1090     fChain->SetBranchAddress("aJetFat_pt", aJetFat_pt, &b_aJetFat_pt);
1091     fChain->SetBranchAddress("aJetFat_eta", aJetFat_eta, &b_aJetFat_eta);
1092     fChain->SetBranchAddress("aJetFat_phi", aJetFat_phi, &b_aJetFat_phi);
1093     fChain->SetBranchAddress("aJetFat_e", aJetFat_e, &b_aJetFat_e);
1094     fChain->SetBranchAddress("aJetFat_csv", aJetFat_csv, &b_aJetFat_csv);
1095 bortigno 1.1 fChain->SetBranchAddress("numJets", &numJets, &b_numJets);
1096     fChain->SetBranchAddress("numBJets", &numBJets, &b_numBJets);
1097     fChain->SetBranchAddress("deltaPullAngle", &deltaPullAngle, &b_deltaPullAngle);
1098     fChain->SetBranchAddress("deltaPullAngle2", &deltaPullAngle2, &b_deltaPullAngle2);
1099     fChain->SetBranchAddress("gendrcc", &gendrcc, &b_gendrcc);
1100     fChain->SetBranchAddress("gendrbb", &gendrbb, &b_gendrbb);
1101     fChain->SetBranchAddress("genZpt", &genZpt, &b_genZpt);
1102     fChain->SetBranchAddress("genWpt", &genWpt, &b_genWpt);
1103 bortigno 1.2 fChain->SetBranchAddress("genHpt", &genHpt, &b_genHpt);
1104 bortigno 1.3 fChain->SetBranchAddress("lheWeight", &lheWeight, &b_lheWeight);
1105 bortigno 1.1 fChain->SetBranchAddress("weightTrig", &weightTrig, &b_weightTrig);
1106     fChain->SetBranchAddress("weightTrigMay", &weightTrigMay, &b_weightTrigMay);
1107     fChain->SetBranchAddress("weightTrigV4", &weightTrigV4, &b_weightTrigV4);
1108     fChain->SetBranchAddress("weightTrigMET", &weightTrigMET, &b_weightTrigMET);
1109     fChain->SetBranchAddress("weightTrigOrMu30", &weightTrigOrMu30, &b_weightTrigOrMu30);
1110     fChain->SetBranchAddress("weightEleRecoAndId", &weightEleRecoAndId, &b_weightEleRecoAndId);
1111     fChain->SetBranchAddress("weightEleTrigJetMETPart", &weightEleTrigJetMETPart, &b_weightEleTrigJetMETPart);
1112     fChain->SetBranchAddress("weightEleTrigElePart", &weightEleTrigElePart, &b_weightEleTrigElePart);
1113     fChain->SetBranchAddress("weightEleTrigEleAugPart", &weightEleTrigEleAugPart, &b_weightEleTrigEleAugPart);
1114     fChain->SetBranchAddress("weightTrigMET80", &weightTrigMET80, &b_weightTrigMET80);
1115     fChain->SetBranchAddress("weightTrigMET100", &weightTrigMET100, &b_weightTrigMET100);
1116     fChain->SetBranchAddress("weightTrig2CJet20", &weightTrig2CJet20, &b_weightTrig2CJet20);
1117     fChain->SetBranchAddress("weightTrigMET150", &weightTrigMET150, &b_weightTrigMET150);
1118     fChain->SetBranchAddress("weightTrigMET802CJet", &weightTrigMET802CJet, &b_weightTrigMET802CJet);
1119     fChain->SetBranchAddress("weightTrigMET1002CJet", &weightTrigMET1002CJet, &b_weightTrigMET1002CJet);
1120     fChain->SetBranchAddress("weightTrigMETLP", &weightTrigMETLP, &b_weightTrigMETLP);
1121 bortigno 1.3 fChain->SetBranchAddress("weightTrig2012A", &weightTrig2012A, &b_weightTrig2012A);
1122     fChain->SetBranchAddress("weightTrig2012ADiMuon", &weightTrig2012ADiMuon, &b_weightTrig2012ADiMuon);
1123     fChain->SetBranchAddress("weightTrig2012ADiEle", &weightTrig2012ADiEle, &b_weightTrig2012ADiEle);
1124     fChain->SetBranchAddress("weightTrig2012ASingleMuon", &weightTrig2012ASingleMuon, &b_weightTrig2012ASingleMuon);
1125     fChain->SetBranchAddress("weightTrig2012ASingleEle", &weightTrig2012ASingleEle, &b_weightTrig2012ASingleEle);
1126     fChain->SetBranchAddress("weightTrig2012AMuonPlusWCandPt", &weightTrig2012AMuonPlusWCandPt, &b_weightTrig2012AMuonPlusWCandPt);
1127 bortigno 1.4 fChain->SetBranchAddress("weightTrig2012DiJet30MHT80", &weightTrig2012DiJet30MHT80, &b_weightTrig2012DiJet30MHT80);
1128     fChain->SetBranchAddress("weightTrig2012PFMET150", &weightTrig2012PFMET150, &b_weightTrig2012PFMET150);
1129     fChain->SetBranchAddress("weightTrig2012SumpT100MET100", &weightTrig2012SumpT100MET100, &b_weightTrig2012SumpT100MET100);
1130 bortigno 1.1 fChain->SetBranchAddress("deltaPullAngleAK7", &deltaPullAngleAK7, &b_deltaPullAngleAK7);
1131     fChain->SetBranchAddress("deltaPullAngle2AK7", &deltaPullAngle2AK7, &b_deltaPullAngle2AK7);
1132     fChain->SetBranchAddress("PU0", &PU0, &b_PU0);
1133     fChain->SetBranchAddress("PUm1", &PUm1, &b_PUm1);
1134     fChain->SetBranchAddress("PUp1", &PUp1, &b_PUp1);
1135     fChain->SetBranchAddress("PUweight", &PUweight, &b_PUweight);
1136     fChain->SetBranchAddress("PUweight2011B", &PUweight2011B, &b_PUweight2011B);
1137 bortigno 1.3 fChain->SetBranchAddress("PUweight1DObs", &PUweight1DObs, &b_PUweight1DObs);
1138 bortigno 1.1 fChain->SetBranchAddress("eventFlav", &eventFlav, &b_eventFlav);
1139     fChain->SetBranchAddress("Vtype", &Vtype, &b_Vtype);
1140     fChain->SetBranchAddress("HVdPhi", &HVdPhi, &b_HVdPhi);
1141     fChain->SetBranchAddress("HVMass", &HVMass, &b_HVMass);
1142     fChain->SetBranchAddress("HMETdPhi", &HMETdPhi, &b_HMETdPhi);
1143     fChain->SetBranchAddress("VMt", &VMt, &b_VMt);
1144     fChain->SetBranchAddress("nvlep", &nvlep, &b_nvlep);
1145     fChain->SetBranchAddress("nalep", &nalep, &b_nalep);
1146     fChain->SetBranchAddress("vLepton_mass", vLepton_mass, &b_vLepton_mass);
1147     fChain->SetBranchAddress("vLepton_pt", vLepton_pt, &b_vLepton_pt);
1148     fChain->SetBranchAddress("vLepton_eta", vLepton_eta, &b_vLepton_eta);
1149     fChain->SetBranchAddress("vLepton_phi", vLepton_phi, &b_vLepton_phi);
1150     fChain->SetBranchAddress("vLepton_aodCombRelIso", vLepton_aodCombRelIso, &b_vLepton_aodCombRelIso);
1151     fChain->SetBranchAddress("vLepton_pfCombRelIso", vLepton_pfCombRelIso, &b_vLepton_pfCombRelIso);
1152     fChain->SetBranchAddress("vLepton_photonIso", vLepton_photonIso, &b_vLepton_photonIso);
1153     fChain->SetBranchAddress("vLepton_neutralHadIso", vLepton_neutralHadIso, &b_vLepton_neutralHadIso);
1154     fChain->SetBranchAddress("vLepton_chargedHadIso", vLepton_chargedHadIso, &b_vLepton_chargedHadIso);
1155     fChain->SetBranchAddress("vLepton_chargedPUIso", vLepton_chargedPUIso, &b_vLepton_chargedPUIso);
1156     fChain->SetBranchAddress("vLepton_particleIso", vLepton_particleIso, &b_vLepton_particleIso);
1157     fChain->SetBranchAddress("vLepton_dxy", vLepton_dxy, &b_vLepton_dxy);
1158     fChain->SetBranchAddress("vLepton_dz", vLepton_dz, &b_vLepton_dz);
1159     fChain->SetBranchAddress("vLepton_type", vLepton_type, &b_vLepton_type);
1160     fChain->SetBranchAddress("vLepton_id80", vLepton_id80, &b_vLepton_id80);
1161     fChain->SetBranchAddress("vLepton_id95", vLepton_id95, &b_vLepton_id95);
1162     fChain->SetBranchAddress("vLepton_vbtf", vLepton_vbtf, &b_vLepton_vbtf);
1163     fChain->SetBranchAddress("vLepton_id80NoIso", vLepton_id80NoIso, &b_vLepton_id80NoIso);
1164     fChain->SetBranchAddress("vLepton_genPt", vLepton_genPt, &b_vLepton_genPt);
1165     fChain->SetBranchAddress("vLepton_genEta", vLepton_genEta, &b_vLepton_genEta);
1166     fChain->SetBranchAddress("vLepton_genPhi", vLepton_genPhi, &b_vLepton_genPhi);
1167 bortigno 1.2 fChain->SetBranchAddress("vLepton_charge", vLepton_charge, &b_vLepton_charge);
1168 bortigno 1.3 fChain->SetBranchAddress("vLepton_pfCorrIso", vLepton_pfCorrIso, &b_vLepton_pfCorrIso);
1169     fChain->SetBranchAddress("vLepton_id2012tight", vLepton_id2012tight, &b_vLepton_id2012tight);
1170     fChain->SetBranchAddress("vLepton_idMVAnotrig", vLepton_idMVAnotrig, &b_vLepton_idMVAnotrig);
1171     fChain->SetBranchAddress("vLepton_idMVAtrig", vLepton_idMVAtrig, &b_vLepton_idMVAtrig);
1172 bortigno 1.4 fChain->SetBranchAddress("vLepton_idMVApresel", vLepton_idMVApresel, &b_vLepton_idMVApresel);
1173 bortigno 1.3 fChain->SetBranchAddress("vLepton_innerHits", vLepton_innerHits, &b_vLepton_innerHits);
1174     fChain->SetBranchAddress("vLepton_photonIsoDoubleCount", vLepton_photonIsoDoubleCount, &b_vLepton_photonIsoDoubleCount);
1175 bortigno 1.4 fChain->SetBranchAddress("vLepton_wpHWW", vLepton_wpHWW, &b_vLepton_wpHWW);
1176 bortigno 1.3 fChain->SetBranchAddress("vLepton_wp95", vLepton_wp95, &b_vLepton_wp95);
1177     fChain->SetBranchAddress("vLepton_wp90", vLepton_wp90, &b_vLepton_wp90);
1178     fChain->SetBranchAddress("vLepton_wp85", vLepton_wp85, &b_vLepton_wp85);
1179     fChain->SetBranchAddress("vLepton_wp80", vLepton_wp80, &b_vLepton_wp80);
1180     fChain->SetBranchAddress("vLepton_wp70", vLepton_wp70, &b_vLepton_wp70);
1181 bortigno 1.1 fChain->SetBranchAddress("aLepton_mass", aLepton_mass, &b_aLepton_mass);
1182     fChain->SetBranchAddress("aLepton_pt", aLepton_pt, &b_aLepton_pt);
1183     fChain->SetBranchAddress("aLepton_eta", aLepton_eta, &b_aLepton_eta);
1184     fChain->SetBranchAddress("aLepton_phi", aLepton_phi, &b_aLepton_phi);
1185     fChain->SetBranchAddress("aLepton_aodCombRelIso", aLepton_aodCombRelIso, &b_aLepton_aodCombRelIso);
1186     fChain->SetBranchAddress("aLepton_pfCombRelIso", aLepton_pfCombRelIso, &b_aLepton_pfCombRelIso);
1187     fChain->SetBranchAddress("aLepton_photonIso", aLepton_photonIso, &b_aLepton_photonIso);
1188     fChain->SetBranchAddress("aLepton_neutralHadIso", aLepton_neutralHadIso, &b_aLepton_neutralHadIso);
1189     fChain->SetBranchAddress("aLepton_chargedHadIso", aLepton_chargedHadIso, &b_aLepton_chargedHadIso);
1190     fChain->SetBranchAddress("aLepton_chargedPUIso", aLepton_chargedPUIso, &b_aLepton_chargedPUIso);
1191     fChain->SetBranchAddress("aLepton_particleIso", aLepton_particleIso, &b_aLepton_particleIso);
1192     fChain->SetBranchAddress("aLepton_dxy", aLepton_dxy, &b_aLepton_dxy);
1193     fChain->SetBranchAddress("aLepton_dz", aLepton_dz, &b_aLepton_dz);
1194     fChain->SetBranchAddress("aLepton_type", aLepton_type, &b_aLepton_type);
1195     fChain->SetBranchAddress("aLepton_id80", aLepton_id80, &b_aLepton_id80);
1196     fChain->SetBranchAddress("aLepton_id95", aLepton_id95, &b_aLepton_id95);
1197     fChain->SetBranchAddress("aLepton_vbtf", aLepton_vbtf, &b_aLepton_vbtf);
1198     fChain->SetBranchAddress("aLepton_id80NoIso", aLepton_id80NoIso, &b_aLepton_id80NoIso);
1199     fChain->SetBranchAddress("aLepton_genPt", aLepton_genPt, &b_aLepton_genPt);
1200     fChain->SetBranchAddress("aLepton_genEta", aLepton_genEta, &b_aLepton_genEta);
1201     fChain->SetBranchAddress("aLepton_genPhi", aLepton_genPhi, &b_aLepton_genPhi);
1202 bortigno 1.2 fChain->SetBranchAddress("aLepton_charge", aLepton_charge, &b_aLepton_charge);
1203 bortigno 1.3 fChain->SetBranchAddress("aLepton_pfCorrIso", aLepton_pfCorrIso, &b_aLepton_pfCorrIso);
1204     fChain->SetBranchAddress("aLepton_id2012tight", aLepton_id2012tight, &b_aLepton_id2012tight);
1205     fChain->SetBranchAddress("aLepton_idMVAnotrig", aLepton_idMVAnotrig, &b_aLepton_idMVAnotrig);
1206     fChain->SetBranchAddress("aLepton_idMVAtrig", aLepton_idMVAtrig, &b_aLepton_idMVAtrig);
1207 bortigno 1.4 fChain->SetBranchAddress("aLepton_idMVApresel", aLepton_idMVApresel, &b_aLepton_idMVApresel);
1208 bortigno 1.3 fChain->SetBranchAddress("aLepton_innerHits", aLepton_innerHits, &b_aLepton_innerHits);
1209     fChain->SetBranchAddress("aLepton_photonIsoDoubleCount", aLepton_photonIsoDoubleCount, &b_aLepton_photonIsoDoubleCount);
1210 bortigno 1.4 fChain->SetBranchAddress("aLepton_wpHWW", aLepton_wpHWW, &b_aLepton_wpHWW);
1211 bortigno 1.3 fChain->SetBranchAddress("aLepton_wp95", aLepton_wp95, &b_aLepton_wp95);
1212     fChain->SetBranchAddress("aLepton_wp90", aLepton_wp90, &b_aLepton_wp90);
1213     fChain->SetBranchAddress("aLepton_wp85", aLepton_wp85, &b_aLepton_wp85);
1214     fChain->SetBranchAddress("aLepton_wp80", aLepton_wp80, &b_aLepton_wp80);
1215     fChain->SetBranchAddress("aLepton_wp70", aLepton_wp70, &b_aLepton_wp70);
1216 bortigno 1.1 fChain->SetBranchAddress("top", &top_mass, &b_top);
1217     fChain->SetBranchAddress("WplusMode", &WplusMode, &b_WplusMode);
1218     fChain->SetBranchAddress("WminusMode", &WminusMode, &b_WminusMode);
1219     fChain->SetBranchAddress("nSvs", &nSvs, &b_nSvs);
1220     fChain->SetBranchAddress("Sv_massBCand", Sv_massBCand, &b_Sv_massBCand);
1221     fChain->SetBranchAddress("Sv_massSv", Sv_massSv, &b_Sv_massSv);
1222     fChain->SetBranchAddress("Sv_pt", Sv_pt, &b_Sv_pt);
1223     fChain->SetBranchAddress("Sv_eta", Sv_eta, &b_Sv_eta);
1224     fChain->SetBranchAddress("Sv_phi", Sv_phi, &b_Sv_phi);
1225     fChain->SetBranchAddress("Sv_dist3D", Sv_dist3D, &b_Sv_dist3D);
1226     fChain->SetBranchAddress("Sv_dist2D", Sv_dist2D, &b_Sv_dist2D);
1227     fChain->SetBranchAddress("Sv_distSim2D", Sv_distSim2D, &b_Sv_distSim2D);
1228     fChain->SetBranchAddress("Sv_distSig3D", Sv_distSig3D, &b_Sv_distSig3D);
1229     fChain->SetBranchAddress("Sv_dist3D_norm", Sv_dist3D_norm, &b_Sv_dist3D_norm);
1230     fChain->SetBranchAddress("SVH", &SVH_mass, &b_SVH);
1231     fChain->SetBranchAddress("nSimBs", &nSimBs, &b_nSimBs);
1232     fChain->SetBranchAddress("SimBs_mass", SimBs_mass, &b_SimBs_mass);
1233     fChain->SetBranchAddress("SimBs_pt", SimBs_pt, &b_SimBs_pt);
1234     fChain->SetBranchAddress("SimBs_eta", SimBs_eta, &b_SimBs_eta);
1235     fChain->SetBranchAddress("SimBs_phi", SimBs_phi, &b_SimBs_phi);
1236     fChain->SetBranchAddress("SimBs_vtx_x", SimBs_vtx_x, &b_SimBs_vtx_x);
1237     fChain->SetBranchAddress("SimBs_vtx_y", SimBs_vtx_y, &b_SimBs_vtx_y);
1238     fChain->SetBranchAddress("SimBs_vtx_z", SimBs_vtx_z, &b_SimBs_vtx_z);
1239     fChain->SetBranchAddress("SimBs_pdgId", SimBs_pdgId, &b_SimBs_pdgId);
1240     fChain->SetBranchAddress("SimBs_status", SimBs_status, &b_SimBs_status);
1241     fChain->SetBranchAddress("SimBsH", &SimBsH_mass, &b_SimBsH);
1242     fChain->SetBranchAddress("rho", &rho, &b_rho);
1243     fChain->SetBranchAddress("rho25", &rho25, &b_rho25);
1244 bortigno 1.3 fChain->SetBranchAddress("rhoN", &rhoN, &b_rhoN);
1245 bortigno 1.1 fChain->SetBranchAddress("nPVs", &nPVs, &b_nPVs);
1246     fChain->SetBranchAddress("METnoPU", &METnoPU_et, &b_METnoPU);
1247     fChain->SetBranchAddress("METnoPUCh", &METnoPUCh_et, &b_METnoPUCh);
1248     fChain->SetBranchAddress("MET", &MET_et, &b_MET);
1249 bortigno 1.2 fChain->SetBranchAddress("METtype1corr", &METtype1corr_et, &b_METtype1corr);
1250     fChain->SetBranchAddress("METtype1p2corr", &METtype1p2corr_et, &b_METtype1p2corr);
1251     fChain->SetBranchAddress("METnoPUtype1corr", &METnoPUtype1corr_et, &b_METnoPUtype1corr);
1252     fChain->SetBranchAddress("METnoPUtype1p2corr", &METnoPUtype1p2corr_et, &b_METnoPUtype1p2corr);
1253     fChain->SetBranchAddress("metUnc_et", metUnc_et, &b_et);
1254     fChain->SetBranchAddress("metUnc_phi", metUnc_phi, &b_phi);
1255     fChain->SetBranchAddress("metUnc_sumet", metUnc_sumet, &b_sumet);
1256 bortigno 1.1 fChain->SetBranchAddress("fakeMET", &fakeMET_et, &b_fakeMET);
1257     fChain->SetBranchAddress("MHT", &MHT_mht, &b_MHT);
1258     fChain->SetBranchAddress("minDeltaPhijetMET", &minDeltaPhijetMET, &b_minDeltaPhijetMET);
1259     fChain->SetBranchAddress("jetPt_minDeltaPhijetMET", &jetPt_minDeltaPhijetMET, &b_jetPt_minDeltaPhijetMET);
1260     fChain->SetBranchAddress("triggerFlags", triggerFlags, &b_triggerFlags);
1261     fChain->SetBranchAddress("EVENT", &EVENT_run, &b_EVENT);
1262     fChain->SetBranchAddress("hbhe", &hbhe, &b_hbhe);
1263     fChain->SetBranchAddress("totalKinematics", &totalKinematics, &b_totalKinematics);
1264     fChain->SetBranchAddress("ecalFlag", &ecalFlag, &b_ecalFlag);
1265 bortigno 1.2 fChain->SetBranchAddress("cschaloFlag", &cschaloFlag, &b_cschaloFlag);
1266     fChain->SetBranchAddress("hcallaserFlag", &hcallaserFlag, &b_hcallaserFlag);
1267     fChain->SetBranchAddress("trackingfailureFlag", &trackingfailureFlag, &b_trackingfailureFlag);
1268 bortigno 1.1 fChain->SetBranchAddress("btag1TSF", &btag1TSF, &b_btag1TSF);
1269     fChain->SetBranchAddress("btag2TSF", &btag2TSF, &b_btag2TSF);
1270     fChain->SetBranchAddress("btag1T2CSF", &btag1T2CSF, &b_btag1T2CSF);
1271     fChain->SetBranchAddress("btag2CSF", &btag2CSF, &b_btag2CSF);
1272     fChain->SetBranchAddress("btagA0CSF", &btagA0CSF, &b_btagA0CSF);
1273     fChain->SetBranchAddress("btagA0TSF", &btagA0TSF, &b_btagA0TSF);
1274     fChain->SetBranchAddress("btag1TA1C", &btag1TA1C, &b_btag1TA1C);
1275 bortigno 1.2 fChain->SetBranchAddress("PUweight2011BUp", &PUweight2011BUp, &b_PUweight2011BUp);
1276     fChain->SetBranchAddress("PUweight2011BDown", &PUweight2011BDown, &b_PUweight2011BDown);
1277     fChain->SetBranchAddress("hJet_csvOld", hJet_csvOld, &b_hJet_csvOld);
1278     fChain->SetBranchAddress("hJet_csvDown", hJet_csvDown, &b_hJet_csvDown);
1279     fChain->SetBranchAddress("hJet_csvUp", hJet_csvUp, &b_hJet_csvUp);
1280     fChain->SetBranchAddress("hJet_csvFDown", hJet_csvFDown, &b_hJet_csvFDown);
1281     fChain->SetBranchAddress("hJet_csvFUp", hJet_csvFUp, &b_hJet_csvFUp);
1282     fChain->SetBranchAddress("weightTrig_up", &weightTrig_up, &b_weightTrig_up);
1283     fChain->SetBranchAddress("weightTrigMay_up", &weightTrigMay_up, &b_weightTrigMay);
1284     fChain->SetBranchAddress("weightTrigV4_up", &weightTrigV4_up, &b_weightTrigV4);
1285     fChain->SetBranchAddress("weightTrigMET_up", &weightTrigMET_up, &b_weightTrigMET);
1286     fChain->SetBranchAddress("weightTrigOrMu30_up", &weightTrigOrMu30_up, &b_weightTrigOrMu30);
1287     fChain->SetBranchAddress("weightEleRecoAndId_up", &weightEleRecoAndId_up, &b_weightEleRecoAndId);
1288     fChain->SetBranchAddress("weightEleTrigJetMETPart_up", &weightEleTrigJetMETPart_up, &b_weightEleTrigJetMETPart);
1289     fChain->SetBranchAddress("weightEleTrigElePart_up", &weightEleTrigElePart_up, &b_weightEleTrigElePart);
1290 bortigno 1.1 Notify();
1291     }
1292    
1293     Bool_t ntupleLoader::Notify()
1294     {
1295     // The Notify() function is called when a new file is opened. This
1296     // can be either for a new TTree in a TChain or when when a new TTree
1297     // is started when using PROOF. It is normally not necessary to make changes
1298     // to the generated code, but the routine can be extended by the
1299     // user if needed. The return value is currently not used.
1300    
1301     return kTRUE;
1302     }
1303    
1304     void ntupleLoader::Show(Long64_t entry)
1305     {
1306     // Print contents of entry.
1307     // If entry is not specified, print current entry
1308     if (!fChain) return;
1309     fChain->Show(entry);
1310     }
1311     Int_t ntupleLoader::Cut(Long64_t entry)
1312     {
1313     // This function may be called from Loop.
1314     // returns 1 if entry is accepted.
1315     // returns -1 otherwise.
1316     return 1;
1317     }
1318     #endif // #ifdef ntupleLoader_cxx