-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRAA_JetID.C
1373 lines (1142 loc) · 70.4 KB
/
RAA_JetID.C
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
// Raghav Kunnawalkam Elayavalli
// Nov 18th 2014
// Rutgers
// raghav.k.e at CERN dot CH
// Jet ID macro - To study the issue of fake jets in the Jet Reconstruction for the RAA analysis. First idea is that the electron reconstructed pT is off. Going to use analysis cuts : neMax/(neMax+chMax+phMax)<0.975 and muMax/(neMax+chMax+phMax)<0.975 and testing out this cut in Data and MC: eMax/(neMax+chMax+phMax)<0.975.
// Dec 9th making the plots for PU since RAA is finally going to PU Jets
// Dec 10th change the value of the cuts to reflect + adding new histograms
// Dec 11th - first include the plots for individual pfcandidate variables like chMax, chSum etc... and also make the 2D scatter plot of their ratio with the pT vs pT. for the individual candidates.
// Dec 18th - adding plot which shows different values (and ratios) for the cut: eSum/(chSum+phSum+neSum+muSum)<0.# where # can take 9 to 1.
// Jan 8th 2015 - Need to finally figure out the Jet ID required to remove the fake pf electrons.
#include <iostream>
#include <stdio.h>
#include <fstream>
#include <fstream>
#include <TH1F.h>
#include <TH1F.h>
#include <TH2F.h>
#include <TFile.h>
#include <TTree.h>
#include <TF1.h>
#include <TCanvas.h>
#include <TLegend.h>
#include <TGraphErrors.h>
#include <TGraphAsymmErrors.h>
#include <TH1.h>
#include <TH2.h>
#include <TH3.h>
#include <TFile.h>
#include <TStyle.h>
#include <TStopwatch.h>
#include <TRandom3.h>
#include <TChain.h>
#include <TProfile.h>
#include <TStopwatch.h>
#include <TCut.h>
#include <cstdlib>
#include <cmath>
#include "TLegend.h"
#include "TLatex.h"
#include "TMath.h"
#include "TLine.h"
static const int nbins_pt = 39;
static const double boundaries_pt[nbins_pt+1] = {
3, 4, 5, 7, 9, 12,
15, 18, 21, 24, 28,
32, 37, 43, 49, 56,
64, 74, 84, 97, 114,
133, 153, 174, 196,
220, 245, 272, 300,
330, 362, 395, 430,
468, 507, 548, 592,
638, 686, 1000
};
static const int nbins_eta = 15;
static const double boundaries_eta[nbins_eta][2] = {
{-1.0,+1.0}, {-2.0,+2.0}, {-3.0,+3.0},
{-3.0,-2.5}, {-2.5,-2.0}, {-2.0,-1.5},
{-1.5,-1.0}, {-1.0,-0.5}, {-0.5,0}, {0,+0.5},
{+0.5,+1.0}, {+1.0,+1.5}, {+1.5,+2.0},
{+2.0,+2.5}, {+2.5,+3.0}
};
static const double delta_eta[nbins_eta] = {
2.0, 4.0, 6.0,
0.5, 0.5, 0.5,
0.5, 0.5, 0.5, 0.5,
0.5, 0.5, 0.5,
0.5, 0.5
};
static const char etaWidth [nbins_eta][256] = {
"n10_eta_p10","n20_eta_p20","n30_eta_p30",
"n30_eta_n25","n25_eta_n20","n20_eta_n15",
"n15_eta_n10","n10_eta_n05","n05_eta_0","0_eta_p05",
"p05_eta_p10","p10_eta_p15","p15_eta_p20",
"p20_eta_p25","p25_eta_p30"
};
static const int no_radius = 7;
static const int list_radius[no_radius] = {1,2,3,4,5,6,7};
static const int TrigValue = 3;
static const int CutValue = 2;
static const char TrigName [TrigValue][256] = {"HLT55","HLT65","HLT80"};
static const char isJetID [CutValue][256] = {"without","with"};
static const int nbins_cent = 6;
static const double boundaries_cent[nbins_cent+1] = {0,2,4,12,20,28,36};
static const char centWidth[nbins_cent+1][256] = {"0 - 5 %","5 - 10 %","10 - 30 %","30 - 50 %","50 - 70 %","70 - 90 %","0 - 100 %"};
static const double ncoll[nbins_cent+1] = {1660,1310,745,251,62.8,10.8,362.24};
// divide by bin width
void divideBinWidth(TH1 *h)
{
h->Sumw2();
for (int i=0;i<=h->GetNbinsX();i++){
Float_t val = h->GetBinContent(i);
Float_t valErr = h->GetBinError(i);
if(val!=0){
val/=h->GetBinWidth(i);
valErr/=h->GetBinWidth(i);
h->SetBinContent(i,val);
h->SetBinError(i,valErr);
}
}
h->GetXaxis()->CenterTitle();
h->GetYaxis()->CenterTitle();
}
using namespace std;
void RAA_JetID(int radius = 3, char *algo = "Pu", char *jet_type = "PF"){
TH1::SetDefaultSumw2();
TStopwatch timer;
timer.Start();
TDatime date;
cout<<"Running for Algo = "<<algo<<" "<<jet_type<<endl;
bool printDebug = true;
// Get the input files for Data and MC including the trees that are necessary
TFile *fDatain = TFile::Open(Form("/mnt/hadoop/cms/store/user/rkunnawa/rootfiles/PbPb/2011/data/PbPb_jetntuple_withEvtCuts_SuperNovaRejected_ak%s%d%s_20141209.root",algo,radius,jet_type));
TFile *fMCin = TFile::Open(Form("/export/d00/scratch/rkunnawa/rootfiles/PbPb_mc_nocut_ak%s%s_20141210.root",algo,jet_type));
TTree *jetData = (TTree*)fDatain->Get("jets_ID");
TTree *jetMC = (TTree*)fMCin->Get("jets_ID");
//check if the trees are filled.
if(printDebug)cout<<"jetData no of jets = "<<jetData->GetEntries()<<endl;
if(printDebug)cout<<"jetMC no of jets = "<<jetMC->GetEntries()<<endl;
// lets think about what we want to plot here:
// i want to plot the ratio of jet spectra (from the specific triggers Jet55 or Jet65 or Jet80) with cut over without cut.
// both the trees already have the basic event selection here: pHBHENoiseFilter (Data), pcollisionEventSelection (MC and Data) and |vz|<15 and |eta|<2 for both data and MC.
//
//TH1F *hMC_Jet55_withCuts = new TH1F("hMC_Jet55_withCuts","",1000,0,1000);
// setup of data histograms: 2D arrays, [JetTrigger][isCut]
// JetTrigger is either 0 - Jet55; 1 - Jet65; 2 - Jet80.
// isJetID is either 0: No Jet ID cuts, 1: Yes Jet ID Cuts
// necessary Jet ID cuts:
TCut Jet55 = "jet55 && l1sj36 && !jet65 && !jet80";
TCut Jet65 = "jet65 && l1sj36 && !jet80";
TCut Jet80 = "jet80 && l1sj52";
TCut elRjc = "eMax/jtpt<0.3";
TCut neRjc = "neMax/(chMax+neMax+phMax)<0.9";
TCut phRjc = "phMax/(chMax+neMax+phMax)<0.9";
TCut chRjc = "chMax/(chMax+neMax+phMax)<0.9";
TCut chID = "chMax/jtpt>0.05";
TCut muRjc = "muMax/(chMax+neMax+phMax)<0.9";
//TCut cent[nbins_cent] = {"0","1","2","3","4","5"};
//Get the Spectra in the centrality bins as well, which would mean that we have to add in the centrality loop
TH1F *hData[3][2][nbins_cent+1];
TH1F *hData_Ratio[TrigValue][nbins_cent+1];
TH1F *hMC[3][2][nbins_cent+1];
TH1F *hMC_Ratio[TrigValue][nbins_cent+1];
// need the ratio histograms from each time we add the Jet ID cuts for the full spectra.
// need to make 2d histograms like what Yetkin showed plotting the ratio of species fraction/jtpt vs jtpt and for genpt for MC - done
TH1F *hData_chMax[nbins_cent+1], *hData_chSum[nbins_cent+1],*hData_neMax[nbins_cent+1], *hData_neSum[nbins_cent+1],*hData_phMax[nbins_cent+1], *hData_phSum[nbins_cent+1],*hData_eMax[nbins_cent+1], *hData_eSum[nbins_cent+1],*hData_muMax[nbins_cent+1], *hData_muSum[nbins_cent+1];
TH1F *hMC_chMax[nbins_cent+1], *hMC_chSum[nbins_cent+1],*hMC_neMax[nbins_cent+1], *hMC_neSum[nbins_cent+1],*hMC_phMax[nbins_cent+1], *hMC_phSum[nbins_cent+1],*hMC_eMax[nbins_cent+1], *hMC_eSum[nbins_cent+1],*hMC_muMax[nbins_cent+1], *hMC_muSum[nbins_cent+1];
TH2F *hData_chMaxJtPt_Pt[nbins_cent+1], *hData_chSumJtPt_Pt[nbins_cent+1], *hData_neMaxJtPt_Pt[nbins_cent+1], *hData_neSumJtPt_Pt[nbins_cent+1], *hData_phMaxJtPt_Pt[nbins_cent+1], *hData_phSumJtPt_Pt[nbins_cent+1], *hData_eMaxJtPt_Pt[nbins_cent+1], *hData_eSumJtPt_Pt[nbins_cent+1], *hData_muMaxJtPt_Pt[nbins_cent+1], *hData_muSumJtPt_Pt[nbins_cent+1];
TH2F *hMC_chMaxJtPt_Pt[nbins_cent+1], *hMC_chSumJtPt_Pt[nbins_cent+1], *hMC_neMaxJtPt_Pt[nbins_cent+1], *hMC_neSumJtPt_Pt[nbins_cent+1], *hMC_phMaxJtPt_Pt[nbins_cent+1], *hMC_phSumJtPt_Pt[nbins_cent+1], *hMC_eMaxJtPt_Pt[nbins_cent+1], *hMC_eSumJtPt_Pt[nbins_cent+1], *hMC_muMaxJtPt_Pt[nbins_cent+1], *hMC_muSumJtPt_Pt[nbins_cent+1];
TH2F *hMC_chMaxGenPt_Pt[nbins_cent+1], *hMC_chSumGenPt_Pt[nbins_cent+1], *hMC_neMaxGenPt_Pt[nbins_cent+1], *hMC_neSumGenPt_Pt[nbins_cent+1], *hMC_phMaxGenPt_Pt[nbins_cent+1], *hMC_phSumGenPt_Pt[nbins_cent+1], *hMC_eMaxGenPt_Pt[nbins_cent+1], *hMC_eSumGenPt_Pt[nbins_cent+1], *hMC_muMaxGenPt_Pt[nbins_cent+1], *hMC_muSumGenPt_Pt[nbins_cent+1];
TH2F *hData_chMaxSumMaxChNePh_Pt[nbins_cent+1], *hData_chSumSumMaxChNePh_Pt[nbins_cent+1], *hData_neMaxSumMaxChNePh_Pt[nbins_cent+1], *hData_neSumSumMaxChNePh_Pt[nbins_cent+1], *hData_phMaxSumMaxChNePh_Pt[nbins_cent+1], *hData_phSumSumMaxChNePh_Pt[nbins_cent+1], *hData_eMaxSumMaxChNePh_Pt[nbins_cent+1], *hData_eSumSumMaxChNePh_Pt[nbins_cent+1], *hData_muMaxSumMaxChNePh_Pt[nbins_cent+1], *hData_muSumSumMaxChNePh_Pt[nbins_cent+1];
TH2F *hMC_chMaxSumMaxChNePh_Pt[nbins_cent+1], *hMC_chSumSumMaxChNePh_Pt[nbins_cent+1], *hMC_neMaxSumMaxChNePh_Pt[nbins_cent+1], *hMC_neSumSumMaxChNePh_Pt[nbins_cent+1], *hMC_phMaxSumMaxChNePh_Pt[nbins_cent+1], *hMC_phSumSumMaxChNePh_Pt[nbins_cent+1], *hMC_eMaxSumMaxChNePh_Pt[nbins_cent+1], *hMC_eSumSumMaxChNePh_Pt[nbins_cent+1], *hMC_muMaxSumMaxChNePh_Pt[nbins_cent+1], *hMC_muSumSumMaxChNePh_Pt[nbins_cent+1];
TH2F *hMC_chMaxSumMaxChNePh_GenPt[nbins_cent+1], *hMC_chSumSumMaxChNePh_GenPt[nbins_cent+1], *hMC_neMaxSumMaxChNePh_GenPt[nbins_cent+1], *hMC_neSumSumMaxChNePh_GenPt[nbins_cent+1], *hMC_phMaxSumMaxChNePh_GenPt[nbins_cent+1], *hMC_phSumSumMaxChNePh_GenPt[nbins_cent+1], *hMC_eMaxSumMaxChNePh_GenPt[nbins_cent+1], *hMC_eSumSumMaxChNePh_GenPt[nbins_cent+1], *hMC_muMaxSumMaxChNePh_GenPt[nbins_cent+1], *hMC_muSumSumMaxChNePh_GenPt[nbins_cent+1];
#if 0
TH2F *hData_chMaxSumMaxChNePh_Pt[nbins_cent+1], *hData_chSumSumMaxChNePh_Pt[nbins_cent+1], *hData_neMaxSumMaxChNePh_Pt[nbins_cent+1], *hData_neSumSumMaxChNePh_Pt[nbins_cent+1], *hData_phMaxSumMaxChNePh_Pt[nbins_cent+1], *hData_phSumSumMaxChNePh_Pt[nbins_cent+1], *hData_eMaxSumMaxChNePh_Pt[nbins_cent+1], *hData_eSumSumMaxChNePh_Pt[nbins_cent+1], *hData_muMaxSumMaxChNePh_Pt[nbins_cent+1], *hData_muSumSumMaxChNePh_Pt[nbins_cent+1];
TH2F *hMC_chMaxSumMaxChNePh_Pt[nbins_cent+1], *hMC_chSumSumMaxChNePh_Pt[nbins_cent+1], *hMC_neMaxSumMaxChNePh_Pt[nbins_cent+1], *hMC_neSumSumMaxChNePh_Pt[nbins_cent+1], *hMC_phMaxSumMaxChNePh_Pt[nbins_cent+1], *hMC_phSumSumMaxChNePh_Pt[nbins_cent+1], *hMC_eMaxSumMaxChNePh_Pt[nbins_cent+1], *hMC_eSumSumMaxChNePh_Pt[nbins_cent+1], *hMC_muMaxSumMaxChNePh_Pt[nbins_cent+1], *hMC_muSumSumMaxChNePh_Pt[nbins_cent+1];
TH2F *hMC_chMaxSumMaxChNePh_GenPt[nbins_cent+1], *hMC_chSumSumMaxChNePh_GenPt[nbins_cent+1], *hMC_neMaxSumMaxChNePh_GenPt[nbins_cent+1], *hMC_neSumSumMaxChNePh_GenPt[nbins_cent+1], *hMC_phMaxSumMaxChNePh_GenPt[nbins_cent+1], *hMC_phSumSumMaxChNePh_GenPt[nbins_cent+1], *hMC_eMaxSumMaxChNePh_GenPt[nbins_cent+1], *hMC_eSumSumMaxChNePh_GenPt[nbins_cent+1], *hMC_muMaxSumMaxChNePh_GenPt[nbins_cent+1], *hMC_muSumSumMaxChNePh_GenPt[nbins_cent+1];
#endif
//We are also going to check for the individual application of the cuts rather than the sequencial application. for both data and MC. and we are also going to need the ratio plots
TH1F *hData_chMax_SumMaxChNePh[CutValue][nbins_cent+1], *hData_neMax_SumMaxChNePh[CutValue][nbins_cent+1], *hData_phMax_SumMaxChNePh[CutValue][nbins_cent+1], *hData_eMax_SumMaxChNePh[CutValue][nbins_cent+1], *hData_muMax_SumMaxChNePh[CutValue][nbins_cent+1];
TH1F *hMC_chMax_SumMaxChNePh[CutValue][nbins_cent+1], *hMC_neMax_SumMaxChNePh[CutValue][nbins_cent+1], *hMC_phMax_SumMaxChNePh[CutValue][nbins_cent+1], *hMC_eMax_SumMaxChNePh[CutValue][nbins_cent+1], *hMC_muMax_SumMaxChNePh[CutValue][nbins_cent+1];
TH1F *hData_Ratio_chMax_SumMaxChNePh[nbins_cent+1], *hData_Ratio_neMax_SumMaxChNePh[nbins_cent+1], *hData_Ratio_phMax_SumMaxChNePh[nbins_cent+1], *hData_Ratio_muMax_SumMaxChNePh[nbins_cent+1], *hData_Ratio_eMax_SumMaxChNePh[nbins_cent+1];
TH1F *hMC_Ratio_chMax_SumMaxChNePh[nbins_cent+1], *hMC_Ratio_neMax_SumMaxChNePh[nbins_cent+1], *hMC_Ratio_phMax_SumMaxChNePh[nbins_cent+1], *hMC_Ratio_muMax_SumMaxChNePh[nbins_cent+1], *hMC_Ratio_eMax_SumMaxChNePh[nbins_cent+1];
TH1F *hData_chMax_SumSumChPhNeEMu[CutValue][nbins_cent+1], *hData_neMax_SumSumChPhNeEMu[CutValue][nbins_cent+1], *hData_phMax_SumSumChPhNeEMu[CutValue][nbins_cent+1], *hData_eMax_SumSumChPhNeEMu[CutValue][nbins_cent+1], *hData_muMax_SumSumChPhNeEMu[CutValue][nbins_cent+1];
TH1F *hMC_chMax_SumSumChPhNeEMu[CutValue][nbins_cent+1], *hMC_neMax_SumSumChPhNeEMu[CutValue][nbins_cent+1], *hMC_phMax_SumSumChPhNeEMu[CutValue][nbins_cent+1], *hMC_eMax_SumSumChPhNeEMu[CutValue][nbins_cent+1], *hMC_muMax_SumSumChPhNeEMu[CutValue][nbins_cent+1];
TH1F *hData_Ratio_chMax_SumSumChPhNeEMu[nbins_cent+1], *hData_Ratio_neMax_SumSumChPhNeEMu[nbins_cent+1], *hData_Ratio_phMax_SumSumChPhNeEMu[nbins_cent+1], *hData_Ratio_muMax_SumSumChPhNeEMu[nbins_cent+1], *hData_Ratio_eMax_SumSumChPhNeEMu[nbins_cent+1];
TH1F *hMC_Ratio_chMax_SumSumChPhNeEMu[nbins_cent+1], *hMC_Ratio_neMax_SumSumChPhNeEMu[nbins_cent+1], *hMC_Ratio_phMax_SumSumChPhNeEMu[nbins_cent+1], *hMC_Ratio_muMax_SumSumChPhNeEMu[nbins_cent+1], *hMC_Ratio_eMax_SumSumChPhNeEMu[nbins_cent+1];
TH1F * hData_noCut[nbins_cent+1];
TH1F * hMC_noCut[nbins_cent+1];
TH1F * hData_eMaxJtPt_0p9[nbins_cent+1];
TH1F * hData_eMaxJtPt_0p8[nbins_cent+1];
TH1F * hData_eMaxJtPt_0p7[nbins_cent+1];
TH1F * hData_eMaxJtPt_0p6[nbins_cent+1];
TH1F * hData_eMaxJtPt_0p5[nbins_cent+1];
TH1F * hData_eMaxJtPt_0p4[nbins_cent+1];
TH1F * hData_eMaxJtPt_0p3[nbins_cent+1];
TH1F * hData_eMaxJtPt_0p2[nbins_cent+1];
TH1F * hData_eMaxJtPt_0p1[nbins_cent+1];
TH1F * hData_Ratio_eMaxJtPt_0p9[nbins_cent+1];
TH1F * hData_Ratio_eMaxJtPt_0p8[nbins_cent+1];
TH1F * hData_Ratio_eMaxJtPt_0p7[nbins_cent+1];
TH1F * hData_Ratio_eMaxJtPt_0p6[nbins_cent+1];
TH1F * hData_Ratio_eMaxJtPt_0p5[nbins_cent+1];
TH1F * hData_Ratio_eMaxJtPt_0p4[nbins_cent+1];
TH1F * hData_Ratio_eMaxJtPt_0p3[nbins_cent+1];
TH1F * hData_Ratio_eMaxJtPt_0p2[nbins_cent+1];
TH1F * hData_Ratio_eMaxJtPt_0p1[nbins_cent+1];
TH1F * hMC_eMaxJtPt_0p9[nbins_cent+1];
TH1F * hMC_eMaxJtPt_0p8[nbins_cent+1];
TH1F * hMC_eMaxJtPt_0p7[nbins_cent+1];
TH1F * hMC_eMaxJtPt_0p6[nbins_cent+1];
TH1F * hMC_eMaxJtPt_0p5[nbins_cent+1];
TH1F * hMC_eMaxJtPt_0p4[nbins_cent+1];
TH1F * hMC_eMaxJtPt_0p3[nbins_cent+1];
TH1F * hMC_eMaxJtPt_0p2[nbins_cent+1];
TH1F * hMC_eMaxJtPt_0p1[nbins_cent+1];
TH1F * hMC_Ratio_eMaxJtPt_0p9[nbins_cent+1];
TH1F * hMC_Ratio_eMaxJtPt_0p8[nbins_cent+1];
TH1F * hMC_Ratio_eMaxJtPt_0p7[nbins_cent+1];
TH1F * hMC_Ratio_eMaxJtPt_0p6[nbins_cent+1];
TH1F * hMC_Ratio_eMaxJtPt_0p5[nbins_cent+1];
TH1F * hMC_Ratio_eMaxJtPt_0p4[nbins_cent+1];
TH1F * hMC_Ratio_eMaxJtPt_0p3[nbins_cent+1];
TH1F * hMC_Ratio_eMaxJtPt_0p2[nbins_cent+1];
TH1F * hMC_Ratio_eMaxJtPt_0p1[nbins_cent+1];
TH1F * hData_eSumOverSumchphnemu_0p9[nbins_cent+1];
TH1F * hData_eSumOverSumchphnemu_0p8[nbins_cent+1];
TH1F * hData_eSumOverSumchphnemu_0p7[nbins_cent+1];
TH1F * hData_eSumOverSumchphnemu_0p6[nbins_cent+1];
TH1F * hData_eSumOverSumchphnemu_0p5[nbins_cent+1];
TH1F * hData_eSumOverSumchphnemu_0p4[nbins_cent+1];
TH1F * hData_eSumOverSumchphnemu_0p3[nbins_cent+1];
TH1F * hData_eSumOverSumchphnemu_0p2[nbins_cent+1];
TH1F * hData_eSumOverSumchphnemu_0p1[nbins_cent+1];
TH1F * hData_Ratio_eSumOverSumchphnemu_0p9[nbins_cent+1];
TH1F * hData_Ratio_eSumOverSumchphnemu_0p8[nbins_cent+1];
TH1F * hData_Ratio_eSumOverSumchphnemu_0p7[nbins_cent+1];
TH1F * hData_Ratio_eSumOverSumchphnemu_0p6[nbins_cent+1];
TH1F * hData_Ratio_eSumOverSumchphnemu_0p5[nbins_cent+1];
TH1F * hData_Ratio_eSumOverSumchphnemu_0p4[nbins_cent+1];
TH1F * hData_Ratio_eSumOverSumchphnemu_0p3[nbins_cent+1];
TH1F * hData_Ratio_eSumOverSumchphnemu_0p2[nbins_cent+1];
TH1F * hData_Ratio_eSumOverSumchphnemu_0p1[nbins_cent+1];
TH1F * hMC_eSumOverSumchphnemu_0p9[nbins_cent+1];
TH1F * hMC_eSumOverSumchphnemu_0p8[nbins_cent+1];
TH1F * hMC_eSumOverSumchphnemu_0p7[nbins_cent+1];
TH1F * hMC_eSumOverSumchphnemu_0p6[nbins_cent+1];
TH1F * hMC_eSumOverSumchphnemu_0p5[nbins_cent+1];
TH1F * hMC_eSumOverSumchphnemu_0p4[nbins_cent+1];
TH1F * hMC_eSumOverSumchphnemu_0p3[nbins_cent+1];
TH1F * hMC_eSumOverSumchphnemu_0p2[nbins_cent+1];
TH1F * hMC_eSumOverSumchphnemu_0p1[nbins_cent+1];
TH1F * hMC_Ratio_eSumOverSumchphnemu_0p9[nbins_cent+1];
TH1F * hMC_Ratio_eSumOverSumchphnemu_0p8[nbins_cent+1];
TH1F * hMC_Ratio_eSumOverSumchphnemu_0p7[nbins_cent+1];
TH1F * hMC_Ratio_eSumOverSumchphnemu_0p6[nbins_cent+1];
TH1F * hMC_Ratio_eSumOverSumchphnemu_0p5[nbins_cent+1];
TH1F * hMC_Ratio_eSumOverSumchphnemu_0p4[nbins_cent+1];
TH1F * hMC_Ratio_eSumOverSumchphnemu_0p3[nbins_cent+1];
TH1F * hMC_Ratio_eSumOverSumchphnemu_0p2[nbins_cent+1];
TH1F * hMC_Ratio_eSumOverSumchphnemu_0p1[nbins_cent+1];
TH2F *hData_eSumOverSumchphnemu_Jtpt[nbins_cent+1], *hData_eSumOverSumchphnemu_eMaxJtpt[nbins_cent+1];
TH2F *hMC_eSumOverSumchphnemu_Jtpt[nbins_cent+1], *hMC_eSumOverSumchphnemu_eMaxJtpt[nbins_cent+1];
TH2F *hMC_eSumOverSumchphnemu_Genpt[nbins_cent+1], *hMC_eSumOverSumchphnemu_eMaxGenpt[nbins_cent+1];
for(int i = 0;i<=nbins_cent;i++){
hData_eSumOverSumchphnemu_Jtpt[i] = new TH2F(Form("hData_eSumOverSumchphnemu_Jtpt_cent%d",i),"",100,0,2,1000,0,1000);
hData_eSumOverSumchphnemu_eMaxJtpt[i] = new TH2F(Form("hData_eSumOverSumchphnemu_eMaxJtpt_cent%d",i),"",100,0,2,100,0,2);
hMC_eSumOverSumchphnemu_Jtpt[i] = new TH2F(Form("hMC_eSumOverSumchphnemu_Jtpt_cent%d",i),"",100,0,2,1000,0,1000);
hMC_eSumOverSumchphnemu_eMaxJtpt[i] = new TH2F(Form("hMC_eSumOverSumchphnemu_eMaxJtpt_cent%d",i),"",100,0,2,100,0,2);
hMC_eSumOverSumchphnemu_Genpt[i] = new TH2F(Form("hMC_eSumOverSumchphnemu_Genpt_cent%d",i),"",100,0,2,1000,0,1000);
hMC_eSumOverSumchphnemu_eMaxGenpt[i] = new TH2F(Form("hMC_eSumOverSumchphnemu_eMaxGentpt_cent%d",i),"",100,0,2,100,0,2);
hData_chMax[i] = new TH1F(Form("hData_chMax_cent%d",i),"",1000,0,1000);
hData_chSum[i] = new TH1F(Form("hData_chSum_cent%d",i),"",1000,0,1000);
hData_neMax[i] = new TH1F(Form("hData_neMax_cent%d",i),"",1000,0,1000);
hData_neSum[i] = new TH1F(Form("hData_neSum_cent%d",i),"",1000,0,1000);
hData_phMax[i] = new TH1F(Form("hData_phMax_cent%d",i),"",1000,0,1000);
hData_phSum[i] = new TH1F(Form("hData_phSum_cent%d",i),"",1000,0,1000);
hData_eMax[i] = new TH1F(Form("hData_eMax_cent%d",i),"",1000,0,1000);
hData_eSum[i] = new TH1F(Form("hData_eSum_cent%d",i),"",1000,0,1000);
hData_muMax[i] = new TH1F(Form("hData_muMax_cent%d",i),"",1000,0,1000);
hData_muSum[i] = new TH1F(Form("hData_muSum_cent%d",i),"",1000,0,1000);
hMC_chMax[i] = new TH1F(Form("hMC_chMax_cent%d",i),"",1000,0,1000);
hMC_chSum[i] = new TH1F(Form("hMC_chSum_cent%d",i),"",1000,0,1000);
hMC_neMax[i] = new TH1F(Form("hMC_neMax_cent%d",i),"",1000,0,1000);
hMC_neSum[i] = new TH1F(Form("hMC_neSum_cent%d",i),"",1000,0,1000);
hMC_phMax[i] = new TH1F(Form("hMC_phMax_cent%d",i),"",1000,0,1000);
hMC_phSum[i] = new TH1F(Form("hMC_phSum_cent%d",i),"",1000,0,1000);
hMC_eMax[i] = new TH1F(Form("hMC_eMax_cent%d",i),"",1000,0,1000);
hMC_eSum[i] = new TH1F(Form("hMC_eSum_cent%d",i),"",1000,0,1000);
hMC_muMax[i] = new TH1F(Form("hMC_muMax_cent%d",i),"",1000,0,1000);
hMC_muSum[i] = new TH1F(Form("hMC_muSum_cent%d",i),"",1000,0,1000);
hData_chMaxJtPt_Pt[i] = new TH2F(Form("hData_chMaxJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_chSumJtPt_Pt[i] = new TH2F(Form("hData_chSumJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_phMaxJtPt_Pt[i] = new TH2F(Form("hData_phMaxJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_phSumJtPt_Pt[i] = new TH2F(Form("hData_phSumJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_neMaxJtPt_Pt[i] = new TH2F(Form("hData_neMaxJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_neSumJtPt_Pt[i] = new TH2F(Form("hData_neSumJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_eMaxJtPt_Pt[i] = new TH2F(Form("hData_eMaxJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_eSumJtPt_Pt[i] = new TH2F(Form("hData_eSumJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_muMaxJtPt_Pt[i] = new TH2F(Form("hData_muMaxJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_muSumJtPt_Pt[i] = new TH2F(Form("hData_muSumJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_chMaxJtPt_Pt[i] = new TH2F(Form("hMC_chMaxJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_chSumJtPt_Pt[i] = new TH2F(Form("hMC_chSumJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_phMaxJtPt_Pt[i] = new TH2F(Form("hMC_phMaxJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_phSumJtPt_Pt[i] = new TH2F(Form("hMC_phSumJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_neMaxJtPt_Pt[i] = new TH2F(Form("hMC_neMaxJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_neSumJtPt_Pt[i] = new TH2F(Form("hMC_neSumJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_eMaxJtPt_Pt[i] = new TH2F(Form("hMC_eMaxJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_eSumJtPt_Pt[i] = new TH2F(Form("hMC_eSumJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_muMaxJtPt_Pt[i] = new TH2F(Form("hMC_muMaxJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_muSumJtPt_Pt[i] = new TH2F(Form("hMC_muSumJtPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_chMaxGenPt_Pt[i] = new TH2F(Form("hMC_chMaxGenPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_chSumGenPt_Pt[i] = new TH2F(Form("hMC_chSumGenPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_phMaxGenPt_Pt[i] = new TH2F(Form("hMC_phMaxGenPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_phSumGenPt_Pt[i] = new TH2F(Form("hMC_phSumGenPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_neMaxGenPt_Pt[i] = new TH2F(Form("hMC_neMaxGenPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_neSumGenPt_Pt[i] = new TH2F(Form("hMC_neSumGenPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_eMaxGenPt_Pt[i] = new TH2F(Form("hMC_eMaxGenPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_eSumGenPt_Pt[i] = new TH2F(Form("hMC_eSumGenPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_muMaxGenPt_Pt[i] = new TH2F(Form("hMC_muMaxGenPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_muSumGenPt_Pt[i] = new TH2F(Form("hMC_muSumGenPt_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_chMaxSumMaxChNePh_Pt[i] = new TH2F(Form("hData_chMaxSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_chSumSumMaxChNePh_Pt[i] = new TH2F(Form("hData_chSumSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_phMaxSumMaxChNePh_Pt[i] = new TH2F(Form("hData_phMaxSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_phSumSumMaxChNePh_Pt[i] = new TH2F(Form("hData_phSumSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_neMaxSumMaxChNePh_Pt[i] = new TH2F(Form("hData_neMaxSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_neSumSumMaxChNePh_Pt[i] = new TH2F(Form("hData_neSumSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_eMaxSumMaxChNePh_Pt[i] = new TH2F(Form("hData_eMaxSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_eSumSumMaxChNePh_Pt[i] = new TH2F(Form("hData_eSumSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_muMaxSumMaxChNePh_Pt[i] = new TH2F(Form("hData_muMaxSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hData_muSumSumMaxChNePh_Pt[i] = new TH2F(Form("hData_muSumSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_chMaxSumMaxChNePh_Pt[i] = new TH2F(Form("hMC_chMaxSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_chSumSumMaxChNePh_Pt[i] = new TH2F(Form("hMC_chSumSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_phMaxSumMaxChNePh_Pt[i] = new TH2F(Form("hMC_phMaxSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_phSumSumMaxChNePh_Pt[i] = new TH2F(Form("hMC_phSumSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_neMaxSumMaxChNePh_Pt[i] = new TH2F(Form("hMC_neMaxSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_neSumSumMaxChNePh_Pt[i] = new TH2F(Form("hMC_neSumSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_eMaxSumMaxChNePh_Pt[i] = new TH2F(Form("hMC_eMaxSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_eSumSumMaxChNePh_Pt[i] = new TH2F(Form("hMC_eSumSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_muMaxSumMaxChNePh_Pt[i] = new TH2F(Form("hMC_muMaxSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_muSumSumMaxChNePh_Pt[i] = new TH2F(Form("hMC_muSumSumMaxChNePh_Pt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_chMaxSumMaxChNePh_GenPt[i] = new TH2F(Form("hMC_chMaxSumMaxChNePh_GenPt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_chSumSumMaxChNePh_GenPt[i] = new TH2F(Form("hMC_chSumSumMaxChNePh_GenPt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_phMaxSumMaxChNePh_GenPt[i] = new TH2F(Form("hMC_phMaxSumMaxChNePh_GenPt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_phSumSumMaxChNePh_GenPt[i] = new TH2F(Form("hMC_phSumSumMaxChNePh_GenPt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_neMaxSumMaxChNePh_GenPt[i] = new TH2F(Form("hMC_neMaxSumMaxChNePh_GenPt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_neSumSumMaxChNePh_GenPt[i] = new TH2F(Form("hMC_neSumSumMaxChNePh_GenPt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_eMaxSumMaxChNePh_GenPt[i] = new TH2F(Form("hMC_eMaxSumMaxChNePh_GenPt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_eSumSumMaxChNePh_GenPt[i] = new TH2F(Form("hMC_eSumSumMaxChNePh_GenPt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_muMaxSumMaxChNePh_GenPt[i] = new TH2F(Form("hMC_muMaxSumMaxChNePh_GenPt_cent%d",i),"",100,0,10,1000,0,1000);
hMC_muSumSumMaxChNePh_GenPt[i] = new TH2F(Form("hMC_muSumSumMaxChNePh_GenPt_cent%d",i),"",100,0,10,1000,0,1000);
for(int a = 0;a<TrigValue;a++){
for(int b = 0;b<CutValue;b++){
hData[a][b][i] = new TH1F(Form("hData_%s_%s_JetID_cent%d",TrigName[a],isJetID[b],i),Form("Data Jet Spectra from %s trigger %s JetID cuts in the centrality bin %s",TrigName[a],isJetID[b],centWidth[i]),1000,0,1000);
hMC[a][b][i] = new TH1F(Form("hMC_%s_%s_JetID_cent%d",TrigName[a],isJetID[b],i),Form("MC Jet Spectra from %s trigger %s JetID cuts in the centrality bin %s",TrigName[a],isJetID[b],centWidth[i]),1000,0,1000);
}
}
}
for(int i = 0;i<nbins_cent+1;i++){
for(int b = 0;b<CutValue;b++){
hData_chMax_SumMaxChNePh[b][i] = new TH1F(Form("hData_chMax_SumMaxChNePh_%s_JetID_cent%d",isJetID[b],i),"",1000,0,1000);
hMC_chMax_SumMaxChNePh[b][i] = new TH1F(Form("hMC_chMax_SumMaxChNePh_%s_JetID_cent%d",isJetID[b],i),"",1000,0,1000);
hData_phMax_SumMaxChNePh[b][i] = new TH1F(Form("hData_phMax_SumMaxChNePh_%s_JetID_cent%d",isJetID[b],i),"",1000,0,1000);
hMC_phMax_SumMaxChNePh[b][i] = new TH1F(Form("hMC_phMax_SumMaxChNePh_%s_JetID_cent%d",isJetID[b],i),"",1000,0,1000);
hData_neMax_SumMaxChNePh[b][i] = new TH1F(Form("hData_neMax_SumMaxChNePh_%s_JetID_cent%d",isJetID[b],i),"",1000,0,1000);
hMC_neMax_SumMaxChNePh[b][i] = new TH1F(Form("hMC_neMax_SumMaxChNePh_%s_JetID_cent%d",isJetID[b],i),"",1000,0,1000);
hData_muMax_SumMaxChNePh[b][i] = new TH1F(Form("hData_muMax_SumMaxChNePh_%s_JetID_cent%d",isJetID[b],i),"",1000,0,1000);
hMC_muMax_SumMaxChNePh[b][i] = new TH1F(Form("hMC_muMax_SumMaxChNePh_%s_JetID_cent%d",isJetID[b],i),"",1000,0,1000);
hData_eMax_SumMaxChNePh[b][i] = new TH1F(Form("hData_eMax_SumMaxChNePh_%s_JetID_cent%d",isJetID[b],i),"",1000,0,1000);
hMC_eMax_SumMaxChNePh[b][i] = new TH1F(Form("hMC_eMax_SumMaxChNePh_%s_JetID_cent%d",isJetID[b],i),"",1000,0,1000);
}
hData_noCut[i] = new TH1F(Form("hData_noCut_cent%d",i),"",1000,0,1000);
hMC_noCut[i] = new TH1F(Form("hMC_noCut_cent%d",i),"",1000,0,1000);
hData_eMaxJtPt_0p9[i] = new TH1F(Form("hData_eMaxJtPt_0p9_cent%d",i),"",1000,0,1000);
hData_eMaxJtPt_0p8[i] = new TH1F(Form("hData_eMaxJtPt_0p8_cent%d",i),"",1000,0,1000);
hData_eMaxJtPt_0p7[i] = new TH1F(Form("hData_eMaxJtPt_0p7_cent%d",i),"",1000,0,1000);
hData_eMaxJtPt_0p6[i] = new TH1F(Form("hData_eMaxJtPt_0p6_cent%d",i),"",1000,0,1000);
hData_eMaxJtPt_0p5[i] = new TH1F(Form("hData_eMaxJtPt_0p5_cent%d",i),"",1000,0,1000);
hData_eMaxJtPt_0p4[i] = new TH1F(Form("hData_eMaxJtPt_0p4_cent%d",i),"",1000,0,1000);
hData_eMaxJtPt_0p3[i] = new TH1F(Form("hData_eMaxJtPt_0p3_cent%d",i),"",1000,0,1000);
hData_eMaxJtPt_0p2[i] = new TH1F(Form("hData_eMaxJtPt_0p2_cent%d",i),"",1000,0,1000);
hData_eMaxJtPt_0p1[i] = new TH1F(Form("hData_eMaxJtPt_0p1_cent%d",i),"",1000,0,1000);
hMC_eMaxJtPt_0p9[i] = new TH1F(Form("hMC_eMaxJtPt_0p9_cent%d",i),"",1000,0,1000);
hMC_eMaxJtPt_0p8[i] = new TH1F(Form("hMC_eMaxJtPt_0p8_cent%d",i),"",1000,0,1000);
hMC_eMaxJtPt_0p7[i] = new TH1F(Form("hMC_eMaxJtPt_0p7_cent%d",i),"",1000,0,1000);
hMC_eMaxJtPt_0p6[i] = new TH1F(Form("hMC_eMaxJtPt_0p6_cent%d",i),"",1000,0,1000);
hMC_eMaxJtPt_0p5[i] = new TH1F(Form("hMC_eMaxJtPt_0p5_cent%d",i),"",1000,0,1000);
hMC_eMaxJtPt_0p4[i] = new TH1F(Form("hMC_eMaxJtPt_0p4_cent%d",i),"",1000,0,1000);
hMC_eMaxJtPt_0p3[i] = new TH1F(Form("hMC_eMaxJtPt_0p3_cent%d",i),"",1000,0,1000);
hMC_eMaxJtPt_0p2[i] = new TH1F(Form("hMC_eMaxJtPt_0p2_cent%d",i),"",1000,0,1000);
hMC_eMaxJtPt_0p1[i] = new TH1F(Form("hMC_eMaxJtPt_0p1_cent%d",i),"",1000,0,1000);
hData_eSumOverSumchphnemu_0p9[i] = new TH1F(Form("hData_eSumOverSumchphnemu_0p9_cent%d",i),"",1000,0,1000);
hData_eSumOverSumchphnemu_0p8[i] = new TH1F(Form("hData_eSumOverSumchphnemu_0p8_cent%d",i),"",1000,0,1000);
hData_eSumOverSumchphnemu_0p7[i] = new TH1F(Form("hData_eSumOverSumchphnemu_0p7_cent%d",i),"",1000,0,1000);
hData_eSumOverSumchphnemu_0p6[i] = new TH1F(Form("hData_eSumOverSumchphnemu_0p6_cent%d",i),"",1000,0,1000);
hData_eSumOverSumchphnemu_0p5[i] = new TH1F(Form("hData_eSumOverSumchphnemu_0p5_cent%d",i),"",1000,0,1000);
hData_eSumOverSumchphnemu_0p4[i] = new TH1F(Form("hData_eSumOverSumchphnemu_0p4_cent%d",i),"",1000,0,1000);
hData_eSumOverSumchphnemu_0p3[i] = new TH1F(Form("hData_eSumOverSumchphnemu_0p3_cent%d",i),"",1000,0,1000);
hData_eSumOverSumchphnemu_0p2[i] = new TH1F(Form("hData_eSumOverSumchphnemu_0p2_cent%d",i),"",1000,0,1000);
hData_eSumOverSumchphnemu_0p1[i] = new TH1F(Form("hData_eSumOverSumchphnemu_0p1_cent%d",i),"",1000,0,1000);
hMC_eSumOverSumchphnemu_0p9[i] = new TH1F(Form("hMC_eSumOverSumchphnemu_0p9_cent%d",i),"",1000,0,1000);
hMC_eSumOverSumchphnemu_0p8[i] = new TH1F(Form("hMC_eSumOverSumchphnemu_0p8_cent%d",i),"",1000,0,1000);
hMC_eSumOverSumchphnemu_0p7[i] = new TH1F(Form("hMC_eSumOverSumchphnemu_0p7_cent%d",i),"",1000,0,1000);
hMC_eSumOverSumchphnemu_0p6[i] = new TH1F(Form("hMC_eSumOverSumchphnemu_0p6_cent%d",i),"",1000,0,1000);
hMC_eSumOverSumchphnemu_0p5[i] = new TH1F(Form("hMC_eSumOverSumchphnemu_0p5_cent%d",i),"",1000,0,1000);
hMC_eSumOverSumchphnemu_0p4[i] = new TH1F(Form("hMC_eSumOverSumchphnemu_0p4_cent%d",i),"",1000,0,1000);
hMC_eSumOverSumchphnemu_0p3[i] = new TH1F(Form("hMC_eSumOverSumchphnemu_0p3_cent%d",i),"",1000,0,1000);
hMC_eSumOverSumchphnemu_0p2[i] = new TH1F(Form("hMC_eSumOverSumchphnemu_0p2_cent%d",i),"",1000,0,1000);
hMC_eSumOverSumchphnemu_0p1[i] = new TH1F(Form("hMC_eSumOverSumchphnemu_0p1_cent%d",i),"",1000,0,1000);
}
// Lets start to get the histograms from the Tree - Project is a complete waste of time since it has to run over the whole tree every time.
// best would be to set branch addresses:
// int L1_MB_1;
// int L1_MB_p_1;
Float_t L1_sj36_1;
Float_t L1_sj52_1;
// Float_t jetMB_1;
Float_t jet55_1;
Float_t jet65_1;
Float_t jet80_1;
// Float_t jetMB_p_1;
Float_t L1_sj36_p_1;
Float_t L1_sj52_p_1;
Float_t jet55_p_1;
Float_t jet65_p_1;
Float_t jet80_p_1;
float trgObjpt_1;
float cent_1;
float jtpt_1;
float raw_1;
// float eta_1;
// float eta_1_CM;
// float phi_1;
float chMax_1;
// float trkMax_1;
float chSum_1;
float phSum_1;
float neSum_1;
// float trkSum_1;
float phMax_1;
float neMax_1;
float eMax_1;
float muMax_1;
float eSum_1;
float muSum_1;
float jtpu_1;
jetData->SetBranchAddress("rawpt",&raw_1);
jetData->SetBranchAddress("jtpt",&jtpt_1);
jetData->SetBranchAddress("jtpu",&jtpu_1);
jetData->SetBranchAddress("l1sj36",&L1_sj36_1);
jetData->SetBranchAddress("l1sj36_prescl",&L1_sj36_p_1);
jetData->SetBranchAddress("l1sj52",&L1_sj52_1);
jetData->SetBranchAddress("l1sj52_prescl",&L1_sj52_p_1);
jetData->SetBranchAddress("jet55",&jet55_1);
jetData->SetBranchAddress("jet55_prescl",&jet55_p_1);
jetData->SetBranchAddress("jet65",&jet65_1);
jetData->SetBranchAddress("jet65_prescl",&jet65_p_1);
jetData->SetBranchAddress("jet80",&jet80_1);
jetData->SetBranchAddress("jet80_prescl",&jet80_p_1);
jetData->SetBranchAddress("trgObjpt",&trgObjpt_1);
jetData->SetBranchAddress("cent",¢_1);
jetData->SetBranchAddress("chMax",&chMax_1);
jetData->SetBranchAddress("chSum",&chSum_1);
jetData->SetBranchAddress("phMax",&phMax_1);
jetData->SetBranchAddress("phSum",&phSum_1);
jetData->SetBranchAddress("neMax",&neMax_1);
jetData->SetBranchAddress("neSum",&neSum_1);
jetData->SetBranchAddress("muMax",&muMax_1);
jetData->SetBranchAddress("muSum",&muSum_1);
jetData->SetBranchAddress("eMax",&eMax_1);
jetData->SetBranchAddress("eSum",&eSum_1);
Float_t effecPrescl = 2.047507;
int centBin_1 = 0;
// Set Variables for MC. (_2)
Float_t jet55_2;
Float_t jet65_2;
Float_t jet80_2;
Float_t jet55_p_2;
Float_t jet65_p_2;
Float_t jet80_p_2;
float cent_2;
float jtpt_2;
float raw_2;
float refpt_2;
float scale_2;
float weight_vz_2;
float weight_cent_2;
float subid_2;
float chMax_2;
float chSum_2;
float phSum_2;
float neSum_2;
float phMax_2;
float neMax_2;
float eMax_2;
float muMax_2;
float eSum_2;
float muSum_2;
float jtpu_2;
jetMC->SetBranchAddress("rawpt",&raw_2);
jetMC->SetBranchAddress("jtpt",&jtpt_2);
jetMC->SetBranchAddress("jtpu",&jtpu_2);
jetMC->SetBranchAddress("refpt",&refpt_2);
jetMC->SetBranchAddress("scale",&scale_2);
jetMC->SetBranchAddress("weight_cent",&weight_cent_2);
jetMC->SetBranchAddress("weight_vz",&weight_vz_2);
jetMC->SetBranchAddress("subid",&subid_2);
jetMC->SetBranchAddress("jet55",&jet55_2);
jetMC->SetBranchAddress("jet55_prescl",&jet55_p_2);
jetMC->SetBranchAddress("jet65",&jet65_2);
jetMC->SetBranchAddress("jet65_prescl",&jet65_p_2);
jetMC->SetBranchAddress("jet80",&jet80_2);
jetMC->SetBranchAddress("jet80_prescl",&jet80_p_2);
jetMC->SetBranchAddress("cent",¢_2);
jetMC->SetBranchAddress("chMax",&chMax_2);
jetMC->SetBranchAddress("chSum",&chSum_2);
jetMC->SetBranchAddress("phMax",&phMax_2);
jetMC->SetBranchAddress("phSum",&phSum_2);
jetMC->SetBranchAddress("neMax",&neMax_2);
jetMC->SetBranchAddress("neSum",&neSum_2);
jetMC->SetBranchAddress("muMax",&muMax_2);
jetMC->SetBranchAddress("muSum",&muSum_2);
jetMC->SetBranchAddress("eMax",&eMax_2);
jetMC->SetBranchAddress("eSum",&eSum_2);
int centBin_2 = 0;
// Data loop
for(int jentry = 0;jentry<jetData->GetEntries();jentry++){
jetData->GetEntry(jentry);
centBin_1 = (int)cent_1;
if(jentry%1000000==0)cout<<"Data "<<jentry<<" of "<<jetData->GetEntries()<<endl;
if(raw_1<30) continue;
hData_noCut[centBin_1]->Fill(jtpt_1);
hData_noCut[nbins_cent]->Fill(jtpt_1);
#if 0
if((Float_t)eMax_1/jtpt_1<0.9) {
hData_eMaxJtPt_0p9[centBin_1]->Fill(jtpt_1);
hData_eMaxJtPt_0p9[nbins_cent]->Fill(jtpt_1);
}
if((Float_t)eMax_1/jtpt_1<0.8) {
hData_eMaxJtPt_0p8[centBin_1]->Fill(jtpt_1);
hData_eMaxJtPt_0p8[nbins_cent]->Fill(jtpt_1);
}
if((Float_t)eMax_1/jtpt_1<0.7) {
hData_eMaxJtPt_0p7[centBin_1]->Fill(jtpt_1);
hData_eMaxJtPt_0p7[nbins_cent]->Fill(jtpt_1);
}
if((Float_t)eMax_1/jtpt_1<0.6) {
hData_eMaxJtPt_0p6[centBin_1]->Fill(jtpt_1);
hData_eMaxJtPt_0p6[nbins_cent]->Fill(jtpt_1);
}
if((Float_t)eMax_1/jtpt_1<0.5) {
hData_eMaxJtPt_0p5[centBin_1]->Fill(jtpt_1);
hData_eMaxJtPt_0p5[nbins_cent]->Fill(jtpt_1);
}
if((Float_t)eMax_1/jtpt_1<0.4) {
hData_eMaxJtPt_0p4[centBin_1]->Fill(jtpt_1);
hData_eMaxJtPt_0p4[nbins_cent]->Fill(jtpt_1);
}
if((Float_t)eMax_1/jtpt_1<0.3) {
hData_eMaxJtPt_0p3[centBin_1]->Fill(jtpt_1);
hData_eMaxJtPt_0p3[nbins_cent]->Fill(jtpt_1);
}
if((Float_t)eMax_1/jtpt_1<0.2) {
hData_eMaxJtPt_0p2[centBin_1]->Fill(jtpt_1);
hData_eMaxJtPt_0p2[nbins_cent]->Fill(jtpt_1);
}
if((Float_t)eMax_1/jtpt_1<0.1) {
hData_eMaxJtPt_0p1[centBin_1]->Fill(jtpt_1);
hData_eMaxJtPt_0p1[nbins_cent]->Fill(jtpt_1);
}
if((Float_t)eSum_1/(chSum_1+neSum_1+phSum_1+muSum_1)<0.9) {
hData_eSumOverSumchphnemu_0p9[centBin_1]->Fill(jtpt_1);
hData_eSumOverSumchphnemu_0p9[nbins_cent]->Fill(jtpt_1);
}
if((Float_t)eSum_1/(chSum_1+neSum_1+phSum_1+muSum_1)<0.8) {
hData_eSumOverSumchphnemu_0p8[centBin_1]->Fill(jtpt_1);
hData_eSumOverSumchphnemu_0p8[nbins_cent]->Fill(jtpt_1);
}
if((Float_t)eSum_1/(chSum_1+neSum_1+phSum_1+muSum_1)<0.7) {
hData_eSumOverSumchphnemu_0p7[centBin_1]->Fill(jtpt_1);
hData_eSumOverSumchphnemu_0p7[nbins_cent]->Fill(jtpt_1);
}
if((Float_t)eSum_1/(chSum_1+neSum_1+phSum_1+muSum_1)<0.6) {
hData_eSumOverSumchphnemu_0p6[centBin_1]->Fill(jtpt_1);
hData_eSumOverSumchphnemu_0p6[nbins_cent]->Fill(jtpt_1);
}
if((Float_t)eSum_1/(chSum_1+neSum_1+phSum_1+muSum_1)<0.5) {
hData_eSumOverSumchphnemu_0p5[centBin_1]->Fill(jtpt_1);
hData_eSumOverSumchphnemu_0p5[nbins_cent]->Fill(jtpt_1);
}
if((Float_t)eSum_1/(chSum_1+neSum_1+phSum_1+muSum_1)<0.4) {
hData_eSumOverSumchphnemu_0p4[centBin_1]->Fill(jtpt_1);
hData_eSumOverSumchphnemu_0p4[nbins_cent]->Fill(jtpt_1);
}
if((Float_t)eSum_1/(chSum_1+neSum_1+phSum_1+muSum_1)<0.3) {
hData_eSumOverSumchphnemu_0p3[centBin_1]->Fill(jtpt_1);
hData_eSumOverSumchphnemu_0p3[nbins_cent]->Fill(jtpt_1);
}
if((Float_t)eSum_1/(chSum_1+neSum_1+phSum_1+muSum_1)<0.2) {
hData_eSumOverSumchphnemu_0p2[centBin_1]->Fill(jtpt_1);
hData_eSumOverSumchphnemu_0p2[nbins_cent]->Fill(jtpt_1);
}
if((Float_t)eSum_1/(chSum_1+neSum_1+phSum_1+muSum_1)<0.1) {
hData_eSumOverSumchphnemu_0p1[centBin_1]->Fill(jtpt_1);
hData_eSumOverSumchphnemu_0p1[nbins_cent]->Fill(jtpt_1);
}
hData_eSumOverSumchphnemu_Jtpt[centBin_1]->Fill((Float_t)eSum_1/(chSum_1+neSum_1+phSum_1+muSum_1),jtpt_1);
hData_eSumOverSumchphnemu_Jtpt[nbins_cent]->Fill((Float_t)eSum_1/(chSum_1+neSum_1+phSum_1+muSum_1),jtpt_1);
hData_eSumOverSumchphnemu_eMaxJtpt[centBin_1]->Fill((Float_t)eSum_1/(chSum_1+neSum_1+phSum_1+muSum_1),(Float_t)eMax_1/jtpt_1);
hData_eSumOverSumchphnemu_eMaxJtpt[nbins_cent]->Fill((Float_t)eSum_1/(chSum_1+neSum_1+phSum_1+muSum_1),(Float_t)eMax_1/jtpt_1);
hData_chMaxSumMaxChNePh_Pt[centBin_1]->Fill((Float_t)chMax_1/(chMax_1+neMax_1+phMax_1),jtpt_1);
hData_phMaxSumMaxChNePh_Pt[centBin_1]->Fill((Float_t)phMax_1/(chMax_1+neMax_1+phMax_1),jtpt_1);
hData_neMaxSumMaxChNePh_Pt[centBin_1]->Fill((Float_t)neMax_1/(chMax_1+neMax_1+phMax_1),jtpt_1);
hData_muMaxSumMaxChNePh_Pt[centBin_1]->Fill((Float_t)muMax_1/(chMax_1+neMax_1+phMax_1),jtpt_1);
hData_eMaxSumMaxChNePh_Pt[centBin_1]->Fill((Float_t)eMax_1/(chMax_1+neMax_1+phMax_1),jtpt_1);
hData_chMaxSumMaxChNePh_Pt[nbins_cent]->Fill((Float_t)chMax_1/(chMax_1+neMax_1+phMax_1),jtpt_1);
hData_phMaxSumMaxChNePh_Pt[nbins_cent]->Fill((Float_t)phMax_1/(chMax_1+neMax_1+phMax_1),jtpt_1);
hData_neMaxSumMaxChNePh_Pt[nbins_cent]->Fill((Float_t)neMax_1/(chMax_1+neMax_1+phMax_1),jtpt_1);
hData_muMaxSumMaxChNePh_Pt[nbins_cent]->Fill((Float_t)muMax_1/(chMax_1+neMax_1+phMax_1),jtpt_1);
hData_eMaxSumMaxChNePh_Pt[nbins_cent]->Fill((Float_t)eMax_1/(chMax_1+neMax_1+phMax_1),jtpt_1);
hData_chMax[centBin_1]->Fill(chMax_1);
hData_chMax[nbins_cent]->Fill(chMax_1);
hData_chMaxJtPt_Pt[centBin_1]->Fill((Float_t)chMax_1/jtpt_1,jtpt_1);
hData_chMaxJtPt_Pt[nbins_cent]->Fill((Float_t)chMax_1/jtpt_1,jtpt_1);
hData_chSum[centBin_1]->Fill(chSum_1);
hData_chSum[nbins_cent]->Fill(chSum_1);
hData_chSumJtPt_Pt[centBin_1]->Fill((Float_t)chSum_1/jtpt_1,jtpt_1);
hData_chSumJtPt_Pt[nbins_cent]->Fill((Float_t)chSum_1/jtpt_1,jtpt_1);
hData_phMax[centBin_1]->Fill(phMax_1);
hData_phMax[nbins_cent]->Fill(phMax_1);
hData_phMaxJtPt_Pt[centBin_1]->Fill((Float_t)phMax_1/jtpt_1,jtpt_1);
hData_phMaxJtPt_Pt[nbins_cent]->Fill((Float_t)phMax_1/jtpt_1,jtpt_1);
hData_phSum[centBin_1]->Fill(phSum_1);
hData_phSum[nbins_cent]->Fill(phSum_1);
hData_phSumJtPt_Pt[centBin_1]->Fill((Float_t)phSum_1/jtpt_1,jtpt_1);
hData_phSumJtPt_Pt[nbins_cent]->Fill((Float_t)phSum_1/jtpt_1,jtpt_1);
hData_neMax[centBin_1]->Fill(neMax_1);
hData_neMax[nbins_cent]->Fill(neMax_1);
hData_neMaxJtPt_Pt[centBin_1]->Fill((Float_t)neMax_1/jtpt_1,jtpt_1);
hData_neMaxJtPt_Pt[nbins_cent]->Fill((Float_t)neMax_1/jtpt_1,jtpt_1);
hData_neSum[centBin_1]->Fill(neSum_1);
hData_neSum[nbins_cent]->Fill(neSum_1);
hData_neSumJtPt_Pt[centBin_1]->Fill((Float_t)neSum_1/jtpt_1,jtpt_1);
hData_neSumJtPt_Pt[nbins_cent]->Fill((Float_t)neSum_1/jtpt_1,jtpt_1);
hData_muMax[centBin_1]->Fill(muMax_1);
hData_muMax[nbins_cent]->Fill(muMax_1);
hData_muMaxJtPt_Pt[centBin_1]->Fill((Float_t)muMax_1/jtpt_1,jtpt_1);
hData_muMaxJtPt_Pt[nbins_cent]->Fill((Float_t)muMax_1/jtpt_1,jtpt_1);
hData_muSum[centBin_1]->Fill(muSum_1);
hData_muSum[nbins_cent]->Fill(muSum_1);
hData_muSumJtPt_Pt[centBin_1]->Fill((Float_t)muSum_1/jtpt_1,jtpt_1);
hData_muSumJtPt_Pt[nbins_cent]->Fill((Float_t)muSum_1/jtpt_1,jtpt_1);
hData_eMax[centBin_1]->Fill(eMax_1);
hData_eMax[nbins_cent]->Fill(eMax_1);
hData_eMaxJtPt_Pt[centBin_1]->Fill((Float_t)eMax_1/jtpt_1,jtpt_1);
hData_eMaxJtPt_Pt[nbins_cent]->Fill((Float_t)eMax_1/jtpt_1,jtpt_1);
hData_eSum[centBin_1]->Fill(eSum_1);
hData_eSum[nbins_cent]->Fill(eSum_1);
hData_eSumJtPt_Pt[centBin_1]->Fill((Float_t)eSum_1/jtpt_1,jtpt_1);
hData_eSumJtPt_Pt[nbins_cent]->Fill((Float_t)eSum_1/jtpt_1,jtpt_1);
#endif
if(jet80_1 && L1_sj52_1){
if(1>0){
hData[2][0][centBin_1]->Fill(jtpt_1);
hData[2][0][nbins_cent]->Fill(jtpt_1);
}
if((eSum_1/(chSum_1+neSum_1+phSum_1+muSum_1)<0.7) && (neMax_1/(chMax_1+neMax_1+phMax_1)<0.9) && (phMax_1/(chMax_1+neMax_1+phMax_1)<0.9) && (chMax_1/jtpt_1>0.05) && (muMax_1/(chMax_1+neMax_1+phMax_1)<0.9) && (chMax_1/(chMax_1+neMax_1+phMax_1)<0.9)){
hData[2][1][centBin_1]->Fill(jtpt_1);
hData[2][1][nbins_cent]->Fill(jtpt_1);
}
}else if(jet65_1 && L1_sj36_1 && !jet80_1){
if(1>0/*(neMax_1/(chMax_1+neMax_1+phMax_1)<0.9) && (phMax_1/(chMax_1+neMax_1+phMax_1)<0.9) && (chMax_1/jtpt_1>0.05) && (muMax_1/(chMax_1+neMax_1+phMax_1)<0.9) && (chMax_1/(chMax_1+neMax_1+phMax_1)<0.9)*/){
hData[1][0][centBin_1]->Fill(jtpt_1);
hData[1][0][nbins_cent]->Fill(jtpt_1);
}
if((eSum_1/(chSum_1+neSum_1+phSum_1+muSum_1)<0.7) && (neMax_1/(chMax_1+neMax_1+phMax_1)<0.9) && (phMax_1/(chMax_1+neMax_1+phMax_1)<0.9) && (chMax_1/jtpt_1>0.05) && (muMax_1/(chMax_1+neMax_1+phMax_1)<0.9) && (chMax_1/(chMax_1+neMax_1+phMax_1)<0.9)){
hData[1][1][centBin_1]->Fill(jtpt_1);
hData[1][1][nbins_cent]->Fill(jtpt_1);
}
}else if(jet55_1 && L1_sj36_1 && !jet65_1 && !jet80_1){
if(1>0/*(neMax_1/(chMax_1+neMax_1+phMax_1)<0.9) && (phMax_1/(chMax_1+neMax_1+phMax_1)<0.9) && (chMax_1/jtpt_1>0.05) && (muMax_1/(chMax_1+neMax_1+phMax_1)<0.9) && (chMax_1/(chMax_1+neMax_1+phMax_1)<0.9)*/){
hData[0][0][centBin_1]->Fill(jtpt_1,effecPrescl);
hData[0][0][nbins_cent]->Fill(jtpt_1,effecPrescl);
}
if((eSum_1/(chSum_1+neSum_1+phSum_1+muSum_1)<0.7) && (neMax_1/(chMax_1+neMax_1+phMax_1)<0.9) && (phMax_1/(chMax_1+neMax_1+phMax_1)<0.9) && (chMax_1/jtpt_1>0.05) && (muMax_1/(chMax_1+neMax_1+phMax_1)<0.9) && (chMax_1/(chMax_1+neMax_1+phMax_1)<0.9)){
hData[0][1][centBin_1]->Fill(jtpt_1,effecPrescl);
hData[0][1][nbins_cent]->Fill(jtpt_1,effecPrescl);
}
}
}// entry loop
Float_t weight = 0;
// MC loop
for(int jentry = 0;jentry<jetMC->GetEntries();jentry++){
jetMC->GetEntry(jentry);
centBin_2 = (int)cent_2;
if(jentry%1000000==0)cout<<"MC "<<jentry<<" of "<<jetMC->GetEntries()<<endl;
if(raw_2 < 30) continue;
if(subid_2!=0)continue;
weight = scale_2 * weight_vz_2 * weight_cent_2;
#if 0
hMC_noCut[centBin_2]->Fill(jtpt_2,weight);
hMC_noCut[nbins_cent]->Fill(jtpt_2,weight);
hMC_eSumOverSumchphnemu_Jtpt[centBin_2]->Fill((Float_t)eSum_2/(chSum_2+neSum_2+phSum_2+muSum_2),jtpt_2,weight);
hMC_eSumOverSumchphnemu_eMaxJtpt[centBin_2]->Fill((Float_t)eSum_2/(chSum_2+neSum_2+phSum_2+muSum_2),(Float_t)eMax_2/jtpt_2,weight);
hMC_eSumOverSumchphnemu_Genpt[centBin_2]->Fill((Float_t)eSum_2/(chSum_2+neSum_2+phSum_2+muSum_2),refpt_2,weight);
hMC_eSumOverSumchphnemu_eMaxGenpt[centBin_2]->Fill((Float_t)eSum_2/(chSum_2+neSum_2+phSum_2+muSum_2),(Float_t)eMax_2/refpt_2,weight);
hMC_eSumOverSumchphnemu_Jtpt[nbins_cent]->Fill((Float_t)eSum_2/(chSum_2+neSum_2+phSum_2+muSum_2),jtpt_2,weight);
hMC_eSumOverSumchphnemu_eMaxJtpt[nbins_cent]->Fill((Float_t)eSum_2/(chSum_2+neSum_2+phSum_2+muSum_2),(Float_t)eMax_2/jtpt_2,weight);
hMC_eSumOverSumchphnemu_Genpt[nbins_cent]->Fill((Float_t)eSum_2/(chSum_2+neSum_2+phSum_2+muSum_2),refpt_2,weight);
hMC_eSumOverSumchphnemu_eMaxGenpt[nbins_cent]->Fill((Float_t)eSum_2/(chSum_2+neSum_2+phSum_2+muSum_2),(Float_t)eMax_2/refpt_2,weight);
hMC_chMaxSumMaxChNePh_Pt[centBin_2]->Fill((Float_t)chMax_2/(chMax_2+neMax_2+phMax_2),jtpt_2, weight);
hMC_phMaxSumMaxChNePh_Pt[centBin_2]->Fill((Float_t)phMax_2/(chMax_2+neMax_2+phMax_2),jtpt_2, weight);
hMC_neMaxSumMaxChNePh_Pt[centBin_2]->Fill((Float_t)neMax_2/(chMax_2+neMax_2+phMax_2),jtpt_2, weight);
hMC_muMaxSumMaxChNePh_Pt[centBin_2]->Fill((Float_t)muMax_2/(chMax_2+neMax_2+phMax_2),jtpt_2, weight);
hMC_eMaxSumMaxChNePh_Pt[centBin_2]->Fill((Float_t)eMax_2/(chMax_2+neMax_2+phMax_2),jtpt_2, weight);
hMC_chMaxSumMaxChNePh_Pt[nbins_cent]->Fill((Float_t)chMax_2/(chMax_2+neMax_2+phMax_2),jtpt_2, weight);
hMC_phMaxSumMaxChNePh_Pt[nbins_cent]->Fill((Float_t)phMax_2/(chMax_2+neMax_2+phMax_2),jtpt_2, weight);
hMC_neMaxSumMaxChNePh_Pt[nbins_cent]->Fill((Float_t)neMax_2/(chMax_2+neMax_2+phMax_2),jtpt_2, weight);
hMC_muMaxSumMaxChNePh_Pt[nbins_cent]->Fill((Float_t)muMax_2/(chMax_2+neMax_2+phMax_2),jtpt_2, weight);
hMC_eMaxSumMaxChNePh_Pt[nbins_cent]->Fill((Float_t)eMax_2/(chMax_2+neMax_2+phMax_2),jtpt_2, weight);
hMC_chMaxSumMaxChNePh_GenPt[centBin_2]->Fill((Float_t)chMax_2/(chMax_2+neMax_2+phMax_2),refpt_2, weight);
hMC_phMaxSumMaxChNePh_GenPt[centBin_2]->Fill((Float_t)phMax_2/(chMax_2+neMax_2+phMax_2),refpt_2, weight);
hMC_neMaxSumMaxChNePh_GenPt[centBin_2]->Fill((Float_t)neMax_2/(chMax_2+neMax_2+phMax_2),refpt_2, weight);
hMC_muMaxSumMaxChNePh_GenPt[centBin_2]->Fill((Float_t)muMax_2/(chMax_2+neMax_2+phMax_2),refpt_2, weight);
hMC_eMaxSumMaxChNePh_GenPt[centBin_2]->Fill((Float_t)eMax_2/(chMax_2+neMax_2+phMax_2),refpt_2, weight);
hMC_chMaxSumMaxChNePh_GenPt[nbins_cent]->Fill((Float_t)chMax_2/(chMax_2+neMax_2+phMax_2),refpt_2, weight);
hMC_phMaxSumMaxChNePh_GenPt[nbins_cent]->Fill((Float_t)phMax_2/(chMax_2+neMax_2+phMax_2),refpt_2, weight);
hMC_neMaxSumMaxChNePh_GenPt[nbins_cent]->Fill((Float_t)neMax_2/(chMax_2+neMax_2+phMax_2),refpt_2, weight);
hMC_muMaxSumMaxChNePh_GenPt[nbins_cent]->Fill((Float_t)muMax_2/(chMax_2+neMax_2+phMax_2),refpt_2, weight);
hMC_eMaxSumMaxChNePh_GenPt[nbins_cent]->Fill((Float_t)eMax_2/(chMax_2+neMax_2+phMax_2),refpt_2, weight);
if((Float_t)eMax_2/jtpt_2<0.9) {
hMC_eMaxJtPt_0p9[centBin_2]->Fill(jtpt_2,weight);
hMC_eMaxJtPt_0p9[nbins_cent]->Fill(jtpt_2,weight);
}
if((Float_t)eMax_2/jtpt_2<0.8) {
hMC_eMaxJtPt_0p8[centBin_2]->Fill(jtpt_2,weight);
hMC_eMaxJtPt_0p8[nbins_cent]->Fill(jtpt_2,weight);
}
if((Float_t)eMax_2/jtpt_2<0.7) {
hMC_eMaxJtPt_0p7[centBin_2]->Fill(jtpt_2,weight);
hMC_eMaxJtPt_0p7[nbins_cent]->Fill(jtpt_2,weight);
}
if((Float_t)eMax_2/jtpt_2<0.6) {
hMC_eMaxJtPt_0p6[centBin_2]->Fill(jtpt_2,weight);
hMC_eMaxJtPt_0p6[nbins_cent]->Fill(jtpt_2,weight);
}
if((Float_t)eMax_2/jtpt_2<0.5) {
hMC_eMaxJtPt_0p5[centBin_2]->Fill(jtpt_2,weight);
hMC_eMaxJtPt_0p5[nbins_cent]->Fill(jtpt_2,weight);
}
if((Float_t)eMax_2/jtpt_2<0.4) {
hMC_eMaxJtPt_0p4[centBin_2]->Fill(jtpt_2,weight);
hMC_eMaxJtPt_0p4[nbins_cent]->Fill(jtpt_2,weight);
}
if((Float_t)eMax_2/jtpt_2<0.3) {
hMC_eMaxJtPt_0p3[centBin_2]->Fill(jtpt_2,weight);
hMC_eMaxJtPt_0p3[nbins_cent]->Fill(jtpt_2,weight);
}
if((Float_t)eMax_2/jtpt_2<0.2) {
hMC_eMaxJtPt_0p2[centBin_2]->Fill(jtpt_2,weight);
hMC_eMaxJtPt_0p2[nbins_cent]->Fill(jtpt_2,weight);
}
if((Float_t)eMax_2/jtpt_2<0.1) {
hMC_eMaxJtPt_0p1[centBin_2]->Fill(jtpt_2,weight);
hMC_eMaxJtPt_0p1[nbins_cent]->Fill(jtpt_2,weight);
}
if((Float_t)eSum_2/(chSum_2+phSum_2+neSum_2+muSum_2)<0.9) {
hMC_eSumOverSumchphnemu_0p9[centBin_2]->Fill(jtpt_2,weight);
hMC_eSumOverSumchphnemu_0p9[nbins_cent]->Fill(jtpt_2,weight);
}
if((Float_t)eSum_2/(chSum_2+phSum_2+neSum_2+muSum_2)<0.8) {
hMC_eSumOverSumchphnemu_0p8[centBin_2]->Fill(jtpt_2,weight);
hMC_eSumOverSumchphnemu_0p8[nbins_cent]->Fill(jtpt_2,weight);
}
if((Float_t)eSum_2/(chSum_2+phSum_2+neSum_2+muSum_2)<0.7) {
hMC_eSumOverSumchphnemu_0p7[centBin_2]->Fill(jtpt_2,weight);
hMC_eSumOverSumchphnemu_0p7[nbins_cent]->Fill(jtpt_2,weight);
}
if((Float_t)eSum_2/(chSum_2+phSum_2+neSum_2+muSum_2)<0.6) {
hMC_eSumOverSumchphnemu_0p6[centBin_2]->Fill(jtpt_2,weight);
hMC_eSumOverSumchphnemu_0p6[nbins_cent]->Fill(jtpt_2,weight);
}
if((Float_t)eSum_2/(chSum_2+phSum_2+neSum_2+muSum_2)<0.5) {
hMC_eSumOverSumchphnemu_0p5[centBin_2]->Fill(jtpt_2,weight);
hMC_eSumOverSumchphnemu_0p5[nbins_cent]->Fill(jtpt_2,weight);
}
if((Float_t)eSum_2/(chSum_2+phSum_2+neSum_2+muSum_2)<0.4) {
hMC_eSumOverSumchphnemu_0p4[centBin_2]->Fill(jtpt_2,weight);
hMC_eSumOverSumchphnemu_0p4[nbins_cent]->Fill(jtpt_2,weight);
}
if((Float_t)eSum_2/(chSum_2+phSum_2+neSum_2+muSum_2)<0.3) {
hMC_eSumOverSumchphnemu_0p3[centBin_2]->Fill(jtpt_2,weight);
hMC_eSumOverSumchphnemu_0p3[nbins_cent]->Fill(jtpt_2,weight);
}
if((Float_t)eSum_2/(chSum_2+phSum_2+neSum_2+muSum_2)<0.2) {
hMC_eSumOverSumchphnemu_0p2[centBin_2]->Fill(jtpt_2,weight);
hMC_eSumOverSumchphnemu_0p2[nbins_cent]->Fill(jtpt_2,weight);
}
if((Float_t)eSum_2/(chSum_2+phSum_2+neSum_2+muSum_2)<0.1) {
hMC_eSumOverSumchphnemu_0p1[centBin_2]->Fill(jtpt_2,weight);
hMC_eSumOverSumchphnemu_0p1[nbins_cent]->Fill(jtpt_2,weight);
}
hMC_chMax[centBin_2]->Fill(chMax_2, weight);
hMC_chMax[nbins_cent]->Fill(chMax_2, weight);
hMC_chMaxJtPt_Pt[centBin_2]->Fill((Float_t)chMax_2/jtpt_2,jtpt_2, weight);
hMC_chMaxJtPt_Pt[nbins_cent]->Fill((Float_t)chMax_2/jtpt_2,jtpt_2, weight);
hMC_chSum[centBin_2]->Fill(chSum_2, weight);
hMC_chSum[nbins_cent]->Fill(chSum_2, weight);
hMC_chSumJtPt_Pt[centBin_2]->Fill((Float_t)chSum_2/jtpt_2,jtpt_2, weight);
hMC_chSumJtPt_Pt[nbins_cent]->Fill((Float_t)chSum_2/jtpt_2,jtpt_2, weight);
hMC_phMax[centBin_2]->Fill(phMax_2, weight);
hMC_phMax[nbins_cent]->Fill(phMax_2, weight);
hMC_phMaxJtPt_Pt[centBin_2]->Fill((Float_t)phMax_2/jtpt_2,jtpt_2, weight);
hMC_phMaxJtPt_Pt[nbins_cent]->Fill((Float_t)phMax_2/jtpt_2,jtpt_2, weight);
hMC_phSum[centBin_2]->Fill(phSum_2, weight);
hMC_phSum[nbins_cent]->Fill(phSum_2, weight);
hMC_phSumJtPt_Pt[centBin_2]->Fill((Float_t)phSum_2/jtpt_2,jtpt_2, weight);
hMC_phSumJtPt_Pt[nbins_cent]->Fill((Float_t)phSum_2/jtpt_2,jtpt_2, weight);
hMC_neMax[centBin_2]->Fill(neMax_2, weight);
hMC_neMax[nbins_cent]->Fill(neMax_2, weight);
hMC_neMaxJtPt_Pt[centBin_2]->Fill((Float_t)neMax_2/jtpt_2,jtpt_2, weight);
hMC_neMaxJtPt_Pt[nbins_cent]->Fill((Float_t)neMax_2/jtpt_2,jtpt_2, weight);
hMC_neSum[centBin_2]->Fill(neSum_2, weight);
hMC_neSum[nbins_cent]->Fill(neSum_2, weight);
hMC_neSumJtPt_Pt[centBin_2]->Fill((Float_t)neSum_2/jtpt_2,jtpt_2, weight);
hMC_neSumJtPt_Pt[nbins_cent]->Fill((Float_t)neSum_2/jtpt_2,jtpt_2, weight);
hMC_muMax[centBin_2]->Fill(muMax_2, weight);
hMC_muMax[nbins_cent]->Fill(muMax_2, weight);
hMC_muMaxJtPt_Pt[centBin_2]->Fill((Float_t)muMax_2/jtpt_2,jtpt_2, weight);
hMC_muMaxJtPt_Pt[nbins_cent]->Fill((Float_t)muMax_2/jtpt_2,jtpt_2, weight);
hMC_muSum[centBin_2]->Fill(muSum_2, weight);
hMC_muSum[nbins_cent]->Fill(muSum_2, weight);
hMC_muSumJtPt_Pt[centBin_2]->Fill((Float_t)muSum_2/jtpt_2,jtpt_2, weight);
hMC_muSumJtPt_Pt[nbins_cent]->Fill((Float_t)muSum_2/jtpt_2,jtpt_2, weight);
hMC_eMax[centBin_2]->Fill(eMax_2, weight);
hMC_eMax[nbins_cent]->Fill(eMax_2, weight);
hMC_eMaxJtPt_Pt[centBin_2]->Fill((Float_t)eMax_2/jtpt_2,jtpt_2, weight);
hMC_eMaxJtPt_Pt[nbins_cent]->Fill((Float_t)eMax_2/jtpt_2,jtpt_2, weight);
hMC_eSum[centBin_2]->Fill(eSum_2, weight);
hMC_eSum[nbins_cent]->Fill(eSum_2, weight);
hMC_eSumJtPt_Pt[centBin_2]->Fill((Float_t)eSum_2/jtpt_2,jtpt_2, weight);