-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathNtupleClassAddTopVars.h
578 lines (559 loc) · 26.2 KB
/
NtupleClassAddTopVars.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
//////////////////////////////////////////////////////////
// This class has been automatically generated on
// Fri Sep 22 11:00:01 2017 by ROOT version 6.06/01
// from TTree PreSelection/PreSelection
// found on file: Summer16_private.rpv_stop_650_t3j_uds_0_RA2AnalysisTree.root
//////////////////////////////////////////////////////////
#ifndef NtupleClassAddTopVars_h
#define NtupleClassAddTopVars_h
#include <TROOT.h>
#include <TChain.h>
#include <TFile.h>
// Header file for the classes stored in the TTree if any.
#include <TLorentzVector.h>
#include <vector>
#include <string>
#include "TSystem.h"
class NtupleClassAddTopVars {
public :
TTree *fChain; //!pointer to the analyzed TTree or TChain
Int_t fCurrent; //!current Tree number in a TChain
// Fixed size dimensions of array or collections stored in the TTree if any.
// Declaration of leaf types
UInt_t RunNum;
UInt_t LumiBlockNum;
ULong64_t EvtNum;
Bool_t BadChargedCandidateFilter;
Bool_t BadGlobalMuon;
Double_t BadGlobalMuonLeadPt;
Int_t badMuonsFilter;
Bool_t BadPFMuonFilter;
Bool_t BadTrkGlobalMuon;
Double_t BadTrkGlobalMuonLeadPt;
Int_t BTags;
Int_t BTagsMVA;
Double_t CaloMET;
Double_t CaloMETPhi;
Double_t CrossSection;
Int_t CSCTightHaloFilter;
Double_t DeltaPhi1;
Double_t DeltaPhi2;
Double_t DeltaPhi3;
Double_t DeltaPhi4;
Bool_t DupGlobalMuon;
Double_t DupGlobalMuonLeadPt;
Int_t duplicateMuonsFilter;
Int_t EcalDeadCellTriggerPrimitiveFilter;
Int_t eeBadScFilter;
std::vector<TLorentzVector> *Electrons;
std::vector<int> *Electrons_charge;
Double_t GenHT;
std::vector<TLorentzVector> *GenJets;
std::vector<bool> *GenJets_HTMask;
std::vector<bool> *GenJets_MHTMask;
Double_t GenMET;
Double_t GenMETPhi;
Double_t GenMHT;
Double_t GenMHTPhi;
std::vector<TLorentzVector> *GenParticles;
std::vector<int> *GenParticles_ParentId;
std::vector<int> *GenParticles_ParentIdx;
std::vector<int> *GenParticles_PdgId;
std::vector<int> *GenParticles_Status;
std::vector<TLorentzVector> *GenTops;
Double_t GenTopWeight;
Int_t globalTightHalo2016Filter;
Int_t HBHEIsoNoiseFilter;
Int_t HBHENoiseFilter;
Double_t HT;
Int_t isoElectronTracks;
Int_t isoMuonTracks;
Int_t isoPionTracks;
Bool_t JetID;
Bool_t JetIDAK8;
std::vector<TLorentzVector> *Jets;
std::vector<double> *Jets_axisminor;
std::vector<double> *Jets_bDiscriminatorCSV;
std::vector<double> *Jets_bDiscriminatorMVA;
std::vector<double> *Jets_chargedEmEnergyFraction;
std::vector<double> *Jets_chargedHadronEnergyFraction;
std::vector<int> *Jets_chargedHadronMultiplicity;
std::vector<int> *Jets_chargedMultiplicity;
std::vector<int> *Jets_electronMultiplicity;
std::vector<int> *Jets_hadronFlavor;
std::vector<bool> *Jets_HTMask;
std::vector<bool> *Jets_ID;
std::vector<bool> *Jets_ISRMask;
std::vector<double> *Jets_jecFactor;
std::vector<double> *Jets_jecUnc;
std::vector<double> *Jets_jerFactor;
std::vector<double> *Jets_jerFactorDown;
std::vector<double> *Jets_jerFactorUp;
std::vector<bool> *Jets_LeptonMask;
std::vector<bool> *Jets_MHTMask;
std::vector<int> *Jets_multiplicity;
std::vector<double> *Jets_muonEnergyFraction;
std::vector<int> *Jets_muonMultiplicity;
std::vector<double> *Jets_neutralEmEnergyFraction;
std::vector<double> *Jets_neutralHadronEnergyFraction;
std::vector<int> *Jets_neutralHadronMultiplicity;
std::vector<int> *Jets_neutralMultiplicity;
std::vector<int> *Jets_partonFlavor;
std::vector<double> *Jets_photonEnergyFraction;
std::vector<int> *Jets_photonMultiplicity;
std::vector<double> *Jets_ptD;
std::vector<double> *Jets_qgLikelihood;
std::vector<TLorentzVector> *JetsAK8;
std::vector<double> *JetsAK8_doubleBDiscriminator;
std::vector<bool> *JetsAK8_ID;
std::vector<double> *JetsAK8_NsubjettinessTau1;
std::vector<double> *JetsAK8_NsubjettinessTau2;
std::vector<double> *JetsAK8_NsubjettinessTau3;
std::vector<int> *JetsAK8_NumBhadrons;
std::vector<int> *JetsAK8_NumChadrons;
std::vector<double> *JetsAK8_prunedMass;
std::vector<double> *JetsAK8_softDropMass;
std::vector<std::vector<TLorentzVector> > *JetsAK8_subjets;
Double_t madHT;
Double_t MET;
std::vector<double> *METDown;
Double_t METPhi;
std::vector<double> *METPhiDown;
std::vector<double> *METPhiUp;
Double_t METSignificance;
std::vector<double> *METUp;
Double_t MHT;
Double_t MHTPhi;
Double_t MT2;
std::vector<TLorentzVector> *Muons;
std::vector<int> *Muons_charge;
Int_t nAllVertices;
Int_t NJets;
Int_t NJetsISR;
Int_t noBadMuonsFilter;
Double_t NumEvents;
Int_t NumInteractions;
Int_t NVtx;
Double_t PFCaloMETRatio;
Double_t PmssmId;
Double_t puSysDown;
Double_t puSysUp;
Double_t puWeight;
Double_t SusyLSPMass;
Double_t SusyMotherMass;
std::vector<std::string> *TriggerNames;
std::vector<int> *TriggerPass;
std::vector<int> *TriggerPrescales;
Double_t TrueNumInteractions;
Double_t Weight;
// List of branches
TBranch *b_RunNum; //!
TBranch *b_LumiBlockNum; //!
TBranch *b_EvtNum; //!
TBranch *b_BadChargedCandidateFilter; //!
TBranch *b_BadGlobalMuon; //!
TBranch *b_BadGlobalMuonLeadPt; //!
TBranch *b_badMuonsFilter; //!
TBranch *b_BadPFMuonFilter; //!
TBranch *b_BadTrkGlobalMuon; //!
TBranch *b_BadTrkGlobalMuonLeadPt; //!
TBranch *b_BTags; //!
TBranch *b_BTagsMVA; //!
TBranch *b_CaloMET; //!
TBranch *b_CaloMETPhi; //!
TBranch *b_CrossSection; //!
TBranch *b_CSCTightHaloFilter; //!
TBranch *b_DeltaPhi1; //!
TBranch *b_DeltaPhi2; //!
TBranch *b_DeltaPhi3; //!
TBranch *b_DeltaPhi4; //!
TBranch *b_DupGlobalMuon; //!
TBranch *b_DupGlobalMuonLeadPt; //!
TBranch *b_duplicateMuonsFilter; //!
TBranch *b_EcalDeadCellTriggerPrimitiveFilter; //!
TBranch *b_eeBadScFilter; //!
TBranch *b_Electrons; //!
TBranch *b_Electrons_charge; //!
TBranch *b_GenHT; //!
TBranch *b_GenJets; //!
TBranch *b_GenJets_HTMask; //!
TBranch *b_GenJets_MHTMask; //!
TBranch *b_GenMET; //!
TBranch *b_GenMETPhi; //!
TBranch *b_GenMHT; //!
TBranch *b_GenMHTPhi; //!
TBranch *b_GenParticles; //!
TBranch *b_GenParticles_ParentId; //!
TBranch *b_GenParticles_ParentIdx; //!
TBranch *b_GenParticles_PdgId; //!
TBranch *b_GenParticles_Status; //!
TBranch *b_GenTops; //!
TBranch *b_GenTopWeight; //!
TBranch *b_globalTightHalo2016Filter; //!
TBranch *b_HBHEIsoNoiseFilter; //!
TBranch *b_HBHENoiseFilter; //!
TBranch *b_HT; //!
TBranch *b_isoElectronTracks; //!
TBranch *b_isoMuonTracks; //!
TBranch *b_isoPionTracks; //!
TBranch *b_JetID; //!
TBranch *b_JetIDAK8; //!
TBranch *b_Jets; //!
TBranch *b_Jets_axisminor; //!
TBranch *b_Jets_bDiscriminatorCSV; //!
TBranch *b_Jets_bDiscriminatorMVA; //!
TBranch *b_Jets_chargedEmEnergyFraction; //!
TBranch *b_Jets_chargedHadronEnergyFraction; //!
TBranch *b_Jets_chargedHadronMultiplicity; //!
TBranch *b_Jets_chargedMultiplicity; //!
TBranch *b_Jets_electronMultiplicity; //!
TBranch *b_Jets_hadronFlavor; //!
TBranch *b_Jets_HTMask; //!
TBranch *b_Jets_ID; //!
TBranch *b_Jets_ISRMask; //!
TBranch *b_Jets_jecFactor; //!
TBranch *b_Jets_jecUnc; //!
TBranch *b_Jets_jerFactor; //!
TBranch *b_Jets_jerFactorDown; //!
TBranch *b_Jets_jerFactorUp; //!
TBranch *b_Jets_LeptonMask; //!
TBranch *b_Jets_MHTMask; //!
TBranch *b_Jets_multiplicity; //!
TBranch *b_Jets_muonEnergyFraction; //!
TBranch *b_Jets_muonMultiplicity; //!
TBranch *b_Jets_neutralEmEnergyFraction; //!
TBranch *b_Jets_neutralHadronEnergyFraction; //!
TBranch *b_Jets_neutralHadronMultiplicity; //!
TBranch *b_Jets_neutralMultiplicity; //!
TBranch *b_Jets_partonFlavor; //!
TBranch *b_Jets_photonEnergyFraction; //!
TBranch *b_Jets_photonMultiplicity; //!
TBranch *b_Jets_ptD; //!
TBranch *b_Jets_qgLikelihood; //!
TBranch *b_JetsAK8; //!
TBranch *b_JetsAK8_doubleBDiscriminator; //!
TBranch *b_JetsAK8_ID; //!
TBranch *b_JetsAK8_NsubjettinessTau1; //!
TBranch *b_JetsAK8_NsubjettinessTau2; //!
TBranch *b_JetsAK8_NsubjettinessTau3; //!
TBranch *b_JetsAK8_NumBhadrons; //!
TBranch *b_JetsAK8_NumChadrons; //!
TBranch *b_JetsAK8_prunedMass; //!
TBranch *b_JetsAK8_softDropMass; //!
TBranch *b_JetsAK8_subjets; //!
TBranch *b_madHT; //!
TBranch *b_MET; //!
TBranch *b_METDown; //!
TBranch *b_METPhi; //!
TBranch *b_METPhiDown; //!
TBranch *b_METPhiUp; //!
TBranch *b_METSignificance; //!
TBranch *b_METUp; //!
TBranch *b_MHT; //!
TBranch *b_MHTPhi; //!
TBranch *b_MT2; //!
TBranch *b_Muons; //!
TBranch *b_Muons_charge; //!
TBranch *b_nAllVertices; //!
TBranch *b_NJets; //!
TBranch *b_NJetsISR; //!
TBranch *b_noBadMuonsFilter; //!
TBranch *b_NumEvents; //!
TBranch *b_NumInteractions; //!
TBranch *b_NVtx; //!
TBranch *b_PFCaloMETRatio; //!
TBranch *b_PmssmId; //!
TBranch *b_puSysDown; //!
TBranch *b_puSysUp; //!
TBranch *b_puWeight; //!
TBranch *b_SusyLSPMass; //!
TBranch *b_SusyMotherMass; //!
TBranch *b_TriggerNames; //!
TBranch *b_TriggerPass; //!
TBranch *b_TriggerPrescales; //!
TBranch *b_TrueNumInteractions; //!
TBranch *b_Weight; //!
NtupleClassAddTopVars(TTree *tree=0, TTree* output_tree_arg=0, bool do_skim_arg=false );
virtual ~NtupleClassAddTopVars();
virtual Int_t Cut(Long64_t entry);
virtual Int_t GetEntry(Long64_t entry);
virtual Long64_t LoadTree(Long64_t entry);
virtual void Init(TTree *tree);
virtual void Loop();
virtual Bool_t Notify();
virtual void Show(Long64_t entry = -1);
TTree* output_tree ;
bool do_skim ;
};
#endif
#ifdef NtupleClassAddTopVars_cxx
NtupleClassAddTopVars::NtupleClassAddTopVars(TTree *tree, TTree* output_tree_arg, bool do_skim_arg ) : fChain(0)
{
do_skim = do_skim_arg ;
// if parameter tree is not specified (or zero), connect the file
// used to generate this class and read the Tree.
if (tree == 0) {
TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject("Summer16_private.rpv_stop_650_t3j_uds_0_RA2AnalysisTree.root");
if (!f || !f->IsOpen()) {
f = new TFile("Summer16_private.rpv_stop_650_t3j_uds_0_RA2AnalysisTree.root");
}
TDirectory * dir = (TDirectory*)f->Get("Summer16_private.rpv_stop_650_t3j_uds_0_RA2AnalysisTree.root:/TreeMaker2");
dir->GetObject("PreSelection",tree);
}
Init(tree);
if ( output_tree_arg == 0x0 ) { printf("\n\n *** output tree pointer is null.\n\n") ; gSystem -> Exit(-1) ; }
output_tree = output_tree_arg ;
}
NtupleClassAddTopVars::~NtupleClassAddTopVars()
{
if (!fChain) return;
delete fChain->GetCurrentFile();
}
Int_t NtupleClassAddTopVars::GetEntry(Long64_t entry)
{
// Read contents of entry.
if (!fChain) return 0;
return fChain->GetEntry(entry);
}
Long64_t NtupleClassAddTopVars::LoadTree(Long64_t entry)
{
// Set the environment to read one entry
if (!fChain) return -5;
Long64_t centry = fChain->LoadTree(entry);
if (centry < 0) return centry;
if (fChain->GetTreeNumber() != fCurrent) {
fCurrent = fChain->GetTreeNumber();
Notify();
}
return centry;
}
void NtupleClassAddTopVars::Init(TTree *tree)
{
// The Init() function is called when the selector needs to initialize
// a new tree or chain. Typically here the branch addresses and branch
// pointers of the tree will be set.
// It is normally not necessary to make changes to the generated
// code, but the routine can be extended by the user if needed.
// Init() will be called many times when running on PROOF
// (once per file to be processed).
// Set object pointer
Electrons = 0;
Electrons_charge = 0;
GenJets = 0;
GenJets_HTMask = 0;
GenJets_MHTMask = 0;
GenParticles = 0;
GenParticles_ParentId = 0;
GenParticles_ParentIdx = 0;
GenParticles_PdgId = 0;
GenParticles_Status = 0;
GenTops = 0;
Jets = 0;
Jets_axisminor = 0;
Jets_bDiscriminatorCSV = 0;
Jets_bDiscriminatorMVA = 0;
Jets_chargedEmEnergyFraction = 0;
Jets_chargedHadronEnergyFraction = 0;
Jets_chargedHadronMultiplicity = 0;
Jets_chargedMultiplicity = 0;
Jets_electronMultiplicity = 0;
Jets_hadronFlavor = 0;
Jets_HTMask = 0;
Jets_ID = 0;
Jets_ISRMask = 0;
Jets_jecFactor = 0;
Jets_jecUnc = 0;
Jets_jerFactor = 0;
Jets_jerFactorDown = 0;
Jets_jerFactorUp = 0;
Jets_LeptonMask = 0;
Jets_MHTMask = 0;
Jets_multiplicity = 0;
Jets_muonEnergyFraction = 0;
Jets_muonMultiplicity = 0;
Jets_neutralEmEnergyFraction = 0;
Jets_neutralHadronEnergyFraction = 0;
Jets_neutralHadronMultiplicity = 0;
Jets_neutralMultiplicity = 0;
Jets_partonFlavor = 0;
Jets_photonEnergyFraction = 0;
Jets_photonMultiplicity = 0;
Jets_ptD = 0;
Jets_qgLikelihood = 0;
JetsAK8 = 0;
JetsAK8_doubleBDiscriminator = 0;
JetsAK8_ID = 0;
JetsAK8_NsubjettinessTau1 = 0;
JetsAK8_NsubjettinessTau2 = 0;
JetsAK8_NsubjettinessTau3 = 0;
JetsAK8_NumBhadrons = 0;
JetsAK8_NumChadrons = 0;
JetsAK8_prunedMass = 0;
JetsAK8_softDropMass = 0;
JetsAK8_subjets = 0;
METDown = 0;
METPhiDown = 0;
METPhiUp = 0;
METUp = 0;
Muons = 0;
Muons_charge = 0;
TriggerNames = 0;
TriggerPass = 0;
TriggerPrescales = 0;
// Set branch addresses and branch pointers
if (!tree) return;
fChain = tree;
fCurrent = -1;
fChain->SetMakeClass(1);
fChain->SetBranchAddress("RunNum", &RunNum, &b_RunNum);
fChain->SetBranchAddress("LumiBlockNum", &LumiBlockNum, &b_LumiBlockNum);
fChain->SetBranchAddress("EvtNum", &EvtNum, &b_EvtNum);
fChain->SetBranchAddress("BadChargedCandidateFilter", &BadChargedCandidateFilter, &b_BadChargedCandidateFilter);
fChain->SetBranchAddress("BadGlobalMuon", &BadGlobalMuon, &b_BadGlobalMuon);
fChain->SetBranchAddress("BadGlobalMuonLeadPt", &BadGlobalMuonLeadPt, &b_BadGlobalMuonLeadPt);
fChain->SetBranchAddress("badMuonsFilter", &badMuonsFilter, &b_badMuonsFilter);
fChain->SetBranchAddress("BadPFMuonFilter", &BadPFMuonFilter, &b_BadPFMuonFilter);
fChain->SetBranchAddress("BadTrkGlobalMuon", &BadTrkGlobalMuon, &b_BadTrkGlobalMuon);
fChain->SetBranchAddress("BadTrkGlobalMuonLeadPt", &BadTrkGlobalMuonLeadPt, &b_BadTrkGlobalMuonLeadPt);
fChain->SetBranchAddress("BTags", &BTags, &b_BTags);
fChain->SetBranchAddress("BTagsMVA", &BTagsMVA, &b_BTagsMVA);
fChain->SetBranchAddress("CaloMET", &CaloMET, &b_CaloMET);
fChain->SetBranchAddress("CaloMETPhi", &CaloMETPhi, &b_CaloMETPhi);
fChain->SetBranchAddress("CrossSection", &CrossSection, &b_CrossSection);
fChain->SetBranchAddress("CSCTightHaloFilter", &CSCTightHaloFilter, &b_CSCTightHaloFilter);
fChain->SetBranchAddress("DeltaPhi1", &DeltaPhi1, &b_DeltaPhi1);
fChain->SetBranchAddress("DeltaPhi2", &DeltaPhi2, &b_DeltaPhi2);
fChain->SetBranchAddress("DeltaPhi3", &DeltaPhi3, &b_DeltaPhi3);
fChain->SetBranchAddress("DeltaPhi4", &DeltaPhi4, &b_DeltaPhi4);
fChain->SetBranchAddress("DupGlobalMuon", &DupGlobalMuon, &b_DupGlobalMuon);
fChain->SetBranchAddress("DupGlobalMuonLeadPt", &DupGlobalMuonLeadPt, &b_DupGlobalMuonLeadPt);
fChain->SetBranchAddress("duplicateMuonsFilter", &duplicateMuonsFilter, &b_duplicateMuonsFilter);
fChain->SetBranchAddress("EcalDeadCellTriggerPrimitiveFilter", &EcalDeadCellTriggerPrimitiveFilter, &b_EcalDeadCellTriggerPrimitiveFilter);
fChain->SetBranchAddress("eeBadScFilter", &eeBadScFilter, &b_eeBadScFilter);
fChain->SetBranchAddress("Electrons", &Electrons, &b_Electrons);
fChain->SetBranchAddress("Electrons_charge", &Electrons_charge, &b_Electrons_charge);
fChain->SetBranchAddress("GenHT", &GenHT, &b_GenHT);
fChain->SetBranchAddress("GenJets", &GenJets, &b_GenJets);
fChain->SetBranchAddress("GenJets_HTMask", &GenJets_HTMask, &b_GenJets_HTMask);
fChain->SetBranchAddress("GenJets_MHTMask", &GenJets_MHTMask, &b_GenJets_MHTMask);
fChain->SetBranchAddress("GenMET", &GenMET, &b_GenMET);
fChain->SetBranchAddress("GenMETPhi", &GenMETPhi, &b_GenMETPhi);
fChain->SetBranchAddress("GenMHT", &GenMHT, &b_GenMHT);
fChain->SetBranchAddress("GenMHTPhi", &GenMHTPhi, &b_GenMHTPhi);
fChain->SetBranchAddress("GenParticles", &GenParticles, &b_GenParticles);
fChain->SetBranchAddress("GenParticles_ParentId", &GenParticles_ParentId, &b_GenParticles_ParentId);
fChain->SetBranchAddress("GenParticles_ParentIdx", &GenParticles_ParentIdx, &b_GenParticles_ParentIdx);
fChain->SetBranchAddress("GenParticles_PdgId", &GenParticles_PdgId, &b_GenParticles_PdgId);
fChain->SetBranchAddress("GenParticles_Status", &GenParticles_Status, &b_GenParticles_Status);
fChain->SetBranchAddress("GenTops", &GenTops, &b_GenTops);
fChain->SetBranchAddress("GenTopWeight", &GenTopWeight, &b_GenTopWeight);
fChain->SetBranchAddress("globalTightHalo2016Filter", &globalTightHalo2016Filter, &b_globalTightHalo2016Filter);
fChain->SetBranchAddress("HBHEIsoNoiseFilter", &HBHEIsoNoiseFilter, &b_HBHEIsoNoiseFilter);
fChain->SetBranchAddress("HBHENoiseFilter", &HBHENoiseFilter, &b_HBHENoiseFilter);
fChain->SetBranchAddress("HT", &HT, &b_HT);
fChain->SetBranchAddress("isoElectronTracks", &isoElectronTracks, &b_isoElectronTracks);
fChain->SetBranchAddress("isoMuonTracks", &isoMuonTracks, &b_isoMuonTracks);
fChain->SetBranchAddress("isoPionTracks", &isoPionTracks, &b_isoPionTracks);
fChain->SetBranchAddress("JetID", &JetID, &b_JetID);
fChain->SetBranchAddress("JetIDAK8", &JetIDAK8, &b_JetIDAK8);
fChain->SetBranchAddress("Jets", &Jets, &b_Jets);
fChain->SetBranchAddress("Jets_axisminor", &Jets_axisminor, &b_Jets_axisminor);
fChain->SetBranchAddress("Jets_bDiscriminatorCSV", &Jets_bDiscriminatorCSV, &b_Jets_bDiscriminatorCSV);
fChain->SetBranchAddress("Jets_bDiscriminatorMVA", &Jets_bDiscriminatorMVA, &b_Jets_bDiscriminatorMVA);
fChain->SetBranchAddress("Jets_chargedEmEnergyFraction", &Jets_chargedEmEnergyFraction, &b_Jets_chargedEmEnergyFraction);
fChain->SetBranchAddress("Jets_chargedHadronEnergyFraction", &Jets_chargedHadronEnergyFraction, &b_Jets_chargedHadronEnergyFraction);
fChain->SetBranchAddress("Jets_chargedHadronMultiplicity", &Jets_chargedHadronMultiplicity, &b_Jets_chargedHadronMultiplicity);
fChain->SetBranchAddress("Jets_chargedMultiplicity", &Jets_chargedMultiplicity, &b_Jets_chargedMultiplicity);
fChain->SetBranchAddress("Jets_electronMultiplicity", &Jets_electronMultiplicity, &b_Jets_electronMultiplicity);
fChain->SetBranchAddress("Jets_hadronFlavor", &Jets_hadronFlavor, &b_Jets_hadronFlavor);
fChain->SetBranchAddress("Jets_HTMask", &Jets_HTMask, &b_Jets_HTMask);
fChain->SetBranchAddress("Jets_ID", &Jets_ID, &b_Jets_ID);
fChain->SetBranchAddress("Jets_ISRMask", &Jets_ISRMask, &b_Jets_ISRMask);
fChain->SetBranchAddress("Jets_jecFactor", &Jets_jecFactor, &b_Jets_jecFactor);
fChain->SetBranchAddress("Jets_jecUnc", &Jets_jecUnc, &b_Jets_jecUnc);
fChain->SetBranchAddress("Jets_jerFactor", &Jets_jerFactor, &b_Jets_jerFactor);
fChain->SetBranchAddress("Jets_jerFactorDown", &Jets_jerFactorDown, &b_Jets_jerFactorDown);
fChain->SetBranchAddress("Jets_jerFactorUp", &Jets_jerFactorUp, &b_Jets_jerFactorUp);
fChain->SetBranchAddress("Jets_LeptonMask", &Jets_LeptonMask, &b_Jets_LeptonMask);
fChain->SetBranchAddress("Jets_MHTMask", &Jets_MHTMask, &b_Jets_MHTMask);
fChain->SetBranchAddress("Jets_multiplicity", &Jets_multiplicity, &b_Jets_multiplicity);
fChain->SetBranchAddress("Jets_muonEnergyFraction", &Jets_muonEnergyFraction, &b_Jets_muonEnergyFraction);
fChain->SetBranchAddress("Jets_muonMultiplicity", &Jets_muonMultiplicity, &b_Jets_muonMultiplicity);
fChain->SetBranchAddress("Jets_neutralEmEnergyFraction", &Jets_neutralEmEnergyFraction, &b_Jets_neutralEmEnergyFraction);
fChain->SetBranchAddress("Jets_neutralHadronEnergyFraction", &Jets_neutralHadronEnergyFraction, &b_Jets_neutralHadronEnergyFraction);
fChain->SetBranchAddress("Jets_neutralHadronMultiplicity", &Jets_neutralHadronMultiplicity, &b_Jets_neutralHadronMultiplicity);
fChain->SetBranchAddress("Jets_neutralMultiplicity", &Jets_neutralMultiplicity, &b_Jets_neutralMultiplicity);
fChain->SetBranchAddress("Jets_partonFlavor", &Jets_partonFlavor, &b_Jets_partonFlavor);
fChain->SetBranchAddress("Jets_photonEnergyFraction", &Jets_photonEnergyFraction, &b_Jets_photonEnergyFraction);
fChain->SetBranchAddress("Jets_photonMultiplicity", &Jets_photonMultiplicity, &b_Jets_photonMultiplicity);
fChain->SetBranchAddress("Jets_ptD", &Jets_ptD, &b_Jets_ptD);
fChain->SetBranchAddress("Jets_qgLikelihood", &Jets_qgLikelihood, &b_Jets_qgLikelihood);
fChain->SetBranchAddress("JetsAK8", &JetsAK8, &b_JetsAK8);
fChain->SetBranchAddress("JetsAK8_doubleBDiscriminator", &JetsAK8_doubleBDiscriminator, &b_JetsAK8_doubleBDiscriminator);
fChain->SetBranchAddress("JetsAK8_ID", &JetsAK8_ID, &b_JetsAK8_ID);
fChain->SetBranchAddress("JetsAK8_NsubjettinessTau1", &JetsAK8_NsubjettinessTau1, &b_JetsAK8_NsubjettinessTau1);
fChain->SetBranchAddress("JetsAK8_NsubjettinessTau2", &JetsAK8_NsubjettinessTau2, &b_JetsAK8_NsubjettinessTau2);
fChain->SetBranchAddress("JetsAK8_NsubjettinessTau3", &JetsAK8_NsubjettinessTau3, &b_JetsAK8_NsubjettinessTau3);
fChain->SetBranchAddress("JetsAK8_NumBhadrons", &JetsAK8_NumBhadrons, &b_JetsAK8_NumBhadrons);
fChain->SetBranchAddress("JetsAK8_NumChadrons", &JetsAK8_NumChadrons, &b_JetsAK8_NumChadrons);
fChain->SetBranchAddress("JetsAK8_prunedMass", &JetsAK8_prunedMass, &b_JetsAK8_prunedMass);
fChain->SetBranchAddress("JetsAK8_softDropMass", &JetsAK8_softDropMass, &b_JetsAK8_softDropMass);
fChain->SetBranchAddress("JetsAK8_subjets", &JetsAK8_subjets, &b_JetsAK8_subjets);
fChain->SetBranchAddress("madHT", &madHT, &b_madHT);
fChain->SetBranchAddress("MET", &MET, &b_MET);
fChain->SetBranchAddress("METDown", &METDown, &b_METDown);
fChain->SetBranchAddress("METPhi", &METPhi, &b_METPhi);
fChain->SetBranchAddress("METPhiDown", &METPhiDown, &b_METPhiDown);
fChain->SetBranchAddress("METPhiUp", &METPhiUp, &b_METPhiUp);
fChain->SetBranchAddress("METSignificance", &METSignificance, &b_METSignificance);
fChain->SetBranchAddress("METUp", &METUp, &b_METUp);
fChain->SetBranchAddress("MHT", &MHT, &b_MHT);
fChain->SetBranchAddress("MHTPhi", &MHTPhi, &b_MHTPhi);
fChain->SetBranchAddress("MT2", &MT2, &b_MT2);
fChain->SetBranchAddress("Muons", &Muons, &b_Muons);
fChain->SetBranchAddress("Muons_charge", &Muons_charge, &b_Muons_charge);
fChain->SetBranchAddress("nAllVertices", &nAllVertices, &b_nAllVertices);
fChain->SetBranchAddress("NJets", &NJets, &b_NJets);
fChain->SetBranchAddress("NJetsISR", &NJetsISR, &b_NJetsISR);
fChain->SetBranchAddress("noBadMuonsFilter", &noBadMuonsFilter, &b_noBadMuonsFilter);
fChain->SetBranchAddress("NumEvents", &NumEvents, &b_NumEvents);
fChain->SetBranchAddress("NumInteractions", &NumInteractions, &b_NumInteractions);
fChain->SetBranchAddress("NVtx", &NVtx, &b_NVtx);
fChain->SetBranchAddress("PFCaloMETRatio", &PFCaloMETRatio, &b_PFCaloMETRatio);
fChain->SetBranchAddress("PmssmId", &PmssmId, &b_PmssmId);
fChain->SetBranchAddress("puSysDown", &puSysDown, &b_puSysDown);
fChain->SetBranchAddress("puSysUp", &puSysUp, &b_puSysUp);
fChain->SetBranchAddress("puWeight", &puWeight, &b_puWeight);
fChain->SetBranchAddress("SusyLSPMass", &SusyLSPMass, &b_SusyLSPMass);
fChain->SetBranchAddress("SusyMotherMass", &SusyMotherMass, &b_SusyMotherMass);
fChain->SetBranchAddress("TriggerNames", &TriggerNames, &b_TriggerNames);
fChain->SetBranchAddress("TriggerPass", &TriggerPass, &b_TriggerPass);
fChain->SetBranchAddress("TriggerPrescales", &TriggerPrescales, &b_TriggerPrescales);
fChain->SetBranchAddress("TrueNumInteractions", &TrueNumInteractions, &b_TrueNumInteractions);
fChain->SetBranchAddress("Weight", &Weight, &b_Weight);
Notify();
}
Bool_t NtupleClassAddTopVars::Notify()
{
// The Notify() function is called when a new file is opened. This
// can be either for a new TTree in a TChain or when when a new TTree
// is started when using PROOF. It is normally not necessary to make changes
// to the generated code, but the routine can be extended by the
// user if needed. The return value is currently not used.
return kTRUE;
}
void NtupleClassAddTopVars::Show(Long64_t entry)
{
// Print contents of entry.
// If entry is not specified, print current entry
if (!fChain) return;
fChain->Show(entry);
}
Int_t NtupleClassAddTopVars::Cut(Long64_t entry)
{
// This function may be called from Loop.
// returns 1 if entry is accepted.
// returns -1 otherwise.
return 1;
}
#endif // #ifdef NtupleClassAddTopVars_cxx