-
Notifications
You must be signed in to change notification settings - Fork 0
/
StopCMS3.cc
5858 lines (5853 loc) · 201 KB
/
StopCMS3.cc
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
#include "StopCMS3.h"
StopCMS3 stopcms3;
void StopCMS3::Init(TTree *tree) {
lep1_p4_branch = 0;
if (tree->GetBranch("lep1_p4") != 0) {
lep1_p4_branch = tree->GetBranch("lep1_p4");
if (lep1_p4_branch) {lep1_p4_branch->SetAddress(&lep1_p4_);}
}
lep1_mcp4_branch = 0;
if (tree->GetBranch("lep1_mcp4") != 0) {
lep1_mcp4_branch = tree->GetBranch("lep1_mcp4");
if (lep1_mcp4_branch) {lep1_mcp4_branch->SetAddress(&lep1_mcp4_);}
}
lep2_p4_branch = 0;
if (tree->GetBranch("lep2_p4") != 0) {
lep2_p4_branch = tree->GetBranch("lep2_p4");
if (lep2_p4_branch) {lep2_p4_branch->SetAddress(&lep2_p4_);}
}
lep2_mcp4_branch = 0;
if (tree->GetBranch("lep2_mcp4") != 0) {
lep2_mcp4_branch = tree->GetBranch("lep2_mcp4");
if (lep2_mcp4_branch) {lep2_mcp4_branch->SetAddress(&lep2_mcp4_);}
}
ph_p4_branch = 0;
if (tree->GetBranch("ph_p4") != 0) {
ph_p4_branch = tree->GetBranch("ph_p4");
if (ph_p4_branch) {ph_p4_branch->SetAddress(&ph_p4_);}
}
ph_mcp4_branch = 0;
if (tree->GetBranch("ph_mcp4") != 0) {
ph_mcp4_branch = tree->GetBranch("ph_mcp4");
if (ph_mcp4_branch) {ph_mcp4_branch->SetAddress(&ph_mcp4_);}
}
ak4pfjets_p4_branch = 0;
if (tree->GetBranch("ak4pfjets_p4") != 0) {
ak4pfjets_p4_branch = tree->GetBranch("ak4pfjets_p4");
if (ak4pfjets_p4_branch) {ak4pfjets_p4_branch->SetAddress(&ak4pfjets_p4_);}
}
ak4pfjets_leadMEDbjet_p4_branch = 0;
if (tree->GetBranch("ak4pfjets_leadMEDbjet_p4") != 0) {
ak4pfjets_leadMEDbjet_p4_branch = tree->GetBranch("ak4pfjets_leadMEDbjet_p4");
if (ak4pfjets_leadMEDbjet_p4_branch) {ak4pfjets_leadMEDbjet_p4_branch->SetAddress(&ak4pfjets_leadMEDbjet_p4_);}
}
ak4pfjets_leadbtag_p4_branch = 0;
if (tree->GetBranch("ak4pfjets_leadbtag_p4") != 0) {
ak4pfjets_leadbtag_p4_branch = tree->GetBranch("ak4pfjets_leadbtag_p4");
if (ak4pfjets_leadbtag_p4_branch) {ak4pfjets_leadbtag_p4_branch->SetAddress(&ak4pfjets_leadbtag_p4_);}
}
ak4genjets_p4_branch = 0;
if (tree->GetBranch("ak4genjets_p4") != 0) {
ak4genjets_p4_branch = tree->GetBranch("ak4genjets_p4");
if (ak4genjets_p4_branch) {ak4genjets_p4_branch->SetAddress(&ak4genjets_p4_);}
}
genleps_p4_branch = 0;
if (tree->GetBranch("genleps_p4") != 0) {
genleps_p4_branch = tree->GetBranch("genleps_p4");
if (genleps_p4_branch) {genleps_p4_branch->SetAddress(&genleps_p4_);}
}
genleps_motherp4_branch = 0;
if (tree->GetBranch("genleps_motherp4") != 0) {
genleps_motherp4_branch = tree->GetBranch("genleps_motherp4");
if (genleps_motherp4_branch) {genleps_motherp4_branch->SetAddress(&genleps_motherp4_);}
}
genleps_gmotherp4_branch = 0;
if (tree->GetBranch("genleps_gmotherp4") != 0) {
genleps_gmotherp4_branch = tree->GetBranch("genleps_gmotherp4");
if (genleps_gmotherp4_branch) {genleps_gmotherp4_branch->SetAddress(&genleps_gmotherp4_);}
}
gennus_p4_branch = 0;
if (tree->GetBranch("gennus_p4") != 0) {
gennus_p4_branch = tree->GetBranch("gennus_p4");
if (gennus_p4_branch) {gennus_p4_branch->SetAddress(&gennus_p4_);}
}
gennus_motherp4_branch = 0;
if (tree->GetBranch("gennus_motherp4") != 0) {
gennus_motherp4_branch = tree->GetBranch("gennus_motherp4");
if (gennus_motherp4_branch) {gennus_motherp4_branch->SetAddress(&gennus_motherp4_);}
}
gennus_gmotherp4_branch = 0;
if (tree->GetBranch("gennus_gmotherp4") != 0) {
gennus_gmotherp4_branch = tree->GetBranch("gennus_gmotherp4");
if (gennus_gmotherp4_branch) {gennus_gmotherp4_branch->SetAddress(&gennus_gmotherp4_);}
}
genqs_p4_branch = 0;
if (tree->GetBranch("genqs_p4") != 0) {
genqs_p4_branch = tree->GetBranch("genqs_p4");
if (genqs_p4_branch) {genqs_p4_branch->SetAddress(&genqs_p4_);}
}
genqs_motherp4_branch = 0;
if (tree->GetBranch("genqs_motherp4") != 0) {
genqs_motherp4_branch = tree->GetBranch("genqs_motherp4");
if (genqs_motherp4_branch) {genqs_motherp4_branch->SetAddress(&genqs_motherp4_);}
}
genqs_gmotherp4_branch = 0;
if (tree->GetBranch("genqs_gmotherp4") != 0) {
genqs_gmotherp4_branch = tree->GetBranch("genqs_gmotherp4");
if (genqs_gmotherp4_branch) {genqs_gmotherp4_branch->SetAddress(&genqs_gmotherp4_);}
}
genbosons_p4_branch = 0;
if (tree->GetBranch("genbosons_p4") != 0) {
genbosons_p4_branch = tree->GetBranch("genbosons_p4");
if (genbosons_p4_branch) {genbosons_p4_branch->SetAddress(&genbosons_p4_);}
}
genbosons_motherp4_branch = 0;
if (tree->GetBranch("genbosons_motherp4") != 0) {
genbosons_motherp4_branch = tree->GetBranch("genbosons_motherp4");
if (genbosons_motherp4_branch) {genbosons_motherp4_branch->SetAddress(&genbosons_motherp4_);}
}
genbosons_gmotherp4_branch = 0;
if (tree->GetBranch("genbosons_gmotherp4") != 0) {
genbosons_gmotherp4_branch = tree->GetBranch("genbosons_gmotherp4");
if (genbosons_gmotherp4_branch) {genbosons_gmotherp4_branch->SetAddress(&genbosons_gmotherp4_);}
}
gensusy_p4_branch = 0;
if (tree->GetBranch("gensusy_p4") != 0) {
gensusy_p4_branch = tree->GetBranch("gensusy_p4");
if (gensusy_p4_branch) {gensusy_p4_branch->SetAddress(&gensusy_p4_);}
}
gensusy_motherp4_branch = 0;
if (tree->GetBranch("gensusy_motherp4") != 0) {
gensusy_motherp4_branch = tree->GetBranch("gensusy_motherp4");
if (gensusy_motherp4_branch) {gensusy_motherp4_branch->SetAddress(&gensusy_motherp4_);}
}
gensusy_gmotherp4_branch = 0;
if (tree->GetBranch("gensusy_gmotherp4") != 0) {
gensusy_gmotherp4_branch = tree->GetBranch("gensusy_gmotherp4");
if (gensusy_gmotherp4_branch) {gensusy_gmotherp4_branch->SetAddress(&gensusy_gmotherp4_);}
}
tau_leadtrack_p4_branch = 0;
if (tree->GetBranch("tau_leadtrack_p4") != 0) {
tau_leadtrack_p4_branch = tree->GetBranch("tau_leadtrack_p4");
if (tau_leadtrack_p4_branch) {tau_leadtrack_p4_branch->SetAddress(&tau_leadtrack_p4_);}
}
tau_leadneutral_p4_branch = 0;
if (tree->GetBranch("tau_leadneutral_p4") != 0) {
tau_leadneutral_p4_branch = tree->GetBranch("tau_leadneutral_p4");
if (tau_leadneutral_p4_branch) {tau_leadneutral_p4_branch->SetAddress(&tau_leadneutral_p4_);}
}
tau_p4_branch = 0;
if (tree->GetBranch("tau_p4") != 0) {
tau_p4_branch = tree->GetBranch("tau_p4");
if (tau_p4_branch) {tau_p4_branch->SetAddress(&tau_p4_);}
}
isoTracks_p4_branch = 0;
if (tree->GetBranch("isoTracks_p4") != 0) {
isoTracks_p4_branch = tree->GetBranch("isoTracks_p4");
if (isoTracks_p4_branch) {isoTracks_p4_branch->SetAddress(&isoTracks_p4_);}
}
tree->SetMakeClass(1);
run_branch = 0;
if (tree->GetBranch("run") != 0) {
run_branch = tree->GetBranch("run");
if (run_branch) {run_branch->SetAddress(&run_);}
}
ls_branch = 0;
if (tree->GetBranch("ls") != 0) {
ls_branch = tree->GetBranch("ls");
if (ls_branch) {ls_branch->SetAddress(&ls_);}
}
evt_branch = 0;
if (tree->GetBranch("evt") != 0) {
evt_branch = tree->GetBranch("evt");
if (evt_branch) {evt_branch->SetAddress(&evt_);}
}
nvtxs_branch = 0;
if (tree->GetBranch("nvtxs") != 0) {
nvtxs_branch = tree->GetBranch("nvtxs");
if (nvtxs_branch) {nvtxs_branch->SetAddress(&nvtxs_);}
}
pu_nvtxs_branch = 0;
if (tree->GetBranch("pu_nvtxs") != 0) {
pu_nvtxs_branch = tree->GetBranch("pu_nvtxs");
if (pu_nvtxs_branch) {pu_nvtxs_branch->SetAddress(&pu_nvtxs_);}
}
pfmet_branch = 0;
if (tree->GetBranch("pfmet") != 0) {
pfmet_branch = tree->GetBranch("pfmet");
if (pfmet_branch) {pfmet_branch->SetAddress(&pfmet_);}
}
pfmet_phi_branch = 0;
if (tree->GetBranch("pfmet_phi") != 0) {
pfmet_phi_branch = tree->GetBranch("pfmet_phi");
if (pfmet_phi_branch) {pfmet_phi_branch->SetAddress(&pfmet_phi_);}
}
pfmet_rl_branch = 0;
if (tree->GetBranch("pfmet_rl") != 0) {
pfmet_rl_branch = tree->GetBranch("pfmet_rl");
if (pfmet_rl_branch) {pfmet_rl_branch->SetAddress(&pfmet_rl_);}
}
pfmet_phi_rl_branch = 0;
if (tree->GetBranch("pfmet_phi_rl") != 0) {
pfmet_phi_rl_branch = tree->GetBranch("pfmet_phi_rl");
if (pfmet_phi_rl_branch) {pfmet_phi_rl_branch->SetAddress(&pfmet_phi_rl_);}
}
scale1fb_branch = 0;
if (tree->GetBranch("scale1fb") != 0) {
scale1fb_branch = tree->GetBranch("scale1fb");
if (scale1fb_branch) {scale1fb_branch->SetAddress(&scale1fb_);}
}
xsec_branch = 0;
if (tree->GetBranch("xsec") != 0) {
xsec_branch = tree->GetBranch("xsec");
if (xsec_branch) {xsec_branch->SetAddress(&xsec_);}
}
xsec_uncert_branch = 0;
if (tree->GetBranch("xsec_uncert") != 0) {
xsec_uncert_branch = tree->GetBranch("xsec_uncert");
if (xsec_uncert_branch) {xsec_uncert_branch->SetAddress(&xsec_uncert_);}
}
kfactor_branch = 0;
if (tree->GetBranch("kfactor") != 0) {
kfactor_branch = tree->GetBranch("kfactor");
if (kfactor_branch) {kfactor_branch->SetAddress(&kfactor_);}
}
pu_ntrue_branch = 0;
if (tree->GetBranch("pu_ntrue") != 0) {
pu_ntrue_branch = tree->GetBranch("pu_ntrue");
if (pu_ntrue_branch) {pu_ntrue_branch->SetAddress(&pu_ntrue_);}
}
ngoodleps_branch = 0;
if (tree->GetBranch("ngoodleps") != 0) {
ngoodleps_branch = tree->GetBranch("ngoodleps");
if (ngoodleps_branch) {ngoodleps_branch->SetAddress(&ngoodleps_);}
}
nvetoleps_branch = 0;
if (tree->GetBranch("nvetoleps") != 0) {
nvetoleps_branch = tree->GetBranch("nvetoleps");
if (nvetoleps_branch) {nvetoleps_branch->SetAddress(&nvetoleps_);}
}
is_data_branch = 0;
if (tree->GetBranch("is_data") != 0) {
is_data_branch = tree->GetBranch("is_data");
if (is_data_branch) {is_data_branch->SetAddress(&is_data_);}
}
dataset_branch = 0;
if (tree->GetBranch("dataset") != 0) {
dataset_branch = tree->GetBranch("dataset");
if (dataset_branch) {dataset_branch->SetAddress(&dataset_);}
}
filename_branch = 0;
if (tree->GetBranch("filename") != 0) {
filename_branch = tree->GetBranch("filename");
if (filename_branch) {filename_branch->SetAddress(&filename_);}
}
cms3tag_branch = 0;
if (tree->GetBranch("cms3tag") != 0) {
cms3tag_branch = tree->GetBranch("cms3tag");
if (cms3tag_branch) {cms3tag_branch->SetAddress(&cms3tag_);}
}
nEvents_branch = 0;
if (tree->GetBranch("nEvents") != 0) {
nEvents_branch = tree->GetBranch("nEvents");
if (nEvents_branch) {nEvents_branch->SetAddress(&nEvents_);}
}
nEvents_goodvtx_branch = 0;
if (tree->GetBranch("nEvents_goodvtx") != 0) {
nEvents_goodvtx_branch = tree->GetBranch("nEvents_goodvtx");
if (nEvents_goodvtx_branch) {nEvents_goodvtx_branch->SetAddress(&nEvents_goodvtx_);}
}
nEvents_MET30_branch = 0;
if (tree->GetBranch("nEvents_MET30") != 0) {
nEvents_MET30_branch = tree->GetBranch("nEvents_MET30");
if (nEvents_MET30_branch) {nEvents_MET30_branch->SetAddress(&nEvents_MET30_);}
}
nEvents_1goodlep_branch = 0;
if (tree->GetBranch("nEvents_1goodlep") != 0) {
nEvents_1goodlep_branch = tree->GetBranch("nEvents_1goodlep");
if (nEvents_1goodlep_branch) {nEvents_1goodlep_branch->SetAddress(&nEvents_1goodlep_);}
}
nEvents_2goodjets_branch = 0;
if (tree->GetBranch("nEvents_2goodjets") != 0) {
nEvents_2goodjets_branch = tree->GetBranch("nEvents_2goodjets");
if (nEvents_2goodjets_branch) {nEvents_2goodjets_branch->SetAddress(&nEvents_2goodjets_);}
}
is0lep_branch = 0;
if (tree->GetBranch("is0lep") != 0) {
is0lep_branch = tree->GetBranch("is0lep");
if (is0lep_branch) {is0lep_branch->SetAddress(&is0lep_);}
}
is1lep_branch = 0;
if (tree->GetBranch("is1lep") != 0) {
is1lep_branch = tree->GetBranch("is1lep");
if (is1lep_branch) {is1lep_branch->SetAddress(&is1lep_);}
}
is2lep_branch = 0;
if (tree->GetBranch("is2lep") != 0) {
is2lep_branch = tree->GetBranch("is2lep");
if (is2lep_branch) {is2lep_branch->SetAddress(&is2lep_);}
}
isZtoNuNu_branch = 0;
if (tree->GetBranch("isZtoNuNu") != 0) {
isZtoNuNu_branch = tree->GetBranch("isZtoNuNu");
if (isZtoNuNu_branch) {isZtoNuNu_branch->SetAddress(&isZtoNuNu_);}
}
is1lepFromW_branch = 0;
if (tree->GetBranch("is1lepFromW") != 0) {
is1lepFromW_branch = tree->GetBranch("is1lepFromW");
if (is1lepFromW_branch) {is1lepFromW_branch->SetAddress(&is1lepFromW_);}
}
is1lepFromTop_branch = 0;
if (tree->GetBranch("is1lepFromTop") != 0) {
is1lepFromTop_branch = tree->GetBranch("is1lepFromTop");
if (is1lepFromTop_branch) {is1lepFromTop_branch->SetAddress(&is1lepFromTop_);}
}
MT2W_branch = 0;
if (tree->GetBranch("MT2W") != 0) {
MT2W_branch = tree->GetBranch("MT2W");
if (MT2W_branch) {MT2W_branch->SetAddress(&MT2W_);}
}
MT2W_rl_branch = 0;
if (tree->GetBranch("MT2W_rl") != 0) {
MT2W_rl_branch = tree->GetBranch("MT2W_rl");
if (MT2W_rl_branch) {MT2W_rl_branch->SetAddress(&MT2W_rl_);}
}
mindphi_met_j1_j2_branch = 0;
if (tree->GetBranch("mindphi_met_j1_j2") != 0) {
mindphi_met_j1_j2_branch = tree->GetBranch("mindphi_met_j1_j2");
if (mindphi_met_j1_j2_branch) {mindphi_met_j1_j2_branch->SetAddress(&mindphi_met_j1_j2_);}
}
mindphi_met_j1_j2_rl_branch = 0;
if (tree->GetBranch("mindphi_met_j1_j2_rl") != 0) {
mindphi_met_j1_j2_rl_branch = tree->GetBranch("mindphi_met_j1_j2_rl");
if (mindphi_met_j1_j2_rl_branch) {mindphi_met_j1_j2_rl_branch->SetAddress(&mindphi_met_j1_j2_rl_);}
}
mt_met_lep_branch = 0;
if (tree->GetBranch("mt_met_lep") != 0) {
mt_met_lep_branch = tree->GetBranch("mt_met_lep");
if (mt_met_lep_branch) {mt_met_lep_branch->SetAddress(&mt_met_lep_);}
}
mt_met_lep_rl_branch = 0;
if (tree->GetBranch("mt_met_lep_rl") != 0) {
mt_met_lep_rl_branch = tree->GetBranch("mt_met_lep_rl");
if (mt_met_lep_rl_branch) {mt_met_lep_rl_branch->SetAddress(&mt_met_lep_rl_);}
}
hadronic_top_chi2_branch = 0;
if (tree->GetBranch("hadronic_top_chi2") != 0) {
hadronic_top_chi2_branch = tree->GetBranch("hadronic_top_chi2");
if (hadronic_top_chi2_branch) {hadronic_top_chi2_branch->SetAddress(&hadronic_top_chi2_);}
}
ak4pfjets_rho_branch = 0;
if (tree->GetBranch("ak4pfjets_rho") != 0) {
ak4pfjets_rho_branch = tree->GetBranch("ak4pfjets_rho");
if (ak4pfjets_rho_branch) {ak4pfjets_rho_branch->SetAddress(&ak4pfjets_rho_);}
}
pdf_up_weight_branch = 0;
if (tree->GetBranch("pdf_up_weight") != 0) {
pdf_up_weight_branch = tree->GetBranch("pdf_up_weight");
if (pdf_up_weight_branch) {pdf_up_weight_branch->SetAddress(&pdf_up_weight_);}
}
pdf_down_weight_branch = 0;
if (tree->GetBranch("pdf_down_weight") != 0) {
pdf_down_weight_branch = tree->GetBranch("pdf_down_weight");
if (pdf_down_weight_branch) {pdf_down_weight_branch->SetAddress(&pdf_down_weight_);}
}
genweightsID_branch = 0;
if (tree->GetBranch("genweightsID") != 0) {
genweightsID_branch = tree->GetBranch("genweightsID");
if (genweightsID_branch) {genweightsID_branch->SetAddress(&genweightsID_);}
}
genweights_branch = 0;
if (tree->GetBranch("genweights") != 0) {
genweights_branch = tree->GetBranch("genweights");
if (genweights_branch) {genweights_branch->SetAddress(&genweights_);}
}
weight_btagsf_branch = 0;
if (tree->GetBranch("weight_btagsf") != 0) {
weight_btagsf_branch = tree->GetBranch("weight_btagsf");
if (weight_btagsf_branch) {weight_btagsf_branch->SetAddress(&weight_btagsf_);}
}
weight_btagsf_heavy_UP_branch = 0;
if (tree->GetBranch("weight_btagsf_heavy_UP") != 0) {
weight_btagsf_heavy_UP_branch = tree->GetBranch("weight_btagsf_heavy_UP");
if (weight_btagsf_heavy_UP_branch) {weight_btagsf_heavy_UP_branch->SetAddress(&weight_btagsf_heavy_UP_);}
}
weight_btagsf_light_UP_branch = 0;
if (tree->GetBranch("weight_btagsf_light_UP") != 0) {
weight_btagsf_light_UP_branch = tree->GetBranch("weight_btagsf_light_UP");
if (weight_btagsf_light_UP_branch) {weight_btagsf_light_UP_branch->SetAddress(&weight_btagsf_light_UP_);}
}
weight_btagsf_heavy_DN_branch = 0;
if (tree->GetBranch("weight_btagsf_heavy_DN") != 0) {
weight_btagsf_heavy_DN_branch = tree->GetBranch("weight_btagsf_heavy_DN");
if (weight_btagsf_heavy_DN_branch) {weight_btagsf_heavy_DN_branch->SetAddress(&weight_btagsf_heavy_DN_);}
}
weight_btagsf_light_DN_branch = 0;
if (tree->GetBranch("weight_btagsf_light_DN") != 0) {
weight_btagsf_light_DN_branch = tree->GetBranch("weight_btagsf_light_DN");
if (weight_btagsf_light_DN_branch) {weight_btagsf_light_DN_branch->SetAddress(&weight_btagsf_light_DN_);}
}
weight_btagsf_fastsim_UP_branch = 0;
if (tree->GetBranch("weight_btagsf_fastsim_UP") != 0) {
weight_btagsf_fastsim_UP_branch = tree->GetBranch("weight_btagsf_fastsim_UP");
if (weight_btagsf_fastsim_UP_branch) {weight_btagsf_fastsim_UP_branch->SetAddress(&weight_btagsf_fastsim_UP_);}
}
weight_btagsf_fastsim_DN_branch = 0;
if (tree->GetBranch("weight_btagsf_fastsim_DN") != 0) {
weight_btagsf_fastsim_DN_branch = tree->GetBranch("weight_btagsf_fastsim_DN");
if (weight_btagsf_fastsim_DN_branch) {weight_btagsf_fastsim_DN_branch->SetAddress(&weight_btagsf_fastsim_DN_);}
}
weight_lepSF_branch = 0;
if (tree->GetBranch("weight_lepSF") != 0) {
weight_lepSF_branch = tree->GetBranch("weight_lepSF");
if (weight_lepSF_branch) {weight_lepSF_branch->SetAddress(&weight_lepSF_);}
}
weight_lepSF_up_branch = 0;
if (tree->GetBranch("weight_lepSF_up") != 0) {
weight_lepSF_up_branch = tree->GetBranch("weight_lepSF_up");
if (weight_lepSF_up_branch) {weight_lepSF_up_branch->SetAddress(&weight_lepSF_up_);}
}
weight_lepSF_down_branch = 0;
if (tree->GetBranch("weight_lepSF_down") != 0) {
weight_lepSF_down_branch = tree->GetBranch("weight_lepSF_down");
if (weight_lepSF_down_branch) {weight_lepSF_down_branch->SetAddress(&weight_lepSF_down_);}
}
weight_vetoLepSF_branch = 0;
if (tree->GetBranch("weight_vetoLepSF") != 0) {
weight_vetoLepSF_branch = tree->GetBranch("weight_vetoLepSF");
if (weight_vetoLepSF_branch) {weight_vetoLepSF_branch->SetAddress(&weight_vetoLepSF_);}
}
weight_vetoLepSF_up_branch = 0;
if (tree->GetBranch("weight_vetoLepSF_up") != 0) {
weight_vetoLepSF_up_branch = tree->GetBranch("weight_vetoLepSF_up");
if (weight_vetoLepSF_up_branch) {weight_vetoLepSF_up_branch->SetAddress(&weight_vetoLepSF_up_);}
}
weight_vetoLepSF_down_branch = 0;
if (tree->GetBranch("weight_vetoLepSF_down") != 0) {
weight_vetoLepSF_down_branch = tree->GetBranch("weight_vetoLepSF_down");
if (weight_vetoLepSF_down_branch) {weight_vetoLepSF_down_branch->SetAddress(&weight_vetoLepSF_down_);}
}
weight_lepSF_fastSim_branch = 0;
if (tree->GetBranch("weight_lepSF_fastSim") != 0) {
weight_lepSF_fastSim_branch = tree->GetBranch("weight_lepSF_fastSim");
if (weight_lepSF_fastSim_branch) {weight_lepSF_fastSim_branch->SetAddress(&weight_lepSF_fastSim_);}
}
weight_lepSF_fastSim_up_branch = 0;
if (tree->GetBranch("weight_lepSF_fastSim_up") != 0) {
weight_lepSF_fastSim_up_branch = tree->GetBranch("weight_lepSF_fastSim_up");
if (weight_lepSF_fastSim_up_branch) {weight_lepSF_fastSim_up_branch->SetAddress(&weight_lepSF_fastSim_up_);}
}
weight_lepSF_fastSim_down_branch = 0;
if (tree->GetBranch("weight_lepSF_fastSim_down") != 0) {
weight_lepSF_fastSim_down_branch = tree->GetBranch("weight_lepSF_fastSim_down");
if (weight_lepSF_fastSim_down_branch) {weight_lepSF_fastSim_down_branch->SetAddress(&weight_lepSF_fastSim_down_);}
}
weight_ISR_branch = 0;
if (tree->GetBranch("weight_ISR") != 0) {
weight_ISR_branch = tree->GetBranch("weight_ISR");
if (weight_ISR_branch) {weight_ISR_branch->SetAddress(&weight_ISR_);}
}
weight_ISRup_branch = 0;
if (tree->GetBranch("weight_ISRup") != 0) {
weight_ISRup_branch = tree->GetBranch("weight_ISRup");
if (weight_ISRup_branch) {weight_ISRup_branch->SetAddress(&weight_ISRup_);}
}
weight_ISRdown_branch = 0;
if (tree->GetBranch("weight_ISRdown") != 0) {
weight_ISRdown_branch = tree->GetBranch("weight_ISRdown");
if (weight_ISRdown_branch) {weight_ISRdown_branch->SetAddress(&weight_ISRdown_);}
}
weight_PU_branch = 0;
if (tree->GetBranch("weight_PU") != 0) {
weight_PU_branch = tree->GetBranch("weight_PU");
if (weight_PU_branch) {weight_PU_branch->SetAddress(&weight_PU_);}
}
weight_PUup_branch = 0;
if (tree->GetBranch("weight_PUup") != 0) {
weight_PUup_branch = tree->GetBranch("weight_PUup");
if (weight_PUup_branch) {weight_PUup_branch->SetAddress(&weight_PUup_);}
}
weight_PUdown_branch = 0;
if (tree->GetBranch("weight_PUdown") != 0) {
weight_PUdown_branch = tree->GetBranch("weight_PUdown");
if (weight_PUdown_branch) {weight_PUdown_branch->SetAddress(&weight_PUdown_);}
}
sparms_names_branch = 0;
if (tree->GetBranch("sparms_names") != 0) {
sparms_names_branch = tree->GetBranch("sparms_names");
if (sparms_names_branch) {sparms_names_branch->SetAddress(&sparms_names_);}
}
sparms_values_branch = 0;
if (tree->GetBranch("sparms_values") != 0) {
sparms_values_branch = tree->GetBranch("sparms_values");
if (sparms_values_branch) {sparms_values_branch->SetAddress(&sparms_values_);}
}
sparms_subProcessId_branch = 0;
if (tree->GetBranch("sparms_subProcessId") != 0) {
sparms_subProcessId_branch = tree->GetBranch("sparms_subProcessId");
if (sparms_subProcessId_branch) {sparms_subProcessId_branch->SetAddress(&sparms_subProcessId_);}
}
mass_lsp_branch = 0;
if (tree->GetBranch("mass_lsp") != 0) {
mass_lsp_branch = tree->GetBranch("mass_lsp");
if (mass_lsp_branch) {mass_lsp_branch->SetAddress(&mass_lsp_);}
}
mass_chargino_branch = 0;
if (tree->GetBranch("mass_chargino") != 0) {
mass_chargino_branch = tree->GetBranch("mass_chargino");
if (mass_chargino_branch) {mass_chargino_branch->SetAddress(&mass_chargino_);}
}
mass_stop_branch = 0;
if (tree->GetBranch("mass_stop") != 0) {
mass_stop_branch = tree->GetBranch("mass_stop");
if (mass_stop_branch) {mass_stop_branch->SetAddress(&mass_stop_);}
}
mass_gluino_branch = 0;
if (tree->GetBranch("mass_gluino") != 0) {
mass_gluino_branch = tree->GetBranch("mass_gluino");
if (mass_gluino_branch) {mass_gluino_branch->SetAddress(&mass_gluino_);}
}
genmet_branch = 0;
if (tree->GetBranch("genmet") != 0) {
genmet_branch = tree->GetBranch("genmet");
if (genmet_branch) {genmet_branch->SetAddress(&genmet_);}
}
genmet_phi_branch = 0;
if (tree->GetBranch("genmet_phi") != 0) {
genmet_phi_branch = tree->GetBranch("genmet_phi");
if (genmet_phi_branch) {genmet_phi_branch->SetAddress(&genmet_phi_);}
}
genht_branch = 0;
if (tree->GetBranch("genht") != 0) {
genht_branch = tree->GetBranch("genht");
if (genht_branch) {genht_branch->SetAddress(&genht_);}
}
PassTrackVeto_branch = 0;
if (tree->GetBranch("PassTrackVeto") != 0) {
PassTrackVeto_branch = tree->GetBranch("PassTrackVeto");
if (PassTrackVeto_branch) {PassTrackVeto_branch->SetAddress(&PassTrackVeto_);}
}
PassTauVeto_branch = 0;
if (tree->GetBranch("PassTauVeto") != 0) {
PassTauVeto_branch = tree->GetBranch("PassTauVeto");
if (PassTauVeto_branch) {PassTauVeto_branch->SetAddress(&PassTauVeto_);}
}
topness_branch = 0;
if (tree->GetBranch("topness") != 0) {
topness_branch = tree->GetBranch("topness");
if (topness_branch) {topness_branch->SetAddress(&topness_);}
}
topnessMod_branch = 0;
if (tree->GetBranch("topnessMod") != 0) {
topnessMod_branch = tree->GetBranch("topnessMod");
if (topnessMod_branch) {topnessMod_branch->SetAddress(&topnessMod_);}
}
topnessMod_rl_branch = 0;
if (tree->GetBranch("topnessMod_rl") != 0) {
topnessMod_rl_branch = tree->GetBranch("topnessMod_rl");
if (topnessMod_rl_branch) {topnessMod_rl_branch->SetAddress(&topnessMod_rl_);}
}
Mlb_closestb_branch = 0;
if (tree->GetBranch("Mlb_closestb") != 0) {
Mlb_closestb_branch = tree->GetBranch("Mlb_closestb");
if (Mlb_closestb_branch) {Mlb_closestb_branch->SetAddress(&Mlb_closestb_);}
}
HLT_SingleEl_branch = 0;
if (tree->GetBranch("HLT_SingleEl") != 0) {
HLT_SingleEl_branch = tree->GetBranch("HLT_SingleEl");
if (HLT_SingleEl_branch) {HLT_SingleEl_branch->SetAddress(&HLT_SingleEl_);}
}
HLT_SingleMu_branch = 0;
if (tree->GetBranch("HLT_SingleMu") != 0) {
HLT_SingleMu_branch = tree->GetBranch("HLT_SingleMu");
if (HLT_SingleMu_branch) {HLT_SingleMu_branch->SetAddress(&HLT_SingleMu_);}
}
HLT_MET_branch = 0;
if (tree->GetBranch("HLT_MET") != 0) {
HLT_MET_branch = tree->GetBranch("HLT_MET");
if (HLT_MET_branch) {HLT_MET_branch->SetAddress(&HLT_MET_);}
}
HLT_MET100_MHT100_branch = 0;
if (tree->GetBranch("HLT_MET100_MHT100") != 0) {
HLT_MET100_MHT100_branch = tree->GetBranch("HLT_MET100_MHT100");
if (HLT_MET100_MHT100_branch) {HLT_MET100_MHT100_branch->SetAddress(&HLT_MET100_MHT100_);}
}
HLT_DiEl_branch = 0;
if (tree->GetBranch("HLT_DiEl") != 0) {
HLT_DiEl_branch = tree->GetBranch("HLT_DiEl");
if (HLT_DiEl_branch) {HLT_DiEl_branch->SetAddress(&HLT_DiEl_);}
}
HLT_DiMu_branch = 0;
if (tree->GetBranch("HLT_DiMu") != 0) {
HLT_DiMu_branch = tree->GetBranch("HLT_DiMu");
if (HLT_DiMu_branch) {HLT_DiMu_branch->SetAddress(&HLT_DiMu_);}
}
HLT_MuE_branch = 0;
if (tree->GetBranch("HLT_MuE") != 0) {
HLT_MuE_branch = tree->GetBranch("HLT_MuE");
if (HLT_MuE_branch) {HLT_MuE_branch->SetAddress(&HLT_MuE_);}
}
HLT_Photon90_CaloIdL_PFHT500_branch = 0;
if (tree->GetBranch("HLT_Photon90_CaloIdL_PFHT500") != 0) {
HLT_Photon90_CaloIdL_PFHT500_branch = tree->GetBranch("HLT_Photon90_CaloIdL_PFHT500");
if (HLT_Photon90_CaloIdL_PFHT500_branch) {HLT_Photon90_CaloIdL_PFHT500_branch->SetAddress(&HLT_Photon90_CaloIdL_PFHT500_);}
}
HLT_Photon22_R9Id90_HE10_IsoM_branch = 0;
if (tree->GetBranch("HLT_Photon22_R9Id90_HE10_IsoM") != 0) {
HLT_Photon22_R9Id90_HE10_IsoM_branch = tree->GetBranch("HLT_Photon22_R9Id90_HE10_IsoM");
if (HLT_Photon22_R9Id90_HE10_IsoM_branch) {HLT_Photon22_R9Id90_HE10_IsoM_branch->SetAddress(&HLT_Photon22_R9Id90_HE10_IsoM_);}
}
HLT_Photon30_R9Id90_HE10_IsoM_branch = 0;
if (tree->GetBranch("HLT_Photon30_R9Id90_HE10_IsoM") != 0) {
HLT_Photon30_R9Id90_HE10_IsoM_branch = tree->GetBranch("HLT_Photon30_R9Id90_HE10_IsoM");
if (HLT_Photon30_R9Id90_HE10_IsoM_branch) {HLT_Photon30_R9Id90_HE10_IsoM_branch->SetAddress(&HLT_Photon30_R9Id90_HE10_IsoM_);}
}
HLT_Photon36_R9Id90_HE10_IsoM_branch = 0;
if (tree->GetBranch("HLT_Photon36_R9Id90_HE10_IsoM") != 0) {
HLT_Photon36_R9Id90_HE10_IsoM_branch = tree->GetBranch("HLT_Photon36_R9Id90_HE10_IsoM");
if (HLT_Photon36_R9Id90_HE10_IsoM_branch) {HLT_Photon36_R9Id90_HE10_IsoM_branch->SetAddress(&HLT_Photon36_R9Id90_HE10_IsoM_);}
}
HLT_Photon50_R9Id90_HE10_IsoM_branch = 0;
if (tree->GetBranch("HLT_Photon50_R9Id90_HE10_IsoM") != 0) {
HLT_Photon50_R9Id90_HE10_IsoM_branch = tree->GetBranch("HLT_Photon50_R9Id90_HE10_IsoM");
if (HLT_Photon50_R9Id90_HE10_IsoM_branch) {HLT_Photon50_R9Id90_HE10_IsoM_branch->SetAddress(&HLT_Photon50_R9Id90_HE10_IsoM_);}
}
HLT_Photon75_R9Id90_HE10_IsoM_branch = 0;
if (tree->GetBranch("HLT_Photon75_R9Id90_HE10_IsoM") != 0) {
HLT_Photon75_R9Id90_HE10_IsoM_branch = tree->GetBranch("HLT_Photon75_R9Id90_HE10_IsoM");
if (HLT_Photon75_R9Id90_HE10_IsoM_branch) {HLT_Photon75_R9Id90_HE10_IsoM_branch->SetAddress(&HLT_Photon75_R9Id90_HE10_IsoM_);}
}
HLT_Photon90_R9Id90_HE10_IsoM_branch = 0;
if (tree->GetBranch("HLT_Photon90_R9Id90_HE10_IsoM") != 0) {
HLT_Photon90_R9Id90_HE10_IsoM_branch = tree->GetBranch("HLT_Photon90_R9Id90_HE10_IsoM");
if (HLT_Photon90_R9Id90_HE10_IsoM_branch) {HLT_Photon90_R9Id90_HE10_IsoM_branch->SetAddress(&HLT_Photon90_R9Id90_HE10_IsoM_);}
}
HLT_Photon120_R9Id90_HE10_IsoM_branch = 0;
if (tree->GetBranch("HLT_Photon120_R9Id90_HE10_IsoM") != 0) {
HLT_Photon120_R9Id90_HE10_IsoM_branch = tree->GetBranch("HLT_Photon120_R9Id90_HE10_IsoM");
if (HLT_Photon120_R9Id90_HE10_IsoM_branch) {HLT_Photon120_R9Id90_HE10_IsoM_branch->SetAddress(&HLT_Photon120_R9Id90_HE10_IsoM_);}
}
HLT_Photon165_R9Id90_HE10_IsoM_branch = 0;
if (tree->GetBranch("HLT_Photon165_R9Id90_HE10_IsoM") != 0) {
HLT_Photon165_R9Id90_HE10_IsoM_branch = tree->GetBranch("HLT_Photon165_R9Id90_HE10_IsoM");
if (HLT_Photon165_R9Id90_HE10_IsoM_branch) {HLT_Photon165_R9Id90_HE10_IsoM_branch->SetAddress(&HLT_Photon165_R9Id90_HE10_IsoM_);}
}
HLT_Photon175_branch = 0;
if (tree->GetBranch("HLT_Photon175") != 0) {
HLT_Photon175_branch = tree->GetBranch("HLT_Photon175");
if (HLT_Photon175_branch) {HLT_Photon175_branch->SetAddress(&HLT_Photon175_);}
}
HLT_Photon165_HE10_branch = 0;
if (tree->GetBranch("HLT_Photon165_HE10") != 0) {
HLT_Photon165_HE10_branch = tree->GetBranch("HLT_Photon165_HE10");
if (HLT_Photon165_HE10_branch) {HLT_Photon165_HE10_branch->SetAddress(&HLT_Photon165_HE10_);}
}
nPhotons_branch = 0;
if (tree->GetBranch("nPhotons") != 0) {
nPhotons_branch = tree->GetBranch("nPhotons");
if (nPhotons_branch) {nPhotons_branch->SetAddress(&nPhotons_);}
}
ph_ngoodjets_branch = 0;
if (tree->GetBranch("ph_ngoodjets") != 0) {
ph_ngoodjets_branch = tree->GetBranch("ph_ngoodjets");
if (ph_ngoodjets_branch) {ph_ngoodjets_branch->SetAddress(&ph_ngoodjets_);}
}
ph_ngoodbtags_branch = 0;
if (tree->GetBranch("ph_ngoodbtags") != 0) {
ph_ngoodbtags_branch = tree->GetBranch("ph_ngoodbtags");
if (ph_ngoodbtags_branch) {ph_ngoodbtags_branch->SetAddress(&ph_ngoodbtags_);}
}
filt_met_branch = 0;
if (tree->GetBranch("filt_met") != 0) {
filt_met_branch = tree->GetBranch("filt_met");
if (filt_met_branch) {filt_met_branch->SetAddress(&filt_met_);}
}
hardgenpt_branch = 0;
if (tree->GetBranch("hardgenpt") != 0) {
hardgenpt_branch = tree->GetBranch("hardgenpt");
if (hardgenpt_branch) {hardgenpt_branch->SetAddress(&hardgenpt_);}
}
filt_badChargedCandidateFilter_branch = 0;
if (tree->GetBranch("filt_badChargedCandidateFilter") != 0) {
filt_badChargedCandidateFilter_branch = tree->GetBranch("filt_badChargedCandidateFilter");
if (filt_badChargedCandidateFilter_branch) {filt_badChargedCandidateFilter_branch->SetAddress(&filt_badChargedCandidateFilter_);}
}
calomet_branch = 0;
if (tree->GetBranch("calomet") != 0) {
calomet_branch = tree->GetBranch("calomet");
if (calomet_branch) {calomet_branch->SetAddress(&calomet_);}
}
calomet_phi_branch = 0;
if (tree->GetBranch("calomet_phi") != 0) {
calomet_phi_branch = tree->GetBranch("calomet_phi");
if (calomet_phi_branch) {calomet_phi_branch->SetAddress(&calomet_phi_);}
}
lep1_pdgid_branch = 0;
if (tree->GetBranch("lep1_pdgid") != 0) {
lep1_pdgid_branch = tree->GetBranch("lep1_pdgid");
if (lep1_pdgid_branch) {lep1_pdgid_branch->SetAddress(&lep1_pdgid_);}
}
lep1_production_type_branch = 0;
if (tree->GetBranch("lep1_production_type") != 0) {
lep1_production_type_branch = tree->GetBranch("lep1_production_type");
if (lep1_production_type_branch) {lep1_production_type_branch->SetAddress(&lep1_production_type_);}
}
lep1_MiniIso_branch = 0;
if (tree->GetBranch("lep1_MiniIso") != 0) {
lep1_MiniIso_branch = tree->GetBranch("lep1_MiniIso");
if (lep1_MiniIso_branch) {lep1_MiniIso_branch->SetAddress(&lep1_MiniIso_);}
}
lep1_relIso_branch = 0;
if (tree->GetBranch("lep1_relIso") != 0) {
lep1_relIso_branch = tree->GetBranch("lep1_relIso");
if (lep1_relIso_branch) {lep1_relIso_branch->SetAddress(&lep1_relIso_);}
}
lep1_passLooseID_branch = 0;
if (tree->GetBranch("lep1_passLooseID") != 0) {
lep1_passLooseID_branch = tree->GetBranch("lep1_passLooseID");
if (lep1_passLooseID_branch) {lep1_passLooseID_branch->SetAddress(&lep1_passLooseID_);}
}
lep1_passMediumID_branch = 0;
if (tree->GetBranch("lep1_passMediumID") != 0) {
lep1_passMediumID_branch = tree->GetBranch("lep1_passMediumID");
if (lep1_passMediumID_branch) {lep1_passMediumID_branch->SetAddress(&lep1_passMediumID_);}
}
lep1_passTightID_branch = 0;
if (tree->GetBranch("lep1_passTightID") != 0) {
lep1_passTightID_branch = tree->GetBranch("lep1_passTightID");
if (lep1_passTightID_branch) {lep1_passTightID_branch->SetAddress(&lep1_passTightID_);}
}
lep1_passVeto_branch = 0;
if (tree->GetBranch("lep1_passVeto") != 0) {
lep1_passVeto_branch = tree->GetBranch("lep1_passVeto");
if (lep1_passVeto_branch) {lep1_passVeto_branch->SetAddress(&lep1_passVeto_);}
}
lep1_mc_motherid_branch = 0;
if (tree->GetBranch("lep1_mc_motherid") != 0) {
lep1_mc_motherid_branch = tree->GetBranch("lep1_mc_motherid");
if (lep1_mc_motherid_branch) {lep1_mc_motherid_branch->SetAddress(&lep1_mc_motherid_);}
}
lep2_pdgid_branch = 0;
if (tree->GetBranch("lep2_pdgid") != 0) {
lep2_pdgid_branch = tree->GetBranch("lep2_pdgid");
if (lep2_pdgid_branch) {lep2_pdgid_branch->SetAddress(&lep2_pdgid_);}
}
lep2_production_type_branch = 0;
if (tree->GetBranch("lep2_production_type") != 0) {
lep2_production_type_branch = tree->GetBranch("lep2_production_type");
if (lep2_production_type_branch) {lep2_production_type_branch->SetAddress(&lep2_production_type_);}
}
lep2_MiniIso_branch = 0;
if (tree->GetBranch("lep2_MiniIso") != 0) {
lep2_MiniIso_branch = tree->GetBranch("lep2_MiniIso");
if (lep2_MiniIso_branch) {lep2_MiniIso_branch->SetAddress(&lep2_MiniIso_);}
}
lep2_relIso_branch = 0;
if (tree->GetBranch("lep2_relIso") != 0) {
lep2_relIso_branch = tree->GetBranch("lep2_relIso");
if (lep2_relIso_branch) {lep2_relIso_branch->SetAddress(&lep2_relIso_);}
}
lep2_passLooseID_branch = 0;
if (tree->GetBranch("lep2_passLooseID") != 0) {
lep2_passLooseID_branch = tree->GetBranch("lep2_passLooseID");
if (lep2_passLooseID_branch) {lep2_passLooseID_branch->SetAddress(&lep2_passLooseID_);}
}
lep2_passMediumID_branch = 0;
if (tree->GetBranch("lep2_passMediumID") != 0) {
lep2_passMediumID_branch = tree->GetBranch("lep2_passMediumID");
if (lep2_passMediumID_branch) {lep2_passMediumID_branch->SetAddress(&lep2_passMediumID_);}
}
lep2_passTightID_branch = 0;
if (tree->GetBranch("lep2_passTightID") != 0) {
lep2_passTightID_branch = tree->GetBranch("lep2_passTightID");
if (lep2_passTightID_branch) {lep2_passTightID_branch->SetAddress(&lep2_passTightID_);}
}
lep2_passVeto_branch = 0;
if (tree->GetBranch("lep2_passVeto") != 0) {
lep2_passVeto_branch = tree->GetBranch("lep2_passVeto");
if (lep2_passVeto_branch) {lep2_passVeto_branch->SetAddress(&lep2_passVeto_);}
}
lep2_mc_motherid_branch = 0;
if (tree->GetBranch("lep2_mc_motherid") != 0) {
lep2_mc_motherid_branch = tree->GetBranch("lep2_mc_motherid");
if (lep2_mc_motherid_branch) {lep2_mc_motherid_branch->SetAddress(&lep2_mc_motherid_);}
}
ph_sigmaIEtaEta_fill5x5_branch = 0;
if (tree->GetBranch("ph_sigmaIEtaEta_fill5x5") != 0) {
ph_sigmaIEtaEta_fill5x5_branch = tree->GetBranch("ph_sigmaIEtaEta_fill5x5");
if (ph_sigmaIEtaEta_fill5x5_branch) {ph_sigmaIEtaEta_fill5x5_branch->SetAddress(&ph_sigmaIEtaEta_fill5x5_);}
}
ph_hOverE_branch = 0;
if (tree->GetBranch("ph_hOverE") != 0) {
ph_hOverE_branch = tree->GetBranch("ph_hOverE");
if (ph_hOverE_branch) {ph_hOverE_branch->SetAddress(&ph_hOverE_);}
}
ph_r9_branch = 0;
if (tree->GetBranch("ph_r9") != 0) {
ph_r9_branch = tree->GetBranch("ph_r9");
if (ph_r9_branch) {ph_r9_branch->SetAddress(&ph_r9_);}
}
ph_chiso_branch = 0;
if (tree->GetBranch("ph_chiso") != 0) {
ph_chiso_branch = tree->GetBranch("ph_chiso");
if (ph_chiso_branch) {ph_chiso_branch->SetAddress(&ph_chiso_);}
}
ph_nhiso_branch = 0;
if (tree->GetBranch("ph_nhiso") != 0) {
ph_nhiso_branch = tree->GetBranch("ph_nhiso");
if (ph_nhiso_branch) {ph_nhiso_branch->SetAddress(&ph_nhiso_);}
}
ph_phiso_branch = 0;
if (tree->GetBranch("ph_phiso") != 0) {
ph_phiso_branch = tree->GetBranch("ph_phiso");
if (ph_phiso_branch) {ph_phiso_branch->SetAddress(&ph_phiso_);}
}
ph_idCutBased_branch = 0;
if (tree->GetBranch("ph_idCutBased") != 0) {
ph_idCutBased_branch = tree->GetBranch("ph_idCutBased");
if (ph_idCutBased_branch) {ph_idCutBased_branch->SetAddress(&ph_idCutBased_);}
}
ph_overlapJetId_branch = 0;
if (tree->GetBranch("ph_overlapJetId") != 0) {
ph_overlapJetId_branch = tree->GetBranch("ph_overlapJetId");
if (ph_overlapJetId_branch) {ph_overlapJetId_branch->SetAddress(&ph_overlapJetId_);}
}
ph_pt_branch = 0;
if (tree->GetBranch("ph_pt") != 0) {
ph_pt_branch = tree->GetBranch("ph_pt");
if (ph_pt_branch) {ph_pt_branch->SetAddress(&ph_pt_);}
}
ph_eta_branch = 0;
if (tree->GetBranch("ph_eta") != 0) {
ph_eta_branch = tree->GetBranch("ph_eta");
if (ph_eta_branch) {ph_eta_branch->SetAddress(&ph_eta_);}
}
ph_phi_branch = 0;
if (tree->GetBranch("ph_phi") != 0) {
ph_phi_branch = tree->GetBranch("ph_phi");
if (ph_phi_branch) {ph_phi_branch->SetAddress(&ph_phi_);}
}
ph_mass_branch = 0;
if (tree->GetBranch("ph_mass") != 0) {
ph_mass_branch = tree->GetBranch("ph_mass");
if (ph_mass_branch) {ph_mass_branch->SetAddress(&ph_mass_);}
}
ph_mcMatchId_branch = 0;
if (tree->GetBranch("ph_mcMatchId") != 0) {
ph_mcMatchId_branch = tree->GetBranch("ph_mcMatchId");
if (ph_mcMatchId_branch) {ph_mcMatchId_branch->SetAddress(&ph_mcMatchId_);}
}
ph_genIso04_branch = 0;
if (tree->GetBranch("ph_genIso04") != 0) {
ph_genIso04_branch = tree->GetBranch("ph_genIso04");
if (ph_genIso04_branch) {ph_genIso04_branch->SetAddress(&ph_genIso04_);}
}
ph_drMinParton_branch = 0;
if (tree->GetBranch("ph_drMinParton") != 0) {
ph_drMinParton_branch = tree->GetBranch("ph_drMinParton");
if (ph_drMinParton_branch) {ph_drMinParton_branch->SetAddress(&ph_drMinParton_);}
}
ngoodjets_branch = 0;
if (tree->GetBranch("ngoodjets") != 0) {
ngoodjets_branch = tree->GetBranch("ngoodjets");
if (ngoodjets_branch) {ngoodjets_branch->SetAddress(&ngoodjets_);}
}
ngoodbtags_branch = 0;
if (tree->GetBranch("ngoodbtags") != 0) {
ngoodbtags_branch = tree->GetBranch("ngoodbtags");
if (ngoodbtags_branch) {ngoodbtags_branch->SetAddress(&ngoodbtags_);}
}
ak4_HT_branch = 0;
if (tree->GetBranch("ak4_HT") != 0) {
ak4_HT_branch = tree->GetBranch("ak4_HT");
if (ak4_HT_branch) {ak4_HT_branch->SetAddress(&ak4_HT_);}
}
ak4_htratiom_branch = 0;
if (tree->GetBranch("ak4_htratiom") != 0) {
ak4_htratiom_branch = tree->GetBranch("ak4_htratiom");
if (ak4_htratiom_branch) {ak4_htratiom_branch->SetAddress(&ak4_htratiom_);}
}
dphi_ak4pfjet_met_branch = 0;
if (tree->GetBranch("dphi_ak4pfjet_met") != 0) {
dphi_ak4pfjet_met_branch = tree->GetBranch("dphi_ak4pfjet_met");
if (dphi_ak4pfjet_met_branch) {dphi_ak4pfjet_met_branch->SetAddress(&dphi_ak4pfjet_met_);}
}
ak4pfjets_passMEDbtag_branch = 0;
if (tree->GetBranch("ak4pfjets_passMEDbtag") != 0) {
ak4pfjets_passMEDbtag_branch = tree->GetBranch("ak4pfjets_passMEDbtag");
if (ak4pfjets_passMEDbtag_branch) {ak4pfjets_passMEDbtag_branch->SetAddress(&ak4pfjets_passMEDbtag_);}
}
ak4pfjets_CSV_branch = 0;
if (tree->GetBranch("ak4pfjets_CSV") != 0) {
ak4pfjets_CSV_branch = tree->GetBranch("ak4pfjets_CSV");
if (ak4pfjets_CSV_branch) {ak4pfjets_CSV_branch->SetAddress(&ak4pfjets_CSV_);}
}
ak4pfjets_mva_branch = 0;
if (tree->GetBranch("ak4pfjets_mva") != 0) {
ak4pfjets_mva_branch = tree->GetBranch("ak4pfjets_mva");
if (ak4pfjets_mva_branch) {ak4pfjets_mva_branch->SetAddress(&ak4pfjets_mva_);}
}
ak4pfjets_parton_flavor_branch = 0;
if (tree->GetBranch("ak4pfjets_parton_flavor") != 0) {
ak4pfjets_parton_flavor_branch = tree->GetBranch("ak4pfjets_parton_flavor");
if (ak4pfjets_parton_flavor_branch) {ak4pfjets_parton_flavor_branch->SetAddress(&ak4pfjets_parton_flavor_);}
}
ak4pfjets_hadron_flavor_branch = 0;
if (tree->GetBranch("ak4pfjets_hadron_flavor") != 0) {
ak4pfjets_hadron_flavor_branch = tree->GetBranch("ak4pfjets_hadron_flavor");
if (ak4pfjets_hadron_flavor_branch) {ak4pfjets_hadron_flavor_branch->SetAddress(&ak4pfjets_hadron_flavor_);}
}
ak4pfjets_loose_puid_branch = 0;
if (tree->GetBranch("ak4pfjets_loose_puid") != 0) {
ak4pfjets_loose_puid_branch = tree->GetBranch("ak4pfjets_loose_puid");
if (ak4pfjets_loose_puid_branch) {ak4pfjets_loose_puid_branch->SetAddress(&ak4pfjets_loose_puid_);}
}
ak4pfjets_loose_pfid_branch = 0;
if (tree->GetBranch("ak4pfjets_loose_pfid") != 0) {
ak4pfjets_loose_pfid_branch = tree->GetBranch("ak4pfjets_loose_pfid");
if (ak4pfjets_loose_pfid_branch) {ak4pfjets_loose_pfid_branch->SetAddress(&ak4pfjets_loose_pfid_);}
}
genleps_isfromt_branch = 0;
if (tree->GetBranch("genleps_isfromt") != 0) {
genleps_isfromt_branch = tree->GetBranch("genleps_isfromt");
if (genleps_isfromt_branch) {genleps_isfromt_branch->SetAddress(&genleps_isfromt_);}
}
genleps_id_branch = 0;
if (tree->GetBranch("genleps_id") != 0) {
genleps_id_branch = tree->GetBranch("genleps_id");
if (genleps_id_branch) {genleps_id_branch->SetAddress(&genleps_id_);}
}
genleps__genpsidx_branch = 0;
if (tree->GetBranch("genleps__genpsidx") != 0) {
genleps__genpsidx_branch = tree->GetBranch("genleps__genpsidx");
if (genleps__genpsidx_branch) {genleps__genpsidx_branch->SetAddress(&genleps__genpsidx_);}
}
genleps_status_branch = 0;
if (tree->GetBranch("genleps_status") != 0) {
genleps_status_branch = tree->GetBranch("genleps_status");
if (genleps_status_branch) {genleps_status_branch->SetAddress(&genleps_status_);}
}
genleps_fromHardProcessDecayed_branch = 0;
if (tree->GetBranch("genleps_fromHardProcessDecayed") != 0) {
genleps_fromHardProcessDecayed_branch = tree->GetBranch("genleps_fromHardProcessDecayed");
if (genleps_fromHardProcessDecayed_branch) {genleps_fromHardProcessDecayed_branch->SetAddress(&genleps_fromHardProcessDecayed_);}
}
genleps_fromHardProcessFinalState_branch = 0;
if (tree->GetBranch("genleps_fromHardProcessFinalState") != 0) {
genleps_fromHardProcessFinalState_branch = tree->GetBranch("genleps_fromHardProcessFinalState");
if (genleps_fromHardProcessFinalState_branch) {genleps_fromHardProcessFinalState_branch->SetAddress(&genleps_fromHardProcessFinalState_);}
}
genleps_isHardProcess_branch = 0;
if (tree->GetBranch("genleps_isHardProcess") != 0) {
genleps_isHardProcess_branch = tree->GetBranch("genleps_isHardProcess");
if (genleps_isHardProcess_branch) {genleps_isHardProcess_branch->SetAddress(&genleps_isHardProcess_);}
}
genleps_isLastCopy_branch = 0;
if (tree->GetBranch("genleps_isLastCopy") != 0) {
genleps_isLastCopy_branch = tree->GetBranch("genleps_isLastCopy");
if (genleps_isLastCopy_branch) {genleps_isLastCopy_branch->SetAddress(&genleps_isLastCopy_);}
}
genleps_gentaudecay_branch = 0;
if (tree->GetBranch("genleps_gentaudecay") != 0) {
genleps_gentaudecay_branch = tree->GetBranch("genleps_gentaudecay");
if (genleps_gentaudecay_branch) {genleps_gentaudecay_branch->SetAddress(&genleps_gentaudecay_);}
}
gen_nfromtleps__branch = 0;
if (tree->GetBranch("gen_nfromtleps_") != 0) {
gen_nfromtleps__branch = tree->GetBranch("gen_nfromtleps_");
if (gen_nfromtleps__branch) {gen_nfromtleps__branch->SetAddress(&gen_nfromtleps__);}
}
genleps_motherid_branch = 0;
if (tree->GetBranch("genleps_motherid") != 0) {
genleps_motherid_branch = tree->GetBranch("genleps_motherid");
if (genleps_motherid_branch) {genleps_motherid_branch->SetAddress(&genleps_motherid_);}
}
genleps_motheridx_branch = 0;
if (tree->GetBranch("genleps_motheridx") != 0) {
genleps_motheridx_branch = tree->GetBranch("genleps_motheridx");
if (genleps_motheridx_branch) {genleps_motheridx_branch->SetAddress(&genleps_motheridx_);}
}
genleps_motherstatus_branch = 0;
if (tree->GetBranch("genleps_motherstatus") != 0) {
genleps_motherstatus_branch = tree->GetBranch("genleps_motherstatus");
if (genleps_motherstatus_branch) {genleps_motherstatus_branch->SetAddress(&genleps_motherstatus_);}
}
genleps_gmotherid_branch = 0;
if (tree->GetBranch("genleps_gmotherid") != 0) {
genleps_gmotherid_branch = tree->GetBranch("genleps_gmotherid");
if (genleps_gmotherid_branch) {genleps_gmotherid_branch->SetAddress(&genleps_gmotherid_);}
}
genleps_gmotheridx_branch = 0;
if (tree->GetBranch("genleps_gmotheridx") != 0) {
genleps_gmotheridx_branch = tree->GetBranch("genleps_gmotheridx");
if (genleps_gmotheridx_branch) {genleps_gmotheridx_branch->SetAddress(&genleps_gmotheridx_);}
}
genleps_gmotherstatus_branch = 0;
if (tree->GetBranch("genleps_gmotherstatus") != 0) {
genleps_gmotherstatus_branch = tree->GetBranch("genleps_gmotherstatus");
if (genleps_gmotherstatus_branch) {genleps_gmotherstatus_branch->SetAddress(&genleps_gmotherstatus_);}
}
gennus_isfromt_branch = 0;
if (tree->GetBranch("gennus_isfromt") != 0) {
gennus_isfromt_branch = tree->GetBranch("gennus_isfromt");
if (gennus_isfromt_branch) {gennus_isfromt_branch->SetAddress(&gennus_isfromt_);}
}
gennus_id_branch = 0;
if (tree->GetBranch("gennus_id") != 0) {
gennus_id_branch = tree->GetBranch("gennus_id");
if (gennus_id_branch) {gennus_id_branch->SetAddress(&gennus_id_);}
}