-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathISRweights.h
1238 lines (1214 loc) · 63.6 KB
/
ISRweights.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
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//////////////////////////////////////////////////////////
// This class has been automatically generated on
// Thu Jun 14 10:52:54 2012 by ROOT version 5.33/02
// from TTree reducedTree/tree with minimal cuts
// found on file: /cu3/joshmt/reducedTrees/V00-02-35v/reducedTree.CSVM_PF2PATjets_JES0_JERbias_PFMET_METunc0_PUunc0_BTagEff04_HLTEff0.T1bbbb.root
//////////////////////////////////////////////////////////
#ifndef ISRweights_h
#define ISRweights_h
#include <TROOT.h>
#include <TChain.h>
#include <TFile.h>
#include <TH1F.h>
#include <TH2D.h>
#include <map>
// Header file for the classes stored in the TTree if any.
// Fixed size dimensions of array or collections stored in the TTree if any.
class ISRweights {
public :
TTree *fChain; //!pointer to the analyzed TTree or TChain
Int_t fCurrent; //!current Tree number in a TChain
// Declaration of leaf types
Double_t weight;
Double_t scanCrossSection;
Double_t scanCrossSectionPlus;
Double_t scanCrossSectionMinus;
ULong64_t runNumber;
ULong64_t lumiSection;
ULong64_t eventNumber;
Int_t m0;
Int_t m12;
Int_t W1decayType;
Int_t W2decayType;
Int_t decayType;
Float_t btagIPweight;
Float_t PUweight;
Float_t hltHTeff;
Float_t hltMHTeff;
Float_t hltMHTeffBNN;
Float_t hltMHTeffBNNUp;
Float_t hltMHTeffBNNDown;
Float_t pdfWeightsCTEQ[45];
Float_t pdfWeightsMSTW[41];
Float_t pdfWeightsNNPDF[100];
Float_t prob0;
Float_t probge1;
Float_t prob1;
Float_t probge2;
Float_t prob2;
Float_t probge3;
Float_t prob0_HFplus;
Float_t probge1_HFplus;
Float_t prob1_HFplus;
Float_t probge2_HFplus;
Float_t prob2_HFplus;
Float_t probge3_HFplus;
Float_t prob0_HFminus;
Float_t probge1_HFminus;
Float_t prob1_HFminus;
Float_t probge2_HFminus;
Float_t prob2_HFminus;
Float_t probge3_HFminus;
Float_t prob0_LFplus;
Float_t probge1_LFplus;
Float_t prob1_LFplus;
Float_t probge2_LFplus;
Float_t prob2_LFplus;
Float_t probge3_LFplus;
Float_t prob0_LFminus;
Float_t probge1_LFminus;
Float_t prob1_LFminus;
Float_t probge2_LFminus;
Float_t prob2_LFminus;
Float_t probge3_LFminus;
Bool_t cutHT;
Bool_t cutPV;
Bool_t cutTrigger;
Bool_t cut3Jets;
Bool_t cutEleVeto;
Bool_t cutMuVeto;
Bool_t cutMET;
Bool_t cutDeltaPhi;
Bool_t csctighthaloFilter;
Bool_t eenoiseFilter;
Bool_t greedymuonFilter;
Bool_t hbhenoiseFilter;
Bool_t inconsistentmuonFilter;
Bool_t ra2ecaltpFilter;
Bool_t scrapingvetoFilter;
Bool_t trackingfailureFilter;
Bool_t trackingfailureFilterPFLOW;
Bool_t recovrechitFilter;
Bool_t passCleaning;
Int_t PBNRcode;
Bool_t buggyEvent;
Int_t nGoodPV;
Int_t SUSY_nb;
Int_t SUSY_process;
Float_t SUSY_recoilPt;
Int_t njets;
Int_t njets30;
Int_t nbjets;
Int_t ntruebjets;
Int_t nElectrons;
Int_t nMuons;
Int_t nTaus;
Int_t nElectrons5;
Int_t nMuons5;
Int_t nElectrons15;
Int_t nMuons15;
Int_t nbjetsSSVM;
Int_t nbjetsSSVHPT;
Int_t nbjetsTCHPT;
Int_t nbjetsTCHET;
Int_t nbjetsTCHPM;
Int_t nbjetsCSVM;
Int_t nbjetsCSVL;
Bool_t isRealData;
Bool_t pass_utilityHLT;
UInt_t prescaleUtilityHLT;
UInt_t versionUtilityHLT;
UInt_t pass_utilityHLT_HT300_CentralJet30_BTagIP;
UInt_t prescale_utilityHLT_HT300_CentralJet30_BTagIP;
Float_t HT;
Float_t ST;
Float_t MET;
Float_t METphi;
Float_t MHT;
Float_t caloMET;
Float_t METPFType1;
Float_t METPFType1phi;
Float_t bestWMass;
Float_t bestTopMass;
Float_t topCosHel;
Float_t WCosHel;
Float_t MT_Wlep;
Float_t MT_Wlep5;
Float_t MT_Wlep15;
Float_t minDeltaPhi;
Float_t minDeltaPhiAll;
Float_t minDeltaPhiAll30;
Float_t minDeltaPhi30_eta5_noIdAll;
Float_t minDeltaPhiMetTau;
Float_t deltaPhi1;
Float_t deltaPhi2;
Float_t deltaPhi3;
Float_t maxDeltaPhi;
Float_t maxDeltaPhiAll;
Float_t maxDeltaPhiAll30;
Float_t maxDeltaPhi30_eta5_noIdAll;
Float_t sumDeltaPhi;
Float_t diffDeltaPhi;
Float_t deltaPhiStar;
Float_t deltaPhiStar_badjet_pt;
Float_t deltaPhiStar_badjet_phi;
Float_t deltaPhiStar_badjet_eta;
Float_t minDeltaPhiN;
Float_t deltaPhiN1;
Float_t deltaPhiN2;
Float_t deltaPhiN3;
UInt_t minDeltaPhi_chosenJet;
UInt_t minDeltaPhiN_chosenJet;
UInt_t maxJetMis_chosenJet;
UInt_t maxJetFracMis_chosenJet;
Int_t jetMisCategoryT1;
Int_t jetMisCategoryT1_noMETfraction;
Int_t jetMisCategoryT2;
Int_t jetMisCategoryT2_noMETfraction;
Float_t minDeltaPhiN_deltaT;
Float_t deltaT1;
Float_t deltaT2;
Float_t deltaT3;
Float_t minDeltaPhiN_MC;
Float_t deltaPhiN_MC1;
Float_t deltaPhiN_MC2;
Float_t deltaPhiN_MC3;
Float_t deltaT_MC1;
Float_t deltaT_MC2;
Float_t deltaT_MC3;
Float_t minDeltaPhiN_MCq;
Float_t deltaPhiN_MCq1;
Float_t deltaPhiN_MCq2;
Float_t deltaPhiN_MCq3;
Float_t deltaT_MCq1;
Float_t deltaT_MCq2;
Float_t deltaT_MCq3;
Float_t minDeltaPhiN_MCk;
Float_t deltaPhiN_MCk1;
Float_t deltaPhiN_MCk2;
Float_t deltaPhiN_MCk3;
Float_t deltaT_MCk1;
Float_t deltaT_MCk2;
Float_t deltaT_MCk3;
Float_t deltaT1_otherPt40;
Float_t deltaT1_otherPt50;
Float_t deltaT1_otherPt70;
Float_t deltaT2_otherPt40;
Float_t deltaT2_otherPt50;
Float_t deltaT2_otherPt70;
Float_t deltaT3_otherPt40;
Float_t deltaT3_otherPt50;
Float_t deltaT3_otherPt70;
Float_t minDeltaPhiNAll;
Float_t minDeltaPhiNAll30;
Float_t minDeltaPhiN_otherEta5;
Float_t minDeltaPhiN_otherEta5idNo;
Float_t minDeltaPhiN_mainPt30_otherEta5idNo;
Float_t minDeltaPhiN_mainPt30Eta5_otherEta5idNo;
Float_t minDeltaPhiN_mainPt30Eta5idNo_otherEta5idNo;
Float_t minDeltaPhiK;
Float_t minDeltaPhiKw;
Float_t minDeltaPhiK_otherEta5;
Float_t minDeltaPhiK_otherEta5idNo;
Float_t minDeltaPhiK_mainPt30_otherEta5idNo;
Float_t minDeltaPhiK_mainPt30Eta5_otherEta5idNo;
Float_t minDeltaPhiK_mainPt30Eta5idNo_otherEta5idNo;
Float_t minDeltaPhiN_DJR;
Float_t minDeltaPhiN_DJR_otherEta5;
Float_t minDeltaPhiK_DJR;
Float_t minDeltaPhiK_DJR_otherEta5;
Float_t minDeltaPhiN_otherPt10;
Float_t minDeltaPhiN_otherPt20;
Float_t minDeltaPhiN_otherPt30;
Float_t minDeltaPhiN_otherPt40;
Float_t minDeltaPhiN_otherPt50;
Float_t minDeltaPhiN_DJR_otherPt10;
Float_t minDeltaPhiN_DJR_otherPt20;
Float_t minDeltaPhiN_DJR_otherPt30;
Float_t minDeltaPhiN_DJR_otherPt40;
Float_t minDeltaPhiN_DJR_otherPt50;
Float_t minDeltaPhiN_withLepton;
Float_t maxJetMis;
Float_t max2JetMis;
Float_t maxJetMisAll30;
Float_t max2JetMisAll30;
Float_t maxJetMis_signed;
Float_t maxJetMis30_signed;
Float_t maxJetFracMis;
Float_t max2JetFracMis;
Float_t maxJetFracMisAll30;
Float_t max2JetFracMisAll30;
Float_t deltaPhiMETJetMaxMis;
Float_t deltaPhiMETJetMaxMis30;
UInt_t rankMaxJetMis;
UInt_t rankMaxJetMis30;
Float_t CSVout1;
Float_t CSVout2;
Float_t CSVout3;
Float_t minDeltaPhiAllb30;
Float_t deltaPhib1;
Float_t deltaPhib2;
Float_t deltaPhib3;
Float_t minDeltaPhiMETMuonsAll;
Float_t minDeltaPhiN_lostJet;
Float_t deltaPhiN1_lostJet;
Float_t deltaPhiN2_lostJet;
Float_t deltaPhiN3_lostJet;
Bool_t passBadECAL_METphi53_n10_s12;
Float_t worstMisA_badECAL_METphi53_n10_s12;
Float_t worstMisF_badECAL_METphi53_n10_s12;
Bool_t passBadECAL_METphi33_n10_s12;
Float_t worstMisA_badECAL_METphi33_n10_s12;
Float_t worstMisF_badECAL_METphi33_n10_s12;
Bool_t passBadECAL_METphi52_n10_s12;
Float_t worstMisA_badECAL_METphi52_n10_s12;
Float_t worstMisF_badECAL_METphi52_n10_s12;
Bool_t passBadECAL_METphi53_n5_s12;
Bool_t passBadECAL_METphi53_crack;
Float_t worstMisA_badECAL_METphi53_crack;
Float_t worstMisF_badECAL_METphi53_crack;
Bool_t passBadECAL_METphi52_crack;
Float_t worstMisA_badECAL_METphi52_crack;
Float_t worstMisF_badECAL_METphi52_crack;
Bool_t passBadECAL_METphi53_crackF;
Float_t worstMisA_badECAL_METphi53_crackF;
Float_t worstMisF_badECAL_METphi53_crackF;
Bool_t passBadECAL_METphi52_crackF;
Float_t worstMisA_badECAL_METphi52_crackF;
Float_t worstMisF_badECAL_METphi52_crackF;
Float_t jetpt1;
Float_t jetgenpt1;
Float_t jeteta1;
Float_t jetgeneta1;
Float_t jetphi1;
Float_t jetgenphi1;
Float_t jetenergy1;
Int_t jetflavor1;
Float_t jetchargedhadronfrac1;
Int_t jetchargedhadronmult1;
Float_t jetpt2;
Float_t jetgenpt2;
Float_t jeteta2;
Float_t jetgeneta2;
Float_t jetphi2;
Float_t jetgenphi2;
Float_t jetenergy2;
Int_t jetflavor2;
Float_t jetchargedhadronfrac2;
Int_t jetchargedhadronmult2;
Float_t jetpt3;
Float_t jetgenpt3;
Float_t jeteta3;
Float_t jetgeneta3;
Float_t jetphi3;
Float_t jetgenphi3;
Float_t jetenergy3;
Int_t jetflavor3;
Float_t jetchargedhadronfrac3;
Int_t jetchargedhadronmult3;
Float_t bjetpt1;
Float_t bjeteta1;
Float_t bjetphi1;
Float_t bjetenergy1;
Int_t bjetflavor1;
Float_t bjetchargedhadronfrac1;
Int_t bjetchargedhadronmult1;
Float_t bjetpt2;
Float_t bjeteta2;
Float_t bjetphi2;
Float_t bjetenergy2;
Int_t bjetflavor2;
Float_t bjetchargedhadronfrac2;
Int_t bjetchargedhadronmult2;
Float_t bjetpt3;
Float_t bjeteta3;
Float_t bjetphi3;
Float_t bjetenergy3;
Int_t bjetflavor3;
Float_t bjetchargedhadronfrac3;
Int_t bjetchargedhadronmult3;
Float_t eleet1;
Int_t elecharge1;
Float_t elephi1;
Float_t eleeta1;
Float_t muonpt1;
Int_t muoncharge1;
Float_t muonphi1;
Float_t muoneta1;
Float_t muoniso1;
Float_t muonchhadiso1;
Float_t muonphotoniso1;
Float_t muonneutralhadiso1;
Float_t eleet2;
Float_t elephi2;
Float_t eleeta2;
Float_t muonpt2;
Float_t muonphi2;
Float_t muoneta2;
Float_t taupt1;
Float_t taueta1;
Float_t eleRelIso;
Float_t muonRelIso;
Float_t recomuonpt1;
Float_t recomuonphi1;
Float_t recomuoneta1;
Float_t recomuoniso1;
Float_t recomuonmindphijet1;
Float_t recomuonpt2;
Float_t recomuonphi2;
Float_t recomuoneta2;
Float_t recomuoniso2;
Float_t recomuonmindphijet2;
Float_t minDeltaPhiN_Luke;
Float_t maxDeltaPhiN_Luke;
Float_t deltaPhiN1_Luke;
Float_t deltaPhiN2_Luke;
Float_t deltaPhiN3_Luke;
Float_t minTransverseMETSignificance;
Float_t maxTransverseMETSignificance;
Float_t transverseMETSignificance1;
Float_t transverseMETSignificance2;
Float_t transverseMETSignificance3;
Int_t njets_lostJet;
Int_t nbjets_lostJet;
Float_t minDeltaPhiN_Luke_lostJet;
Float_t maxDeltaPhiN_Luke_lostJet;
Float_t deltaPhiN1_Luke_lostJet;
Float_t deltaPhiN2_Luke_lostJet;
Float_t deltaPhiN3_Luke_lostJet;
Float_t minTransverseMETSignificance_lostJet;
Float_t maxTransverseMETSignificance_lostJet;
Float_t transverseMETSignificance1_lostJet;
Float_t transverseMETSignificance2_lostJet;
Float_t transverseMETSignificance3_lostJet;
Float_t nLostJet;
// List of branches
TBranch *b_weight; //!
TBranch *b_scanCrossSection; //!
TBranch *b_scanCrossSectionPlus; //!
TBranch *b_scanCrossSectionMinus; //!
TBranch *b_runNumber; //!
TBranch *b_lumiSection; //!
TBranch *b_eventNumber; //!
TBranch *b_m0; //!
TBranch *b_m12; //!
TBranch *b_W1decayType; //!
TBranch *b_W2decayType; //!
TBranch *b_decayType; //!
TBranch *b_btagIPweight; //!
TBranch *b_PUweight; //!
TBranch *b_hltHTeff; //!
TBranch *b_hltMHTeff; //!
TBranch *b_hltMHTeffBNN; //!
TBranch *b_hltMHTeffBNNUp; //!
TBranch *b_hltMHTeffBNNDown; //!
TBranch *b_pdfWeightsCTEQ; //!
TBranch *b_pdfWeightsMSTW; //!
TBranch *b_pdfWeightsNNPDF; //!
TBranch *b_prob0; //!
TBranch *b_probge1; //!
TBranch *b_prob1; //!
TBranch *b_probge2; //!
TBranch *b_prob2; //!
TBranch *b_probge3; //!
TBranch *b_prob0_HFplus; //!
TBranch *b_probge1_HFplus; //!
TBranch *b_prob1_HFplus; //!
TBranch *b_probge2_HFplus; //!
TBranch *b_prob2_HFplus; //!
TBranch *b_probge3_HFplus; //!
TBranch *b_prob0_HFminus; //!
TBranch *b_probge1_HFminus; //!
TBranch *b_prob1_HFminus; //!
TBranch *b_probge2_HFminus; //!
TBranch *b_prob2_HFminus; //!
TBranch *b_probge3_HFminus; //!
TBranch *b_prob0_LFplus; //!
TBranch *b_probge1_LFplus; //!
TBranch *b_prob1_LFplus; //!
TBranch *b_probge2_LFplus; //!
TBranch *b_prob2_LFplus; //!
TBranch *b_probge3_LFplus; //!
TBranch *b_prob0_LFminus; //!
TBranch *b_probge1_LFminus; //!
TBranch *b_prob1_LFminus; //!
TBranch *b_probge2_LFminus; //!
TBranch *b_prob2_LFminus; //!
TBranch *b_probge3_LFminus; //!
TBranch *b_cutHT; //!
TBranch *b_cutPV; //!
TBranch *b_cutTrigger; //!
TBranch *b_cut3Jets; //!
TBranch *b_cutEleVeto; //!
TBranch *b_cutMuVeto; //!
TBranch *b_cutMET; //!
TBranch *b_cutDeltaPhi; //!
TBranch *b_csctighthaloFilter; //!
TBranch *b_eenoiseFilter; //!
TBranch *b_greedymuonFilter; //!
TBranch *b_hbhenoiseFilter; //!
TBranch *b_inconsistentmuonFilter; //!
TBranch *b_ra2ecaltpFilter; //!
TBranch *b_scrapingvetoFilter; //!
TBranch *b_trackingfailureFilter; //!
TBranch *b_trackingfailureFilterPFLOW; //!
TBranch *b_recovrechitFilter; //!
TBranch *b_passCleaning; //!
TBranch *b_PBNRcode; //!
TBranch *b_buggyEvent; //!
TBranch *b_nGoodPV; //!
TBranch *b_SUSY_nb; //!
TBranch *b_SUSY_process; //!
TBranch *b_SUSY_recoilPt; //!
TBranch *b_njets; //!
TBranch *b_njets30; //!
TBranch *b_nbjets; //!
TBranch *b_ntruebjets; //!
TBranch *b_nElectrons; //!
TBranch *b_nMuons; //!
TBranch *b_nTaus; //!
TBranch *b_nElectrons5; //!
TBranch *b_nMuons5; //!
TBranch *b_nElectrons15; //!
TBranch *b_nMuons15; //!
TBranch *b_nbjetsSSVM; //!
TBranch *b_nbjetsSSVHPT; //!
TBranch *b_nbjetsTCHPT; //!
TBranch *b_nbjetsTCHET; //!
TBranch *b_nbjetsTCHPM; //!
TBranch *b_nbjetsCSVM; //!
TBranch *b_nbjetsCSVL; //!
TBranch *b_isRealData; //!
TBranch *b_pass_utilityHLT; //!
TBranch *b_prescaleUtilityHLT; //!
TBranch *b_versionUtilityHLT; //!
TBranch *b_pass_utilityHLT_HT300_CentralJet30_BTagIP; //!
TBranch *b_prescale_utilityHLT_HT300_CentralJet30_BTagIP; //!
TBranch *b_HT; //!
TBranch *b_ST; //!
TBranch *b_MET; //!
TBranch *b_METphi; //!
TBranch *b_MHT; //!
TBranch *b_caloMET; //!
TBranch *b_METPFType1; //!
TBranch *b_METPFType1phi; //!
TBranch *b_bestWMass; //!
TBranch *b_bestTopMass; //!
TBranch *b_topCosHel; //!
TBranch *b_WCosHel; //!
TBranch *b_MT_Wlep; //!
TBranch *b_MT_Wlep5; //!
TBranch *b_MT_Wlep15; //!
TBranch *b_minDeltaPhi; //!
TBranch *b_minDeltaPhiAll; //!
TBranch *b_minDeltaPhiAll30; //!
TBranch *b_minDeltaPhi30_eta5_noIdAll; //!
TBranch *b_minDeltaPhiMetTau; //!
TBranch *b_deltaPhi1; //!
TBranch *b_deltaPhi2; //!
TBranch *b_deltaPhi3; //!
TBranch *b_maxDeltaPhi; //!
TBranch *b_maxDeltaPhiAll; //!
TBranch *b_maxDeltaPhiAll30; //!
TBranch *b_maxDeltaPhi30_eta5_noIdAll; //!
TBranch *b_sumDeltaPhi; //!
TBranch *b_diffDeltaPhi; //!
TBranch *b_deltaPhiStar; //!
TBranch *b_deltaPhiStar_badjet_pt; //!
TBranch *b_deltaPhiStar_badjet_phi; //!
TBranch *b_deltaPhiStar_badjet_eta; //!
TBranch *b_minDeltaPhiN; //!
TBranch *b_deltaPhiN1; //!
TBranch *b_deltaPhiN2; //!
TBranch *b_deltaPhiN3; //!
TBranch *b_minDeltaPhi_chosenJet; //!
TBranch *b_minDeltaPhiN_chosenJet; //!
TBranch *b_maxJetMis_chosenJet; //!
TBranch *b_maxJetFracMis_chosenJet; //!
TBranch *b_jetMisCategoryT1; //!
TBranch *b_jetMisCategoryT1_noMETfraction; //!
TBranch *b_jetMisCategoryT2; //!
TBranch *b_jetMisCategoryT2_noMETfraction; //!
TBranch *b_minDeltaPhiN_deltaT; //!
TBranch *b_deltaT1; //!
TBranch *b_deltaT2; //!
TBranch *b_deltaT3; //!
TBranch *b_minDeltaPhiN_MC; //!
TBranch *b_deltaPhiN_MC1; //!
TBranch *b_deltaPhiN_MC2; //!
TBranch *b_deltaPhiN_MC3; //!
TBranch *b_deltaT_MC1; //!
TBranch *b_deltaT_MC2; //!
TBranch *b_deltaT_MC3; //!
TBranch *b_minDeltaPhiN_MCq; //!
TBranch *b_deltaPhiN_MCq1; //!
TBranch *b_deltaPhiN_MCq2; //!
TBranch *b_deltaPhiN_MCq3; //!
TBranch *b_deltaT_MCq1; //!
TBranch *b_deltaT_MCq2; //!
TBranch *b_deltaT_MCq3; //!
TBranch *b_minDeltaPhiN_MCk; //!
TBranch *b_deltaPhiN_MCk1; //!
TBranch *b_deltaPhiN_MCk2; //!
TBranch *b_deltaPhiN_MCk3; //!
TBranch *b_deltaT_MCk1; //!
TBranch *b_deltaT_MCk2; //!
TBranch *b_deltaT_MCk3; //!
TBranch *b_deltaT1_otherPt40; //!
TBranch *b_deltaT1_otherPt50; //!
TBranch *b_deltaT1_otherPt70; //!
TBranch *b_deltaT2_otherPt40; //!
TBranch *b_deltaT2_otherPt50; //!
TBranch *b_deltaT2_otherPt70; //!
TBranch *b_deltaT3_otherPt40; //!
TBranch *b_deltaT3_otherPt50; //!
TBranch *b_deltaT3_otherPt70; //!
TBranch *b_minDeltaPhiNAll; //!
TBranch *b_minDeltaPhiNAll30; //!
TBranch *b_minDeltaPhiN_otherEta5; //!
TBranch *b_minDeltaPhiN_otherEta5idNo; //!
TBranch *b_minDeltaPhiN_mainPt30_otherEta5idNo; //!
TBranch *b_minDeltaPhiN_mainPt30Eta5_otherEta5idNo; //!
TBranch *b_minDeltaPhiN_mainPt30Eta5idNo_otherEta5idNo; //!
TBranch *b_minDeltaPhiK; //!
TBranch *b_minDeltaPhiKw; //!
TBranch *b_minDeltaPhiK_otherEta5; //!
TBranch *b_minDeltaPhiK_otherEta5idNo; //!
TBranch *b_minDeltaPhiK_mainPt30_otherEta5idNo; //!
TBranch *b_minDeltaPhiK_mainPt30Eta5_otherEta5idNo; //!
TBranch *b_minDeltaPhiK_mainPt30Eta5idNo_otherEta5idNo; //!
TBranch *b_minDeltaPhiN_DJR; //!
TBranch *b_minDeltaPhiN_DJR_otherEta5; //!
TBranch *b_minDeltaPhiK_DJR; //!
TBranch *b_minDeltaPhiK_DJR_otherEta5; //!
TBranch *b_minDeltaPhiN_otherPt10; //!
TBranch *b_minDeltaPhiN_otherPt20; //!
TBranch *b_minDeltaPhiN_otherPt30; //!
TBranch *b_minDeltaPhiN_otherPt40; //!
TBranch *b_minDeltaPhiN_otherPt50; //!
TBranch *b_minDeltaPhiN_DJR_otherPt10; //!
TBranch *b_minDeltaPhiN_DJR_otherPt20; //!
TBranch *b_minDeltaPhiN_DJR_otherPt30; //!
TBranch *b_minDeltaPhiN_DJR_otherPt40; //!
TBranch *b_minDeltaPhiN_DJR_otherPt50; //!
TBranch *b_minDeltaPhiN_withLepton; //!
TBranch *b_maxJetMis; //!
TBranch *b_max2JetMis; //!
TBranch *b_maxJetMisAll30; //!
TBranch *b_max2JetMisAll30; //!
TBranch *b_maxJetMis_signed; //!
TBranch *b_maxJetMis30_signed; //!
TBranch *b_maxJetFracMis; //!
TBranch *b_max2JetFracMis; //!
TBranch *b_maxJetFracMisAll30; //!
TBranch *b_max2JetFracMisAll30; //!
TBranch *b_deltaPhiMETJetMaxMis; //!
TBranch *b_deltaPhiMETJetMaxMis30; //!
TBranch *b_rankMaxJetMis; //!
TBranch *b_rankMaxJetMis30; //!
TBranch *b_CSVout1; //!
TBranch *b_CSVout2; //!
TBranch *b_CSVout3; //!
TBranch *b_minDeltaPhiAllb30; //!
TBranch *b_deltaPhib1; //!
TBranch *b_deltaPhib2; //!
TBranch *b_deltaPhib3; //!
TBranch *b_minDeltaPhiMETMuonsAll; //!
TBranch *b_minDeltaPhiN_lostJet; //!
TBranch *b_deltaPhiN1_lostJet; //!
TBranch *b_deltaPhiN2_lostJet; //!
TBranch *b_deltaPhiN3_lostJet; //!
TBranch *b_passBadECAL_METphi53_n10_s12; //!
TBranch *b_worstMisA_badECAL_METphi53_n10_s12; //!
TBranch *b_worstMisF_badECAL_METphi53_n10_s12; //!
TBranch *b_passBadECAL_METphi33_n10_s12; //!
TBranch *b_worstMisA_badECAL_METphi33_n10_s12; //!
TBranch *b_worstMisF_badECAL_METphi33_n10_s12; //!
TBranch *b_passBadECAL_METphi52_n10_s12; //!
TBranch *b_worstMisA_badECAL_METphi52_n10_s12; //!
TBranch *b_worstMisF_badECAL_METphi52_n10_s12; //!
TBranch *b_passBadECAL_METphi53_n5_s12; //!
TBranch *b_passBadECAL_METphi53_crack; //!
TBranch *b_worstMisA_badECAL_METphi53_crack; //!
TBranch *b_worstMisF_badECAL_METphi53_crack; //!
TBranch *b_passBadECAL_METphi52_crack; //!
TBranch *b_worstMisA_badECAL_METphi52_crack; //!
TBranch *b_worstMisF_badECAL_METphi52_crack; //!
TBranch *b_passBadECAL_METphi53_crackF; //!
TBranch *b_worstMisA_badECAL_METphi53_crackF; //!
TBranch *b_worstMisF_badECAL_METphi53_crackF; //!
TBranch *b_passBadECAL_METphi52_crackF; //!
TBranch *b_worstMisA_badECAL_METphi52_crackF; //!
TBranch *b_worstMisF_badECAL_METphi52_crackF; //!
TBranch *b_jetpt1; //!
TBranch *b_jetgenpt1; //!
TBranch *b_jeteta1; //!
TBranch *b_jetgeneta1; //!
TBranch *b_jetphi1; //!
TBranch *b_jetgenphi1; //!
TBranch *b_jetenergy1; //!
TBranch *b_jetflavor1; //!
TBranch *b_jetchargedhadronfrac1; //!
TBranch *b_jetchargedhadronmult1; //!
TBranch *b_jetpt2; //!
TBranch *b_jetgenpt2; //!
TBranch *b_jeteta2; //!
TBranch *b_jetgeneta2; //!
TBranch *b_jetphi2; //!
TBranch *b_jetgenphi2; //!
TBranch *b_jetenergy2; //!
TBranch *b_jetflavor2; //!
TBranch *b_jetchargedhadronfrac2; //!
TBranch *b_jetchargedhadronmult2; //!
TBranch *b_jetpt3; //!
TBranch *b_jetgenpt3; //!
TBranch *b_jeteta3; //!
TBranch *b_jetgeneta3; //!
TBranch *b_jetphi3; //!
TBranch *b_jetgenphi3; //!
TBranch *b_jetenergy3; //!
TBranch *b_jetflavor3; //!
TBranch *b_jetchargedhadronfrac3; //!
TBranch *b_jetchargedhadronmult3; //!
TBranch *b_bjetpt1; //!
TBranch *b_bjeteta1; //!
TBranch *b_bjetphi1; //!
TBranch *b_bjetenergy1; //!
TBranch *b_bjetflavor1; //!
TBranch *b_bjetchargedhadronfrac1; //!
TBranch *b_bjetchargedhadronmult1; //!
TBranch *b_bjetpt2; //!
TBranch *b_bjeteta2; //!
TBranch *b_bjetphi2; //!
TBranch *b_bjetenergy2; //!
TBranch *b_bjetflavor2; //!
TBranch *b_bjetchargedhadronfrac2; //!
TBranch *b_bjetchargedhadronmult2; //!
TBranch *b_bjetpt3; //!
TBranch *b_bjeteta3; //!
TBranch *b_bjetphi3; //!
TBranch *b_bjetenergy3; //!
TBranch *b_bjetflavor3; //!
TBranch *b_bjetchargedhadronfrac3; //!
TBranch *b_bjetchargedhadronmult3; //!
TBranch *b_eleet1; //!
TBranch *b_elecharge1; //!
TBranch *b_elephi1; //!
TBranch *b_eleeta1; //!
TBranch *b_muonpt1; //!
TBranch *b_muoncharge1; //!
TBranch *b_muonphi1; //!
TBranch *b_muoneta1; //!
TBranch *b_muoniso1; //!
TBranch *b_muonchhadiso1; //!
TBranch *b_muonphotoniso1; //!
TBranch *b_muonneutralhadiso1; //!
TBranch *b_eleet2; //!
TBranch *b_elephi2; //!
TBranch *b_eleeta2; //!
TBranch *b_muonpt2; //!
TBranch *b_muonphi2; //!
TBranch *b_muoneta2; //!
TBranch *b_taupt1; //!
TBranch *b_taueta1; //!
TBranch *b_eleRelIso; //!
TBranch *b_muonRelIso; //!
TBranch *b_recomuonpt1; //!
TBranch *b_recomuonphi1; //!
TBranch *b_recomuoneta1; //!
TBranch *b_recomuoniso1; //!
TBranch *b_recomuonmindphijet1; //!
TBranch *b_recomuonpt2; //!
TBranch *b_recomuonphi2; //!
TBranch *b_recomuoneta2; //!
TBranch *b_recomuoniso2; //!
TBranch *b_recomuonmindphijet2; //!
TBranch *b_minDeltaPhiN_Luke; //!
TBranch *b_maxDeltaPhiN_Luke; //!
TBranch *b_deltaPhiN1_Luke; //!
TBranch *b_deltaPhiN2_Luke; //!
TBranch *b_deltaPhiN3_Luke; //!
TBranch *b_minTransverseMETSignificance; //!
TBranch *b_maxTransverseMETSignificance; //!
TBranch *b_transverseMETSignificance1; //!
TBranch *b_transverseMETSignificance2; //!
TBranch *b_transverseMETSignificance3; //!
TBranch *b_njets_lostJet; //!
TBranch *b_nbjets_lostJet; //!
TBranch *b_minDeltaPhiN_Luke_lostJet; //!
TBranch *b_maxDeltaPhiN_Luke_lostJet; //!
TBranch *b_deltaPhiN1_Luke_lostJet; //!
TBranch *b_deltaPhiN2_Luke_lostJet; //!
TBranch *b_deltaPhiN3_Luke_lostJet; //!
TBranch *b_minTransverseMETSignificance_lostJet; //!
TBranch *b_maxTransverseMETSignificance_lostJet; //!
TBranch *b_transverseMETSignificance1_lostJet; //!
TBranch *b_transverseMETSignificance2_lostJet; //!
TBranch *b_transverseMETSignificance3_lostJet; //!
TBranch *b_nLostJet; //!
ISRweights(TString sample);
virtual ~ISRweights();
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(TString selection);
void cleanup3B();
void cleanup2BT();
void cleanup1BT();
virtual Bool_t Notify();
virtual void Show(Long64_t entry = -1);
void loadIsrHistos(TString sample) ;
double getIsrWeight(int m0,int m12, double isrpt);
std::map< pair<int,int>, TH1F*> isrHistos_;
TFile* fISRweights_;
TH2D* scanSMSngen_;
TString sample_;
};
#endif
#ifdef ISRweights_cxx
ISRweights::ISRweights(TString sample) : fChain(0), fISRweights_(0) , scanSMSngen_(0), sample_(sample)
{
TTree* tree=0;
TString infile = "/cu3/joshmt/reducedTrees/V00-02-35v/reducedTree.CSVM_PF2PATjets_JES0_JERbias_PFMET_METunc0_PUunc0_BTagEff04_HLTEff0.";
infile += sample;
infile +=".root";
// 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(infile);
if (!f || !f->IsOpen()) {
f = new TFile(infile);
}
f->GetObject("reducedTree",tree);
scanSMSngen_ = (TH2D*) f->Get("scanSMSngen");
}
Init(tree);
loadIsrHistos(sample);
}
ISRweights::~ISRweights()
{
if (!fChain) return;
delete fChain->GetCurrentFile();
}
Int_t ISRweights::GetEntry(Long64_t entry)
{
// Read contents of entry.
if (!fChain) return 0;
return fChain->GetEntry(entry);
}
Long64_t ISRweights::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 ISRweights::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 branch addresses and branch pointers
if (!tree) return;
fChain = tree;
fCurrent = -1;
fChain->SetMakeClass(1);
fChain->SetBranchAddress("weight", &weight, &b_weight);
fChain->SetBranchAddress("scanCrossSection", &scanCrossSection, &b_scanCrossSection);
fChain->SetBranchAddress("scanCrossSectionPlus", &scanCrossSectionPlus, &b_scanCrossSectionPlus);
fChain->SetBranchAddress("scanCrossSectionMinus", &scanCrossSectionMinus, &b_scanCrossSectionMinus);
fChain->SetBranchAddress("runNumber", &runNumber, &b_runNumber);
fChain->SetBranchAddress("lumiSection", &lumiSection, &b_lumiSection);
fChain->SetBranchAddress("eventNumber", &eventNumber, &b_eventNumber);
fChain->SetBranchAddress("m0", &m0, &b_m0);
fChain->SetBranchAddress("m12", &m12, &b_m12);
fChain->SetBranchAddress("W1decayType", &W1decayType, &b_W1decayType);
fChain->SetBranchAddress("W2decayType", &W2decayType, &b_W2decayType);
fChain->SetBranchAddress("decayType", &decayType, &b_decayType);
fChain->SetBranchAddress("btagIPweight", &btagIPweight, &b_btagIPweight);
fChain->SetBranchAddress("PUweight", &PUweight, &b_PUweight);
fChain->SetBranchAddress("hltHTeff", &hltHTeff, &b_hltHTeff);
fChain->SetBranchAddress("hltMHTeff", &hltMHTeff, &b_hltMHTeff);
fChain->SetBranchAddress("hltMHTeffBNN", &hltMHTeffBNN, &b_hltMHTeffBNN);
fChain->SetBranchAddress("hltMHTeffBNNUp", &hltMHTeffBNNUp, &b_hltMHTeffBNNUp);
fChain->SetBranchAddress("hltMHTeffBNNDown", &hltMHTeffBNNDown, &b_hltMHTeffBNNDown);
fChain->SetBranchAddress("pdfWeightsCTEQ", pdfWeightsCTEQ, &b_pdfWeightsCTEQ);
fChain->SetBranchAddress("pdfWeightsMSTW", pdfWeightsMSTW, &b_pdfWeightsMSTW);
fChain->SetBranchAddress("pdfWeightsNNPDF", pdfWeightsNNPDF, &b_pdfWeightsNNPDF);
fChain->SetBranchAddress("prob0", &prob0, &b_prob0);
fChain->SetBranchAddress("probge1", &probge1, &b_probge1);
fChain->SetBranchAddress("prob1", &prob1, &b_prob1);
fChain->SetBranchAddress("probge2", &probge2, &b_probge2);
fChain->SetBranchAddress("prob2", &prob2, &b_prob2);
fChain->SetBranchAddress("probge3", &probge3, &b_probge3);
fChain->SetBranchAddress("prob0_HFplus", &prob0_HFplus, &b_prob0_HFplus);
fChain->SetBranchAddress("probge1_HFplus", &probge1_HFplus, &b_probge1_HFplus);
fChain->SetBranchAddress("prob1_HFplus", &prob1_HFplus, &b_prob1_HFplus);
fChain->SetBranchAddress("probge2_HFplus", &probge2_HFplus, &b_probge2_HFplus);
fChain->SetBranchAddress("prob2_HFplus", &prob2_HFplus, &b_prob2_HFplus);
fChain->SetBranchAddress("probge3_HFplus", &probge3_HFplus, &b_probge3_HFplus);
fChain->SetBranchAddress("prob0_HFminus", &prob0_HFminus, &b_prob0_HFminus);
fChain->SetBranchAddress("probge1_HFminus", &probge1_HFminus, &b_probge1_HFminus);
fChain->SetBranchAddress("prob1_HFminus", &prob1_HFminus, &b_prob1_HFminus);
fChain->SetBranchAddress("probge2_HFminus", &probge2_HFminus, &b_probge2_HFminus);
fChain->SetBranchAddress("prob2_HFminus", &prob2_HFminus, &b_prob2_HFminus);
fChain->SetBranchAddress("probge3_HFminus", &probge3_HFminus, &b_probge3_HFminus);
fChain->SetBranchAddress("prob0_LFplus", &prob0_LFplus, &b_prob0_LFplus);
fChain->SetBranchAddress("probge1_LFplus", &probge1_LFplus, &b_probge1_LFplus);
fChain->SetBranchAddress("prob1_LFplus", &prob1_LFplus, &b_prob1_LFplus);
fChain->SetBranchAddress("probge2_LFplus", &probge2_LFplus, &b_probge2_LFplus);
fChain->SetBranchAddress("prob2_LFplus", &prob2_LFplus, &b_prob2_LFplus);
fChain->SetBranchAddress("probge3_LFplus", &probge3_LFplus, &b_probge3_LFplus);
fChain->SetBranchAddress("prob0_LFminus", &prob0_LFminus, &b_prob0_LFminus);
fChain->SetBranchAddress("probge1_LFminus", &probge1_LFminus, &b_probge1_LFminus);
fChain->SetBranchAddress("prob1_LFminus", &prob1_LFminus, &b_prob1_LFminus);
fChain->SetBranchAddress("probge2_LFminus", &probge2_LFminus, &b_probge2_LFminus);
fChain->SetBranchAddress("prob2_LFminus", &prob2_LFminus, &b_prob2_LFminus);
fChain->SetBranchAddress("probge3_LFminus", &probge3_LFminus, &b_probge3_LFminus);
fChain->SetBranchAddress("cutHT", &cutHT, &b_cutHT);
fChain->SetBranchAddress("cutPV", &cutPV, &b_cutPV);
fChain->SetBranchAddress("cutTrigger", &cutTrigger, &b_cutTrigger);
fChain->SetBranchAddress("cut3Jets", &cut3Jets, &b_cut3Jets);
fChain->SetBranchAddress("cutEleVeto", &cutEleVeto, &b_cutEleVeto);
fChain->SetBranchAddress("cutMuVeto", &cutMuVeto, &b_cutMuVeto);
fChain->SetBranchAddress("cutMET", &cutMET, &b_cutMET);
fChain->SetBranchAddress("cutDeltaPhi", &cutDeltaPhi, &b_cutDeltaPhi);
fChain->SetBranchAddress("csctighthaloFilter", &csctighthaloFilter, &b_csctighthaloFilter);
fChain->SetBranchAddress("eenoiseFilter", &eenoiseFilter, &b_eenoiseFilter);
fChain->SetBranchAddress("greedymuonFilter", &greedymuonFilter, &b_greedymuonFilter);
fChain->SetBranchAddress("hbhenoiseFilter", &hbhenoiseFilter, &b_hbhenoiseFilter);
fChain->SetBranchAddress("inconsistentmuonFilter", &inconsistentmuonFilter, &b_inconsistentmuonFilter);
fChain->SetBranchAddress("ra2ecaltpFilter", &ra2ecaltpFilter, &b_ra2ecaltpFilter);
fChain->SetBranchAddress("scrapingvetoFilter", &scrapingvetoFilter, &b_scrapingvetoFilter);
fChain->SetBranchAddress("trackingfailureFilter", &trackingfailureFilter, &b_trackingfailureFilter);
fChain->SetBranchAddress("trackingfailureFilterPFLOW", &trackingfailureFilterPFLOW, &b_trackingfailureFilterPFLOW);
fChain->SetBranchAddress("recovrechitFilter", &recovrechitFilter, &b_recovrechitFilter);
fChain->SetBranchAddress("passCleaning", &passCleaning, &b_passCleaning);
fChain->SetBranchAddress("PBNRcode", &PBNRcode, &b_PBNRcode);
fChain->SetBranchAddress("buggyEvent", &buggyEvent, &b_buggyEvent);
fChain->SetBranchAddress("nGoodPV", &nGoodPV, &b_nGoodPV);
fChain->SetBranchAddress("SUSY_nb", &SUSY_nb, &b_SUSY_nb);
fChain->SetBranchAddress("SUSY_process", &SUSY_process, &b_SUSY_process);
fChain->SetBranchAddress("SUSY_recoilPt", &SUSY_recoilPt, &b_SUSY_recoilPt);
fChain->SetBranchAddress("njets", &njets, &b_njets);
fChain->SetBranchAddress("njets30", &njets30, &b_njets30);
fChain->SetBranchAddress("nbjets", &nbjets, &b_nbjets);
fChain->SetBranchAddress("ntruebjets", &ntruebjets, &b_ntruebjets);
fChain->SetBranchAddress("nElectrons", &nElectrons, &b_nElectrons);
fChain->SetBranchAddress("nMuons", &nMuons, &b_nMuons);
fChain->SetBranchAddress("nTaus", &nTaus, &b_nTaus);
fChain->SetBranchAddress("nElectrons5", &nElectrons5, &b_nElectrons5);
fChain->SetBranchAddress("nMuons5", &nMuons5, &b_nMuons5);
fChain->SetBranchAddress("nElectrons15", &nElectrons15, &b_nElectrons15);
fChain->SetBranchAddress("nMuons15", &nMuons15, &b_nMuons15);
fChain->SetBranchAddress("nbjetsSSVM", &nbjetsSSVM, &b_nbjetsSSVM);
fChain->SetBranchAddress("nbjetsSSVHPT", &nbjetsSSVHPT, &b_nbjetsSSVHPT);
fChain->SetBranchAddress("nbjetsTCHPT", &nbjetsTCHPT, &b_nbjetsTCHPT);
fChain->SetBranchAddress("nbjetsTCHET", &nbjetsTCHET, &b_nbjetsTCHET);
fChain->SetBranchAddress("nbjetsTCHPM", &nbjetsTCHPM, &b_nbjetsTCHPM);
fChain->SetBranchAddress("nbjetsCSVM", &nbjetsCSVM, &b_nbjetsCSVM);
fChain->SetBranchAddress("nbjetsCSVL", &nbjetsCSVL, &b_nbjetsCSVL);
fChain->SetBranchAddress("isRealData", &isRealData, &b_isRealData);
fChain->SetBranchAddress("pass_utilityHLT", &pass_utilityHLT, &b_pass_utilityHLT);
fChain->SetBranchAddress("prescaleUtilityHLT", &prescaleUtilityHLT, &b_prescaleUtilityHLT);
fChain->SetBranchAddress("versionUtilityHLT", &versionUtilityHLT, &b_versionUtilityHLT);
fChain->SetBranchAddress("pass_utilityHLT_HT300_CentralJet30_BTagIP", &pass_utilityHLT_HT300_CentralJet30_BTagIP, &b_pass_utilityHLT_HT300_CentralJet30_BTagIP);
fChain->SetBranchAddress("prescale_utilityHLT_HT300_CentralJet30_BTagIP", &prescale_utilityHLT_HT300_CentralJet30_BTagIP, &b_prescale_utilityHLT_HT300_CentralJet30_BTagIP);
fChain->SetBranchAddress("HT", &HT, &b_HT);
fChain->SetBranchAddress("ST", &ST, &b_ST);
fChain->SetBranchAddress("MET", &MET, &b_MET);
fChain->SetBranchAddress("METphi", &METphi, &b_METphi);
fChain->SetBranchAddress("MHT", &MHT, &b_MHT);
fChain->SetBranchAddress("caloMET", &caloMET, &b_caloMET);
fChain->SetBranchAddress("METPFType1", &METPFType1, &b_METPFType1);
fChain->SetBranchAddress("METPFType1phi", &METPFType1phi, &b_METPFType1phi);
fChain->SetBranchAddress("bestWMass", &bestWMass, &b_bestWMass);
fChain->SetBranchAddress("bestTopMass", &bestTopMass, &b_bestTopMass);
fChain->SetBranchAddress("topCosHel", &topCosHel, &b_topCosHel);
fChain->SetBranchAddress("WCosHel", &WCosHel, &b_WCosHel);
fChain->SetBranchAddress("MT_Wlep", &MT_Wlep, &b_MT_Wlep);
fChain->SetBranchAddress("MT_Wlep5", &MT_Wlep5, &b_MT_Wlep5);
fChain->SetBranchAddress("MT_Wlep15", &MT_Wlep15, &b_MT_Wlep15);
fChain->SetBranchAddress("minDeltaPhi", &minDeltaPhi, &b_minDeltaPhi);
fChain->SetBranchAddress("minDeltaPhiAll", &minDeltaPhiAll, &b_minDeltaPhiAll);
fChain->SetBranchAddress("minDeltaPhiAll30", &minDeltaPhiAll30, &b_minDeltaPhiAll30);
fChain->SetBranchAddress("minDeltaPhi30_eta5_noIdAll", &minDeltaPhi30_eta5_noIdAll, &b_minDeltaPhi30_eta5_noIdAll);
fChain->SetBranchAddress("minDeltaPhiMetTau", &minDeltaPhiMetTau, &b_minDeltaPhiMetTau);
fChain->SetBranchAddress("deltaPhi1", &deltaPhi1, &b_deltaPhi1);
fChain->SetBranchAddress("deltaPhi2", &deltaPhi2, &b_deltaPhi2);
fChain->SetBranchAddress("deltaPhi3", &deltaPhi3, &b_deltaPhi3);
fChain->SetBranchAddress("maxDeltaPhi", &maxDeltaPhi, &b_maxDeltaPhi);
fChain->SetBranchAddress("maxDeltaPhiAll", &maxDeltaPhiAll, &b_maxDeltaPhiAll);
fChain->SetBranchAddress("maxDeltaPhiAll30", &maxDeltaPhiAll30, &b_maxDeltaPhiAll30);
fChain->SetBranchAddress("maxDeltaPhi30_eta5_noIdAll", &maxDeltaPhi30_eta5_noIdAll, &b_maxDeltaPhi30_eta5_noIdAll);
fChain->SetBranchAddress("sumDeltaPhi", &sumDeltaPhi, &b_sumDeltaPhi);
fChain->SetBranchAddress("diffDeltaPhi", &diffDeltaPhi, &b_diffDeltaPhi);
fChain->SetBranchAddress("deltaPhiStar", &deltaPhiStar, &b_deltaPhiStar);
fChain->SetBranchAddress("deltaPhiStar_badjet_pt", &deltaPhiStar_badjet_pt, &b_deltaPhiStar_badjet_pt);
fChain->SetBranchAddress("deltaPhiStar_badjet_phi", &deltaPhiStar_badjet_phi, &b_deltaPhiStar_badjet_phi);
fChain->SetBranchAddress("deltaPhiStar_badjet_eta", &deltaPhiStar_badjet_eta, &b_deltaPhiStar_badjet_eta);
fChain->SetBranchAddress("minDeltaPhiN", &minDeltaPhiN, &b_minDeltaPhiN);
fChain->SetBranchAddress("deltaPhiN1", &deltaPhiN1, &b_deltaPhiN1);
fChain->SetBranchAddress("deltaPhiN2", &deltaPhiN2, &b_deltaPhiN2);
fChain->SetBranchAddress("deltaPhiN3", &deltaPhiN3, &b_deltaPhiN3);
fChain->SetBranchAddress("minDeltaPhi_chosenJet", &minDeltaPhi_chosenJet, &b_minDeltaPhi_chosenJet);
fChain->SetBranchAddress("minDeltaPhiN_chosenJet", &minDeltaPhiN_chosenJet, &b_minDeltaPhiN_chosenJet);
fChain->SetBranchAddress("maxJetMis_chosenJet", &maxJetMis_chosenJet, &b_maxJetMis_chosenJet);
fChain->SetBranchAddress("maxJetFracMis_chosenJet", &maxJetFracMis_chosenJet, &b_maxJetFracMis_chosenJet);
fChain->SetBranchAddress("jetMisCategoryT1", &jetMisCategoryT1, &b_jetMisCategoryT1);
fChain->SetBranchAddress("jetMisCategoryT1_noMETfraction", &jetMisCategoryT1_noMETfraction, &b_jetMisCategoryT1_noMETfraction);
fChain->SetBranchAddress("jetMisCategoryT2", &jetMisCategoryT2, &b_jetMisCategoryT2);
fChain->SetBranchAddress("jetMisCategoryT2_noMETfraction", &jetMisCategoryT2_noMETfraction, &b_jetMisCategoryT2_noMETfraction);
fChain->SetBranchAddress("minDeltaPhiN_deltaT", &minDeltaPhiN_deltaT, &b_minDeltaPhiN_deltaT);
fChain->SetBranchAddress("deltaT1", &deltaT1, &b_deltaT1);
fChain->SetBranchAddress("deltaT2", &deltaT2, &b_deltaT2);
fChain->SetBranchAddress("deltaT3", &deltaT3, &b_deltaT3);
fChain->SetBranchAddress("minDeltaPhiN_MC", &minDeltaPhiN_MC, &b_minDeltaPhiN_MC);
fChain->SetBranchAddress("deltaPhiN_MC1", &deltaPhiN_MC1, &b_deltaPhiN_MC1);
fChain->SetBranchAddress("deltaPhiN_MC2", &deltaPhiN_MC2, &b_deltaPhiN_MC2);
fChain->SetBranchAddress("deltaPhiN_MC3", &deltaPhiN_MC3, &b_deltaPhiN_MC3);