-
Notifications
You must be signed in to change notification settings - Fork 0
/
CompareGammaResultsDiffSystems.C
3013 lines (2736 loc) · 222 KB
/
CompareGammaResultsDiffSystems.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
#include <Riostream.h>
#include <fstream>
#include "TMath.h"
#include <stdlib.h>
#include <fstream>
#include <math.h>
#include <TROOT.h>
#include <TApplication.h>
#include <TPaveLabel.h>
#include <TSystem.h>
#include <TFrame.h>
#include <TStyle.h>
#include <TString.h>
#include "TGaxis.h"
#include "TFile.h"
#include "TH1F.h"
#include "TH1D.h"
#include "TH2F.h"
#include "TF1.h"
#include "TVirtualFitter.h"
#include "TObject.h"
#include "TCanvas.h"
#include "TMultiGraph.h"
#include "TLegend.h"
#include "TDatabasePDG.h"
#include "TMinuit.h"
#include "TBenchmark.h"
#include "TRandom.h"
#include "TLatex.h"
#include "TASImage.h"
#include "TPostScript.h"
#include "TGraphErrors.h"
#include "TArrow.h"
#include "TGaxis.h"
#include "TMarker.h"
#include "TPaveText.h"
#include "TGraphAsymmErrors.h"
#include "CommonHeaders/PlottingGammaConversionHistos.h"
#include "CommonHeaders/ExtractSignalBinning.h"
#include "CommonHeaders/PlottingGammaConversionAdditional.h"
#include "CommonHeaders/FittingGammaConversion.h"
#include "CommonHeaders/ConversionFunctionsBasicsAndLabeling.h"
#include "CommonHeaders/ConversionFunctions.h"
#include "CommonHeaders/CombinationFunctions.h"
Color_t GetDefaultDifferentSystemsAndCents( TString centrality,
TString collisionsEnergy,
TString experiment = "ALICE"
){
if (!collisionsEnergy.CompareTo("PbPb_2.76TeV") && !experiment.CompareTo("ALICE")){
if (!centrality.CompareTo("0-20%")){
return kRed+1;
} else if (!centrality.CompareTo("20-40%")){
return kRed-3;
} else if (!centrality.CompareTo("40-80%")){
return kRed-5;
}
} else if (!collisionsEnergy.CompareTo("pPb_5.023TeV") && !experiment.CompareTo("ALICE")){
if (!centrality.CompareTo("0-20%")){
return kRed+4;
} else if (!centrality.CompareTo("20-40%")){
return kRed+3;
} else if (!centrality.CompareTo("40-60%")){
return kRed-2;
} else if (!centrality.CompareTo("60-100%")){
return kRed-3;
} else if (!centrality.CompareTo("0-100%")){
return kRed+2;
}
} else if (!collisionsEnergy.CompareTo("pPb_8.16TeV") && !experiment.CompareTo("ATLAS")){
if (!centrality.CompareTo("0-100%")){
return kOrange+9;
}
} else if (!collisionsEnergy.CompareTo("PbPb_2.76TeV") && !experiment.CompareTo("CMS")){
if (!centrality.CompareTo("0-10%")){
return kRed+3;
} else if (!centrality.CompareTo("10-30%")){
return kRed+2;
} else if (!centrality.CompareTo("30-100%")){
return kRed-2;
}
} else if (!collisionsEnergy.CompareTo("PbPb_2.76TeV") && !experiment.CompareTo("ATLAS")){
if (!centrality.CompareTo("0-10%")){
return kOrange+10;
} else if (!centrality.CompareTo("10-20%")){
return kOrange+9;
} else if (!centrality.CompareTo("20-40%")){
return kOrange+4;
} else if (!centrality.CompareTo("40-80%")){
return kOrange+3;
}
} else if (!collisionsEnergy.CompareTo("AuAu_0.2TeV") && !experiment.CompareTo("PHENIX")){
if (!centrality.CompareTo("0-20%")){
return kGreen+2;
} else if (!centrality.CompareTo("20-40%")){
return kGreen-2;
} else if (!centrality.CompareTo("40-60%")){
return kGreen+3;
} else if (!centrality.CompareTo("60-92%")){
return kGreen-1;
} else if (!centrality.CompareTo("0-92%")){
return kGreen-5;
}
} else if (!collisionsEnergy.CompareTo("pAu_0.2TeV") && !experiment.CompareTo("PHENIX")){
if (!centrality.CompareTo("0-20%") || !centrality.CompareTo("0-5%")){
return kGreen+2;
} else if (!centrality.CompareTo("20-40%")){
return kGreen-2;
} else if (!centrality.CompareTo("40-60%")){
return kGreen+3;
} else if (!centrality.CompareTo("60-100%")){
return kGreen-1;
} else if (!centrality.CompareTo("0-100%")){
return kGreen-5;
}
} else if (!collisionsEnergy.CompareTo("AuAu_0.2TeV") && !experiment.CompareTo("STAR")){
if (!centrality.CompareTo("0-20%")){
return kYellow+2;
} else if (!centrality.CompareTo("20-40%")){
return kYellow-2;
} else if (!centrality.CompareTo("40-60%")){
return kYellow+3;
} else if (!centrality.CompareTo("60-80%")){
return kYellow-1;
} else if (!centrality.CompareTo("0-80%")){
return kYellow-5;
}
} else if (!collisionsEnergy.CompareTo("CuCu_0.2TeV") && !experiment.CompareTo("PHENIX")){
if (!centrality.CompareTo("0-40%")){
return kTeal-6;
} else if (!centrality.CompareTo("0-94%")){
return kTeal-1;
}
} else if (!collisionsEnergy.CompareTo("dAu_0.2TeV") && !experiment.CompareTo("PHENIX")){
if (!centrality.CompareTo("0-100%")){
return kTeal-6;
} else if (!centrality.CompareTo("0-94%")){
return kTeal-1;
}
} else if (!collisionsEnergy.CompareTo("AuAu_62.4GeV") && !experiment.CompareTo("PHENIX")){
if (!centrality.CompareTo("0-20%")){
return kAzure+2;
} else if (!centrality.CompareTo("20-40%")){
return kAzure-6;
} else if (!centrality.CompareTo("0-86%")){
return kAzure+1;
}
} else if (!collisionsEnergy.CompareTo("AuAu_39GeV") && !experiment.CompareTo("PHENIX")){
if (!centrality.CompareTo("0-86%")){
return kViolet-5;
}
} else if (!collisionsEnergy.CompareTo("PbPb_17.2GeV") && !experiment.CompareTo("WA98")){
if (!centrality.CompareTo("0-10%")){
return kViolet+3;
}
}
return kBlack;
}
void CompareGammaResultsDiffSystems( TString inputFileNamePP2760GeV = "",
TString inputFileNamePP7TeV = "",
TString inputFileNamePP8TeV = "",
TString inputFileNamePPb5TeV = "",
TString inputFileNamePbPb2760GeV = "",
TString suffix = "eps",
Int_t enablePrelim = 1
){
//*******************************************************************************************************************************************
//*********************************************************** Set main stylabelScalingDirGammale choices ********************************************************
//*******************************************************************************************************************************************
StyleSettingsThesis();
SetPlotStyle();
//*******************************************************************************************************************************************
//********************************************* Create output directory and copy input files there ******************************************
//*******************************************************************************************************************************************
TString dateForOutput = ReturnDateStringForOutput();
TString outputDir = Form("%s/%s/CompareDiffSystems",suffix.Data(),dateForOutput.Data());
gSystem->Exec("mkdir -p "+outputDir);
gSystem->Exec(Form("cp %s %s/InputGammapp2760GeV.root", inputFileNamePP2760GeV.Data(), outputDir.Data()));
gSystem->Exec(Form("cp %s %s/InputGammapp8TeV.root", inputFileNamePP8TeV.Data(), outputDir.Data()));
gSystem->Exec(Form("cp %s %s/InputGammapp7TeV.root", inputFileNamePP7TeV.Data(), outputDir.Data()));
gSystem->Exec(Form("cp %s %s/InputGammapPb5TeV.root", inputFileNamePPb5TeV.Data(), outputDir.Data()));
gSystem->Exec(Form("cp %s %s/InputGammaPbPb2760GeV.root", inputFileNamePbPb2760GeV.Data(), outputDir.Data()));
TString fileNameTheoryPP = "ExternalInput/Theory/TheoryCompilationPP.root";
TString fileNameTheoryPPb = "ExternalInputPPb/Theory/TheoryCompilationPPb.root";
TString fileNameTheoryPbPb = "ExternalInputPbPb/Theory/TheoryCompilationPbPb.root";
TString fileNameExperimentPP = "ExternalInput/OtherExperiments/DataCompilationFromOtherEnergiesPP.root";
TString fileNameExperimentPA = "ExternalInputpPb/OtherExperiments/DataCompilationFromOtherEnergiesPA.root";
TString fileNameExperimentAA = "ExternalInputPbPb/OtherExperiments/DataCompilationFromOtherEnergiesAA.root";
//*******************************************************************************************************************************************
//******************************************************* set ranges for plotting ***********************************************************
//*******************************************************************************************************************************************
Double_t doubleRatio[2];
Double_t doubleRatioX[2];
doubleRatio[0] = 0.75; doubleRatio[1] = 1.65;
doubleRatioX[0] = 0.23; doubleRatioX[1] = 25.5;
Color_t colorCocktailPi0 = kRed+2;
Color_t colorCocktailEta = kBlue+1;
Color_t colorCocktailEtaP = kOrange+1;
Color_t colorCocktailOmega = kYellow+2;
Color_t colorCocktailPhi = kViolet;
Color_t colorCocktailRho0 = kAzure-2;
Color_t colorCocktailSigma0 = kGray+1;
Color_t colorNLOWerner = kAzure+2;
Color_t colorNLOWernerBand = kAzure-9;
Color_t colorNLOMcGill = kGreen+2;
Color_t colorNLOMcGillBand = kGreen-6;
Style_t styleMarkerNLOWerner = 24;
Style_t styleLineNLOWerner = 5;
Style_t styleLineMcGill = 7;
Width_t widthLineNLO = 2.;
// pPb settings
TString namepPbCent[5] = {"0-20%", "20-40%", "40-60%", "60-100%", "0-100%"};
TString namepPbCentOut[5] = {"0020", "2040", "4060", "60100", "0100"};
TString namepPbCentForNColl[5] = {"0020_V0A", "2040_V0A", "4060_V0A", "60100_V0A", "0100_V0A"};
TString labelXTALICEpPb[5] = {"ALICE prel. (0-20% p-Pb 5.02TeV)", "ALICE prel. (20-40% p-Pb 5.02TeV)", "ALICE prel. (40-60% p-Pb 5.02TeV)", "ALICE prel. (60-100% p-Pb 5.02TeV)", "ALICE prel. (0-100% p-Pb 5.02TeV)"};
TString labelALICEpPb[5] = {"ALICE prel. (0-20%)", "ALICE prel. (20-40%)", "ALICE prel. (40-60%)", "ALICE prel. (60-100%)", "ALICE prel. (0-100%)"};
Double_t xLegALICEXTpPb[5] = {0.43, 0.445, 0.46, 0.475, 0.49};
Double_t yLegALICEXTpPb[5] = {0.88, 0.86, 0.84, 0.82, 0.80};
TString nameLabelScalepPb[5] = {"x 10^{1}", "x 10^{0}", "x 10^{-2}", "x 10^{-3}", "x 10^{-4}"};
Double_t scaleFacPlotApPb[5] = {10e8, 10e6, 10e4, 10e2, 1};
Color_t colorCombpPb[5];
Color_t colorCombpPbBox[5];
Style_t markerStyleCombpPb[5];
Style_t markerStyleCombpPbMC[5];
Size_t markerSizeCombpPb[5];
Double_t nCollpPb5[5];
for (Int_t ncent = 0; ncent<5; ncent++){
colorCombpPb[ncent] = GetDefaultDifferentSystemsAndCents(namepPbCent[ncent].Data(),"pPb_5.023TeV", "ALICE");
colorCombpPbBox[ncent] = GetColorDefaultColor("pPb_5.023TeV", "", namepPbCent[ncent].Data(), kTRUE);
markerStyleCombpPb[ncent] = GetDefaultMarkerStyle("pPb_5.023TeV", "", namepPbCent[ncent].Data());
markerStyleCombpPbMC[ncent] = GetDefaultMarkerStyle("pPb_5.023TeV", "MC", namepPbCent[ncent].Data());
markerSizeCombpPb[ncent] = GetDefaultMarkerSize("pPb_5.023TeV", "", namepPbCent[ncent].Data());
nCollpPb5[ncent] = GetNCollFromName(namepPbCentForNColl[ncent].Data(),"pPb_5.023TeV");
}
TString nameCentspPb8TeVATLAS = "0-100%";
TString nameCentspPb8TeVATLASOut = "0100";
TString labelXTpPb8TeVATLAS = "ATLAS prel. (0-100% p-Pb 8.16TeV)";
TString labelpPb8TeVATLAS = "ATLAS prel. (0-100%)";
Double_t xLegpPb8TeVATLASXT = 0.65;
Double_t yLegpPb8TeVATLASXT = 0.58;
Color_t colorCombpPb8ATLAS = GetDefaultDifferentSystemsAndCents(nameCentspPb8TeVATLAS.Data(),"pPb_8.16TeV", "ATLAS");
Color_t colorCombpPb8ATLASBox= GetDefaultDifferentSystemsAndCents(nameCentspPb8TeVATLAS.Data(),"pPb_8.16TeV", "ATLAS");
Style_t markerStyleCombpPb8ATLAS= GetDefaultMarkerStyle("pPb_5.023TeV", "", nameCentspPb8TeVATLAS.Data());
Style_t markerStyleCombpPb8ATLASMC= 30;
Size_t markerSizeCombpPb8ATLAS =GetDefaultMarkerSize("pPb_5.023TeV", "", nameCentspPb8TeVATLAS.Data());
Double_t nCollpPb8ATLAS = 7.09;
TString nameCentspPb5TeVALICE = "0-100%";
TString nameCentspPb5TeVALICEOut = "00100";
TString labelXTpPb5TeVALICE = "ALICE wip. (0-100% p-Pb 5.02TeV)";
TString labelpPb5TeVALICE = "ALICE wip. (0-100%)";
Double_t xLegpPb5TeVALICEXT = 0.625;
Double_t yLegpPb5TeVALICEXT = 0.61;
Color_t colorCombpPb5ALICE = GetDefaultDifferentSystemsAndCents(nameCentspPb5TeVALICE.Data(),"pPb_5.023TeV", "ALICE")+1;
Color_t colorCombpPb5ALICEBox = GetDefaultDifferentSystemsAndCents(nameCentspPb5TeVALICE.Data(),"pPb_5.023TeV", "ALICE")+1;
Style_t markerStyleCombpPb5ALICE = 47;
Style_t markerStyleCombpPb5ALICEMC = 46;
Size_t markerSizeCombpPb5ALICE = 2;
// PbPb settings
TString namePbPbCent[3] = {"0-20%", "20-40%", "40-80%"};
TString namePbPbCentOut[3] = {"0020", "2040", "4080"};
TString labelXTALICE[3] = {"ALICE (0-20% Pb-Pb 2.76TeV)", "ALICE (20-40% Pb-Pb 2.76TeV)", "ALICE (40-80% Pb-Pb 2.76TeV)"};
TString labelALICE[3] = {"ALICE (0-20%)", "ALICE (20-40%)", "ALICE (40-80%)"};
Double_t xLegALICEXT[3] = {0.43, 0.445, 0.46};
Double_t yLegALICEXT[3] = {0.88, 0.86, 0.84};
TString nameLabelScalePbPb[3] = {"x 10^{1}", "x 10^{0}", "x 10^{-2}"};
Double_t scaleFacPlotAPbPb[3] = {10e1, 1, 10e-2};
Color_t colorComb[3];
Color_t colorCombPbALICE[3];
Style_t markerStyleComb[3];
Style_t markerStyleCombMC[3];
Size_t markerSizeComb[3];
Double_t nColl[3];
Color_t colorCombAr[3] = {kRed-5, kYellow-5, kAzure-7};
for (Int_t centPb = 0; centPb < 3; centPb++){
colorComb[centPb] = GetColorDefaultColor("PbPb_2.76TeV", "", namePbPbCent[centPb].Data());
colorCombPbALICE[centPb] = GetDefaultDifferentSystemsAndCents(namePbPbCent[centPb].Data(), "PbPb_2.76TeV", "ALICE");
markerStyleComb[centPb] = GetDefaultMarkerStyle("PbPb_2.76TeV", "", namePbPbCent[centPb].Data());
markerStyleCombMC[centPb] = GetDefaultMarkerStyle("PbPb_2.76TeV", "MC", namePbPbCent[centPb].Data());
markerSizeComb[centPb] = GetDefaultMarkerSize("PbPb_2.76TeV", "", namePbPbCent[centPb].Data());
nColl[centPb] = GetNCollFromName(namePbPbCentOut[centPb].Data());
}
TString namePbPbCentCMS[3] = {"0-10%", "10-30%", "30-100%"};
TString namePbPbCentCMSOut[3] = {"0010", "1030", "30100"};
TString labelXTCMS[3] = {"CMS (0-10% Pb-Pb 2.76TeV)", "CMS (10-30% Pb-Pb 2.76TeV)", "CMS (30-100% Pb-Pb 2.76TeV)"};
TString labelCMS[3] = {"CMS (0-10%)", "CMS (10-30%)", "CMS (30-100%)"};
Double_t xLegCMSXT[3] = {0.23, 0.245, 0.26};
Double_t yLegCMSXT[3] = {0.58, 0.56, 0.54};
Color_t colorCombCMS[3];
Style_t markerStyleCombCMS[3];
Style_t markerStyleCombMCCMS[3];
Size_t markerSizeCombCMS[3];
Double_t nCollCMS[3];
for (Int_t centPb = 0; centPb < 3; centPb++){
colorCombCMS[centPb] = GetDefaultDifferentSystemsAndCents(namePbPbCentCMS[centPb].Data(), "PbPb_2.76TeV", "CMS");
markerStyleCombCMS[centPb] = GetDefaultMarkerStyle("PbPb_2.76TeV", "", namePbPbCentCMS[centPb].Data());
markerStyleCombMCCMS[centPb] = GetDefaultMarkerStyle("PbPb_2.76TeV", "MC", namePbPbCentCMS[centPb].Data());
markerSizeCombCMS[centPb] = GetDefaultMarkerSize("PbPb_2.76TeV", "", namePbPbCentCMS[centPb].Data());
nCollCMS[centPb] = GetNCollFromName(namePbPbCentCMSOut[centPb].Data());
}
Color_t colorCombpAu200[2];
Style_t markerStyleCombpAu200[2];
Style_t markerStyleCombMCpAu200[2];
Size_t markerSizeCombpAu200[2];
Double_t nCollpAu200[2];
TString nameCentspAu200Out[2] = {"0005", "00100"};
TString nameCentspAu200[2] = {"0-5%", "0-100%"};
TString labelXTPHENIXpAu200[2] = {"PHENIX prel. (0-5% p-Au 0.2TeV)", "PHENIX prel. (0-100% p-Au 0.2TeV)"};
TString labelPHENIXpAu200[2] = {"PHENIX prel. (0-5%)", "PHENIX prel. (0-100%)"};
Double_t xLegPHENIXpAu200XT[2] = {0.33, 0.345};
Double_t yLegPHENIXpAu200XT[2] = {0.43, 0.41};
for (Int_t centAu = 0; centAu < 2; centAu++){
colorCombpAu200[centAu] = GetDefaultDifferentSystemsAndCents(nameCentspAu200[centAu].Data(), "pAu_0.2TeV", "PHENIX");
markerStyleCombpAu200[centAu] = GetDefaultMarkerStyle("pPb_5.023TeV", "", nameCentspAu200[centAu].Data());
markerStyleCombMCpAu200[centAu] = GetDefaultMarkerStyle("pPb_5.023TeV", "MC", nameCentspAu200[centAu].Data());
markerSizeCombpAu200[centAu] = GetDefaultMarkerSize("pPb_5.023TeV", "", nameCentspAu200[centAu].Data());
nCollpAu200[centAu] = GetNCollFromName(nameCentspAu200Out[centAu].Data(), "pAu_0.2TeV");
}
Color_t colorCombdAu200;
Style_t markerStyleCombdAu200;
Style_t markerStyleCombMCdAu200;
Size_t markerSizeCombdAu200;
Double_t nColldAu200;
TString nameCentsdAu200Out = "00100";
TString nameCentsdAu200 = "0-100%";
TString labelXTPHENIXdAu200 = "PHENIX (0-100% d-Au 0.2TeV)";
TString labelPHENIXdAu200 = "PHENIX (0-100%)";
Double_t xLegPHENIXdAu200XT = 0.395;
Double_t yLegPHENIXdAu200XT = 0.37;
colorCombdAu200 = GetDefaultDifferentSystemsAndCents(nameCentsdAu200.Data(), "dAu_0.2TeV", "PHENIX");
markerStyleCombdAu200 = GetDefaultMarkerStyle("PbPb_2.76TeV", "", nameCentsdAu200.Data());
markerStyleCombMCdAu200 = 28;
markerSizeCombdAu200 = GetDefaultMarkerSize("PbPb_2.76TeV", "", nameCentsdAu200.Data());
nColldAu200 = GetNCollFromName(nameCentsdAu200Out.Data(), "dAu_0.2TeV");
TString namePbPbCentATLAS[4] = {"0-10%", "10-20%", "20-40%", "40-80%"};
TString namePbPbCentATLASOut[4] = {"0010", "1020", "2040", "4080"};
TString labelXTATLAS[4] = {"ATLAS (0-10% Pb-Pb 2.76TeV)", "ATLAS (10-20% Pb-Pb 2.76TeV)", "ATLAS (20-40% Pb-Pb 2.76TeV)", "ATLAS (40-80% Pb-Pb 2.76TeV)"};
TString labelATLAS[4] = {"ATLAS (0-10%)", "ATLAS (10-20%)", "ATLAS (20-40%)", "ATLAS (40-80%)"};
Double_t xLegATLASXT[4] = {0.23, 0.245, 0.26, 0.275};
Double_t yLegATLASXT[4] = {0.51, 0.49, 0.47, 0.45};
Color_t colorCombATLAS[4];
Style_t markerStyleCombATLAS[4];
Style_t markerStyleCombMCATLAS[4];
Size_t markerSizeCombATLAS[4];
Double_t nCollATLAS[4];
for (Int_t centPb = 0; centPb < 4; centPb++){
colorCombATLAS[centPb] = GetDefaultDifferentSystemsAndCents(namePbPbCentATLAS[centPb].Data(), "PbPb_2.76TeV", "ATLAS");
markerStyleCombATLAS[centPb] = GetDefaultMarkerStyle("PbPb_2.76TeV", "", namePbPbCentATLAS[centPb].Data());
markerStyleCombMCATLAS[centPb] = GetDefaultMarkerStyle("PbPb_2.76TeV", "MC", namePbPbCentATLAS[centPb].Data());
markerSizeCombATLAS[centPb] = GetDefaultMarkerSize("PbPb_2.76TeV", "", namePbPbCentATLAS[centPb].Data());
nCollATLAS[centPb] = GetNCollFromName(namePbPbCentATLASOut[centPb].Data());
}
Color_t colorCombAuAu200[5];
Style_t markerStyleCombAuAu200[5];
Style_t markerStyleCombMCAuAu200[5];
Size_t markerSizeCombAuAu200[5];
Double_t nCollAuAu200[5];
TString nameCentsAuAu200Out[5] = {"0020", "2040", "4060", "6092", "0092"};
TString nameCentsAuAu200[5] = {"0-20%", "20-40%", "40-60%", "60-92%", "0-92%"};
TString labelXTPHENIX200[5] = {"PHENIX (0-20% Au-Au 0.2TeV)", "PHENIX (20-40% Au-Au 0.2TeV)", "PHENIX (40-60% Au-Au 0.2TeV)", "PHENIX (60-92% Au-Au 0.2TeV)", "PHENIX (0-92% Au-Au 0.2TeV)"};
TString labelPHENIX200[5] = {"PHENIX (0-20%)", "PHENIX (20-40%)", "PHENIX (40-60%)", "PHENIX (60-92%)", "PHENIX (0-92%)"};
Double_t xLegPHENIX200XT[5] = {0.535, 0.555, 0.575, 0.595, 0.615};
Double_t yLegPHENIX200XT[5] = {0.78, 0.76, 0.74, 0.72, 0.70};
for (Int_t centAu = 0; centAu < 5; centAu++){
colorCombAuAu200[centAu] = GetDefaultDifferentSystemsAndCents(nameCentsAuAu200[centAu].Data(), "AuAu_0.2TeV", "PHENIX");
markerStyleCombAuAu200[centAu] = GetDefaultMarkerStyle("PbPb_2.76TeV", "", nameCentsAuAu200[centAu].Data());
markerStyleCombMCAuAu200[centAu] = GetDefaultMarkerStyle("PbPb_2.76TeV", "MC", nameCentsAuAu200[centAu].Data());
markerSizeCombAuAu200[centAu] = GetDefaultMarkerSize("PbPb_2.76TeV", "", nameCentsAuAu200[centAu].Data());
nCollAuAu200[centAu] = GetNCollFromName(nameCentsAuAu200Out[centAu].Data(), "AuAu_0.2TeV");
}
Color_t colorCombAuAu200STAR[5];
Style_t markerStyleCombAuAu200STAR[5];
Style_t markerStyleCombMCAuAu200STAR[5];
Size_t markerSizeCombAuAu200STAR[5];
Double_t nCollAuAu200STAR[5];
TString nameCentsAuAu200STAROut[5] = {"0020", "2040", "4060", "6080", "0080"};
TString nameCentsAuAu200STAR[5] = {"0-20%", "20-40%", "40-60%", "60-80%", "0-80%"};
TString labelXTSTAR200[5] = {"STAR (0-20% Au-Au 0.2TeV)", "STAR (20-40% Au-Au 0.2TeV)", "STAR (40-60% Au-Au 0.2TeV)", "STAR (60-80% Au-Au 0.2TeV)", "STAR (0-80% Au-Au 0.2TeV)"};
TString labelSTAR200[5] = {"STAR (0-20%)", "STAR (20-40%)", "STAR (40-60%)", "STAR (60-80%)", "STAR (0-80%)"};
Double_t xLegSTAR200XT[5] = {0.30, 0.315, 0.33, 0.345, 0.36};
Double_t yLegSTAR200XT[5] = {0.42, 0.40, 0.38, 0.36, 0.34};
for (Int_t centAu = 0; centAu < 5; centAu++){
colorCombAuAu200STAR[centAu] = GetDefaultDifferentSystemsAndCents(nameCentsAuAu200STAR[centAu].Data(), "AuAu_0.2TeV", "STAR");
markerStyleCombAuAu200STAR[centAu] = GetDefaultMarkerStyle("PbPb_2.76TeV", "", nameCentsAuAu200STAR[centAu].Data());
markerStyleCombMCAuAu200STAR[centAu] = GetDefaultMarkerStyle("PbPb_2.76TeV", "MC", nameCentsAuAu200STAR[centAu].Data());
markerSizeCombAuAu200STAR[centAu] = GetDefaultMarkerSize("PbPb_2.76TeV", "", nameCentsAuAu200STAR[centAu].Data());
nCollAuAu200STAR[centAu] = GetNCollFromName(nameCentsAuAu200STAROut[centAu].Data(), "AuAu_0.2TeV_STAR");
}
Color_t colorCombAuAu62[3];
Style_t markerStyleCombAuAu62[3];
Style_t markerStyleCombMCAuAu62[3];
Size_t markerSizeCombAuAu62[3];
Double_t nCollAuAu62[3];
TString nameCentsAuAu62Out[3] = {"0020", "2040", "0086"};
TString nameCentsAuAu62[3] = {"0-20%", "20-40%", "0-86%"};
TString labelXTPHENIX62[3] = {"PHENIX (0-20% Au-Au 62.4GeV)", "PHENIX (20-40% Au-Au 62.4GeV)", "PHENIX (0-86% Au-Au 62.4GeV)"};
TString labelPHENIXAu62[3] = {"PHENIX (0-20%)", "PHENIX (20-40%)", "PHENIX (0-86%)"};
Double_t xLegPHENIX62XT[3] = {0.665, 0.675, 0.685};
Double_t yLegPHENIX62XT[3] = {0.62, 0.60, 0.58};
for (Int_t centAu = 0; centAu < 3; centAu++){
colorCombAuAu62[centAu] = GetDefaultDifferentSystemsAndCents(nameCentsAuAu62[centAu].Data(), "AuAu_62.4GeV", "PHENIX");
markerStyleCombAuAu62[centAu] = GetDefaultMarkerStyle("PbPb_2.76TeV", "", nameCentsAuAu62[centAu].Data());
markerStyleCombMCAuAu62[centAu] = GetDefaultMarkerStyle("PbPb_2.76TeV", "MC", nameCentsAuAu62[centAu].Data());
markerSizeCombAuAu62[centAu] = GetDefaultMarkerSize("PbPb_2.76TeV", "", nameCentsAuAu62[centAu].Data());
nCollAuAu62[centAu] = GetNCollFromName(nameCentsAuAu62Out[centAu].Data(), "AuAu_62.4GeV");
}
TString nameCentsAuAu39 = "0-86%";
TString nameCentsAuAu39Out = "0086";
TString labelXTPHENIX39 = "PHENIX (0-86% Au-Au 39GeV)";
TString labelPHENIXAu39 = "PHENIX (0-86%)";
Double_t xLegPHENIX39XT = 0.71;
Double_t yLegPHENIX39XT = 0.55;
Double_t nCollAuAu39 = GetNCollFromName("0086", "AuAu_39GeV");
Color_t colorCombAuAu39 = GetDefaultDifferentSystemsAndCents(nameCentsAuAu39.Data(), "AuAu_39GeV", "PHENIX");
Style_t markerStyleCombAuAu39 = kStar;
Style_t markerStyleCombMCAuAu39 = 28;
Size_t markerSizeCombAuAu39 = 2.5;
TString nameCentsPbPb17 = "0-10%";
TString nameCentsPbPb17Out = "0010";
TString labelXTWA98 = "WA98 (0-10% Pb-Pb 17.2GeV)";
TString labelWA98 = "WA98 (0-10%)";
Double_t xLegWA98XT = 0.49;
Double_t yLegWA98XT = 0.20;
Double_t nCollPbPb17 = GetNCollFromName("0010", "PbPb_17.2GeV");
Color_t colorCombPbPb17 = GetDefaultDifferentSystemsAndCents(nameCentsPbPb17.Data(), "PbPb_17.2GeV", "WA98");
Style_t markerStyleCombPbPb17 = kStar;
Style_t markerStyleCombMCPbPb17 = kOpenStar;
Size_t markerSizeCombPbPb17 = 2.5;
Color_t colorCombCuCu200[2];
Style_t markerStyleCombCuCu200[2];
Style_t markerStyleCombMCCuCu200[2];
Size_t markerSizeCombCuCu200[2];
Double_t nCollCuCu200[2];
TString nameCentsCuCu200Out[2] = {"0040", "0094"};
TString nameCentsCuCu200[2] = {"0-40%", "0-94%"};
TString labelXTPHENIXCuCu200[2] = {"PHENIX (0-40% Cu-Cu 0.2TeV)", "PHENIX (0-92% Cu-Cu 0.2TeV)"};
TString labelPHENIXCu200[2] = {"PHENIX (0-40%)", "PHENIX (0-92%)"};
Double_t xLegPHENIXCuCu200CXT[2] = {0.635, 0.65};
Double_t yLegPHENIXCuCu200XT[2] = {0.67, 0.65};
for (Int_t centCu = 0; centCu < 2; centCu++){
colorCombCuCu200[centCu] = GetDefaultDifferentSystemsAndCents(nameCentsCuCu200[centCu].Data(), "CuCu_0.2TeV", "PHENIX");
markerStyleCombCuCu200[centCu] = GetDefaultMarkerStyle("PbPb_2.76TeV", "", nameCentsCuCu200[centCu].Data());
markerStyleCombMCCuCu200[centCu] = GetDefaultMarkerStyle("PbPb_2.76TeV", "MC", nameCentsCuCu200[centCu].Data());
markerSizeCombCuCu200[centCu] = GetDefaultMarkerSize("PbPb_2.76TeV", "", nameCentsCuCu200[centCu].Data());
nCollCuCu200[centCu] = GetNCollFromName(nameCentsCuCu200Out[centCu].Data(), "CuCu_0.2TeV");
}
TString collisionSystempp2760GeV = "pp, #sqrt{#it{s}} = 2.76 TeV";
TString collisionSystempp8TeV = "pp, #sqrt{#it{s}} = 8 TeV";
TString collisionSystempp7TeV = "pp, #sqrt{#it{s}} = 7 TeV";
TString collisionSystemPbPb2760GeV = "Pb-Pb, #sqrt{#it{s}_{_{NN}}} = 2.76 TeV";
TString collisionSystempAu200GeV = "p-Au, #sqrt{#it{s}_{_{NN}}} = 0.2 TeV";
TString collisionSystemdAu200GeV = "d-Au, #sqrt{#it{s}_{_{NN}}} = 0.2 TeV";
TString collisionSystemAuAu200GeV = "Au-Au, #sqrt{#it{s}_{_{NN}}} = 0.2 TeV";
TString collisionSystemAuAu39GeV = "Au-Au, #sqrt{#it{s}_{_{NN}}} = 39 GeV";
TString collisionSystemAuAu62GeV = "Au-Au, #sqrt{#it{s}_{_{NN}}} = 62.4 GeV";
TString collisionSystemCuCu200GeV = "Cu-Cu, #sqrt{#it{s}_{_{NN}}} = 0.2 TeV";
TString collisionSystemPbPb17GeV = "Pb-Pb, #sqrt{#it{s}_{_{NN}}} = 17.2 GeV";
TString collisionSystempPb5TeV = "p-Pb, #sqrt{#it{s}_{_{NN}}} = 5.02 TeV";
TString collisionSystempPb8TeV = "p-Pb, #sqrt{#it{s}_{_{NN}}} = 8.16 TeV";
TString textALICE = "ALICE";
Color_t colorCombpp2760GeV = kBlack;
Style_t markerStyleCombpp2760GeV = 20;
Size_t markerSizeCombpp2760GeV = 1.8;
Width_t widthLinesBoxes = 1;
Width_t widthCommonFit = 2;
Color_t colorEnergy[6] = {kRed+1, kGreen+2, kBlue+2, kRed+3, kYellow+2, kViolet-2 };
Color_t colorEpp2760GeV = GetColorDefaultColor("2.76TeV", "", "");
Style_t markerStyleEpp2760GeV = GetDefaultMarkerStyle("2.76TeV", "", "");
Size_t markerSizeEpp2760GeV = GetDefaultMarkerSize("2.76TeV", "", "");
Color_t colorEpp8TeV = GetColorDefaultColor("8TeV", "", "");
Style_t markerStyleEpp8TeV = GetDefaultMarkerStyle("8TeV", "", "");
Size_t markerSizeEpp8TeV = GetDefaultMarkerSize("8TeV", "", "");
Color_t colorEpp7TeV = GetColorDefaultColor("7TeV", "", "");
Style_t markerStyleEpp7TeV = GetDefaultMarkerStyle("7TeV", "", "");
Size_t markerSizeEpp7TeV = GetDefaultMarkerSize("7TeV", "", "")*0.8;
const Int_t nOtherEnergies = 23;
TString nameOtherExp[nOtherEnergies] = { "ATLAS","ATLAS", "ALICE prel.", "ATLAS", "ATLAS", "CMS", "CMS",
"CMS", "CDF", "D0", "UA1", "UA2",
"UA1", "PHENIX", "R807", "R108",
"E706", "E706", "NA24", "WA70",
"UA6", "UA6" , "E704" };
TString nameOtherExpRead[nOtherEnergies] = { "ATLAS","ATLAS", "ALICE", "ATLAS_1", "ATLAS_2", "CMS_1", "CMS",
"CMS", "CDF", "D0", "UA1", "UA2",
"UA1", "PHENIX", "R807", "R108",
"E706", "E706", "NA24", "WA70",
"UA6_0", "UA6_1", "E704" };
TString nameOtherEnergyRead[nOtherEnergies] = { "13TeV", "8TeV", "7TeV", "7TeV", "7TeV", "7TeV", "7TeV",
"2.76TeV", "1.8TeV", "1.8TeV", "630GeV", "630GeV",
"546GeV", "200GeV", "63GeV", "62.4GeV",
"38.8GeV", "31.6GeV", "23.8GeV", "23GeV",
"24.3GeV", "24.3GeV", "19.4GeV" };
TString nameOtherEnergy[nOtherEnergies] = { "13 TeV","8 TeV", "7 TeV", "7 TeV", "7 TeV", "7 TeV", "7 TeV",
"2.76 TeV", "1.8 TeV", "1.8 TeV", "630 GeV", "630 GeV",
"546 GeV", "200 GeV", "63 GeV", "62.4 GeV",
"38.8 GeV", "31.6 GeV", "23.8 GeV", "23 GeV",
"24.3 GeV", "24.3 GeV", "19.4 GeV"};
Color_t colorOtherExp[nOtherEnergies] = { kViolet-3, kGreen+2, kBlue+3, kBlue+1, kBlue+2, kBlue+2, kBlue+1, kMagenta+1, kCyan+2, kCyan+2, kOrange+7, kOrange+7,
kOrange+7, kViolet+2, kGray, kGray, kGray+1, kGray+1, kGray+2, kGray+2, kGray+2,
kGray+2, 1 };
Style_t markerStyleOtherExp[nOtherEnergies] = { 21, 27, 25, 24, 28, 30, 25, 24, 34, 33, 29, 25,
24, 20, 28, 27, 30, 25, 20, 21, 34, 33,
24 };
Size_t markerSizeOtherExp[nOtherEnergies] = { 1.3, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5,
1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5,
1.5, 1.5};
Double_t legendOtherExtX[nOtherEnergies] = { 0.60, 0.65, 0.30, 0.404, 0.382, 0.446, 0.426, 0.7, 0.74, 0.76, 0.5, 0.52,
0.54, 0.79, 0.57, 0.59, 0.82, 0.83, 0.62, 0.64, 0.66, 0.67,
0.84 };
Double_t legendOtherExtY[nOtherEnergies] = { 0.60, 0.55, 0.58, 0.52, 0.55, 0.46, 0.49, 0.50, 0.45, 0.42, 0.40, 0.37,
0.34, 0.37, 0.30, 0.27, 0.32, 0.29, 0.23, 0.20, 0.17, 0.14,
0.26 };
Double_t legendOtherExtXOnlyIso[nOtherEnergies] = { 0.68, 0.58, 0.34, 0.38, 0.42, 0.46, 0.50, 0.27, 0.33, 0.35, 0.40, 0.42,
0.44, 0.47, 0.5, 0.52, 0.79, 0.81, 0.59, 0.61, 0.62, 0.63,
0.83 };
Double_t legendOtherExtYOnlyIso[nOtherEnergies] = { 0.60, 0.70, 0.92, 0.89, 0.86, 0.83, 0.80, 0.70, 0.63, 0.60, 0.52, 0.49,
0.46, 0.42, 0.36, 0.33, 0.42, 0.39, 0.23, 0.20, 0.17, 0.14,
0.36 };
//*************************************************************************************************************************************************
//*************************************** Read in data ********************************************************************************************
//*************************************************************************************************************************************************
//--------------------------------------- pp 2.76TeV --------------------------------------------
TFile* fileCombPP2760GeV = new TFile( inputFileNamePP2760GeV.Data());
TGraphAsymmErrors* graphDRStatpp2760GeV = (TGraphAsymmErrors*) fileCombPP2760GeV->Get("Gamma2.76TeV/graphRGammaNonFitCombStatErr");
TGraphAsymmErrors* graphDRSyspp2760GeV = (TGraphAsymmErrors*) fileCombPP2760GeV->Get("Gamma2.76TeV/graphRGammaNonFitCombSysErr");
TGraphAsymmErrors* graphDRTotpp2760GeV = AddErrorsQuadraticallyTGraph(graphDRStatpp2760GeV, graphDRSyspp2760GeV);
TGraphAsymmErrors* graphInvYieldDirGammaStatpp2760GeV = (TGraphAsymmErrors*) fileCombPP2760GeV->Get("Gamma2.76TeV/graphInvYieldDirGammaNonFitStatErr");
TGraphAsymmErrors* graphInvYieldDirGammaSyspp2760GeV = (TGraphAsymmErrors*) fileCombPP2760GeV->Get("Gamma2.76TeV/graphInvYieldDirGammaNonFitSysErr");
TGraphAsymmErrors* graphInvYieldDirGammaTotArpp2760GeV = (TGraphAsymmErrors*) fileCombPP2760GeV->Get("Gamma2.76TeV/graphInvYieldDirGammaNonFitSumErrAr");
TGraphAsymmErrors* graphXSecDirGammaStatpp2760GeV = (TGraphAsymmErrors*) fileCombPP2760GeV->Get("Gamma2.76TeV/graphInvXSectionDirGammaNonFitStatErr");
TGraphAsymmErrors* graphXSecDirGammaSyspp2760GeV = (TGraphAsymmErrors*) fileCombPP2760GeV->Get("Gamma2.76TeV/graphInvXSectionDirGammaNonFitSysErr");
TGraphAsymmErrors* graphXSecDirGammaTotArpp2760GeV = (TGraphAsymmErrors*) fileCombPP2760GeV->Get("Gamma2.76TeV/graphInvXSectionDirGammaNonFitSumErrAr");
TGraphAsymmErrors* graphXSecDirGammaStatpp2760GeV_xT = xTScalePhoton(graphXSecDirGammaStatpp2760GeV, 2760.);
TGraphAsymmErrors* graphXSecDirGammaSyspp2760GeV_xT = xTScalePhoton(graphXSecDirGammaSyspp2760GeV, 2760.);
TGraphAsymmErrors* graphXSecDirGammaTotArpp2760GeV_xT = xTScalePhoton(graphXSecDirGammaTotArpp2760GeV, 2760.);
TGraphAsymmErrors* graphInvYieldIncGammaStatpp2760GeV = (TGraphAsymmErrors*) fileCombPP2760GeV->Get("Gamma2.76TeV/graphInvYieldIncGammaStatErr");
TGraphAsymmErrors* graphInvYieldIncGammaSyspp2760GeV = (TGraphAsymmErrors*) fileCombPP2760GeV->Get("Gamma2.76TeV/graphInvYieldIncGammaSysErr");
TF1* fitInvYieldIncGammapp2760GeV = (TF1*) fileCombPP2760GeV->Get("Gamma2.76TeV/Fits/TwoComponentModelFitGamma");
//--------------------------------------- pp 2.76TeV --------------------------------------------
TFile* fileCombPP7TeV = new TFile( inputFileNamePP7TeV.Data());
TH1D* histDRStatpp7TeV = (TH1D*)fileCombPP7TeV->Get("Gamma_7TeV_pp/DoubleRatioStatError");
TGraphAsymmErrors* graphDRStatpp7TeV = new TGraphAsymmErrors(histDRStatpp7TeV);
TGraphAsymmErrors* graphDRSyspp7TeV = (TGraphAsymmErrors*) fileCombPP7TeV->Get("Gamma_7TeV_pp/DoubleRatioSystError");
while (graphDRStatpp7TeV->GetX()[0] < 0.51) graphDRStatpp7TeV->RemovePoint(0);
while (graphDRSyspp7TeV->GetX()[0] < 0.51) graphDRSyspp7TeV->RemovePoint(0);
while (graphDRStatpp7TeV->GetX()[graphDRStatpp7TeV->GetN()-1] > 10) graphDRStatpp7TeV->RemovePoint(graphDRStatpp7TeV->GetN()-1);
while (graphDRSyspp7TeV->GetX()[graphDRSyspp7TeV->GetN()-1] > 10) graphDRSyspp7TeV->RemovePoint(graphDRSyspp7TeV->GetN()-1);
TGraphAsymmErrors* graphDRTotpp7TeV = AddErrorsQuadraticallyTGraph(graphDRStatpp7TeV, graphDRSyspp7TeV);
TGraphAsymmErrors* graphInvYieldDirGammaStatpp7TeV = (TGraphAsymmErrors*) fileCombPP7TeV->Get("Gamma_7TeV_pp/graphDirGammaSpectrumStat");
TGraphAsymmErrors* graphInvYieldDirGammaSyspp7TeV = (TGraphAsymmErrors*) fileCombPP7TeV->Get("Gamma_7TeV_pp/graphDirGammaSpectrumSyst");
TGraphAsymmErrors* graphInvYieldDirGammaTotArpp7TeV = (TGraphAsymmErrors*) fileCombPP7TeV->Get("Gamma_7TeV_pp/graphDirGammaSpectrumSummedAr");
TGraphAsymmErrors* graphXSecDirGammaStatpp7TeV = ScaleGraph(graphInvYieldDirGammaStatpp7TeV, xSection7TeV*recalcBarn);
TGraphAsymmErrors* graphXSecDirGammaSyspp7TeV = ScaleGraph(graphInvYieldDirGammaSyspp7TeV, xSection7TeV*recalcBarn);
TGraphAsymmErrors* graphXSecDirGammaTotArpp7TeV = ScaleGraph(graphInvYieldDirGammaTotArpp7TeV, xSection7TeV*recalcBarn);
while (graphXSecDirGammaStatpp7TeV->GetX()[0] < 0.51) graphXSecDirGammaStatpp7TeV->RemovePoint(0);
while (graphXSecDirGammaSyspp7TeV->GetX()[0] < 0.51) graphXSecDirGammaSyspp7TeV->RemovePoint(0);
while (graphXSecDirGammaTotArpp7TeV->GetX()[0] < 0.51) graphXSecDirGammaTotArpp7TeV->RemovePoint(0);
while (graphXSecDirGammaStatpp7TeV->GetX()[graphXSecDirGammaStatpp7TeV->GetN()-1] > 10) graphXSecDirGammaStatpp7TeV->RemovePoint(graphXSecDirGammaStatpp7TeV->GetN()-1);
while (graphXSecDirGammaSyspp7TeV->GetX()[graphXSecDirGammaSyspp7TeV->GetN()-1] > 10) graphXSecDirGammaSyspp7TeV->RemovePoint(graphXSecDirGammaSyspp7TeV->GetN()-1);
while (graphXSecDirGammaTotArpp7TeV->GetX()[graphXSecDirGammaTotArpp7TeV->GetN()-1] > 10) graphXSecDirGammaTotArpp7TeV->RemovePoint(graphXSecDirGammaTotArpp7TeV->GetN()-1);
TGraphAsymmErrors* graphXSecDirGammaStatpp7TeV_xT = xTScalePhoton(graphXSecDirGammaStatpp7TeV, 7000.);
TGraphAsymmErrors* graphXSecDirGammaSyspp7TeV_xT = xTScalePhoton(graphXSecDirGammaSyspp7TeV, 7000.);
TGraphAsymmErrors* graphXSecDirGammaTotArpp7TeV_xT = xTScalePhoton(graphXSecDirGammaTotArpp7TeV, 7000.);
TGraphAsymmErrors* graphInvYieldIncGammaStatpp7TeV = (TGraphAsymmErrors*) fileCombPP7TeV->Get("Gamma_7TeV_pp/graphInvYieldIncGammaStatErr");
TGraphAsymmErrors* graphInvYieldIncGammaSyspp7TeV = (TGraphAsymmErrors*) fileCombPP7TeV->Get("Gamma_7TeV_pp/graphInvYieldIncGammaSysErr");
//--------------------------------------- pp 8TeV --------------------------------------------
TFile* fileCombPP8TeV = new TFile( inputFileNamePP8TeV.Data());
TGraphAsymmErrors* graphDRStatpp8TeV = (TGraphAsymmErrors*) fileCombPP8TeV->Get("Gamma8TeV/graphRGammaCombNonFitStatErr");
TGraphAsymmErrors* graphDRSyspp8TeV = (TGraphAsymmErrors*) fileCombPP8TeV->Get("Gamma8TeV/graphRGammaCombNonFitSysErr");
TGraphAsymmErrors* graphDRTotpp8TeV = AddErrorsQuadraticallyTGraph(graphDRStatpp8TeV, graphDRSyspp8TeV);
TGraphAsymmErrors* graphInvYieldDirGammaStatpp8TeV = (TGraphAsymmErrors*) fileCombPP8TeV->Get("Gamma8TeV/graphInvYieldDirGammaNonFitStatErr");
TGraphAsymmErrors* graphInvYieldDirGammaSyspp8TeV = (TGraphAsymmErrors*) fileCombPP8TeV->Get("Gamma8TeV/graphInvYieldDirGammaNonFitSysErr");
TGraphAsymmErrors* graphInvYieldDirGammaTotArpp8TeV = (TGraphAsymmErrors*) fileCombPP8TeV->Get("Gamma8TeV/graphInvYieldDirGammaNonFitSumErrAr");
TGraphAsymmErrors* graphXSecDirGammaStatpp8TeV = (TGraphAsymmErrors*) fileCombPP8TeV->Get("Gamma8TeV/graphInvXSectionDirGammaNonFitStatErr");
TGraphAsymmErrors* graphXSecDirGammaSyspp8TeV = (TGraphAsymmErrors*) fileCombPP8TeV->Get("Gamma8TeV/graphInvXSectionDirGammaNonFitSysErr");
TGraphAsymmErrors* graphXSecDirGammaTotArpp8TeV = (TGraphAsymmErrors*) fileCombPP8TeV->Get("Gamma8TeV/graphInvXSectionDirGammaNonFitSumErrAr");
TGraphAsymmErrors* graphXSecDirGammaStatpp8TeV_xT = xTScalePhoton(graphXSecDirGammaStatpp8TeV, 8000.);
TGraphAsymmErrors* graphXSecDirGammaSyspp8TeV_xT = xTScalePhoton(graphXSecDirGammaSyspp8TeV, 8000.);
TGraphAsymmErrors* graphXSecDirGammaTotArpp8TeV_xT = xTScalePhoton(graphXSecDirGammaTotArpp8TeV, 8000.);
TGraphAsymmErrors* graphInvYieldIncGammaStatpp8TeV = (TGraphAsymmErrors*) fileCombPP8TeV->Get("Gamma8TeV/graphInvYieldIncGammaStatErr");
TGraphAsymmErrors* graphInvYieldIncGammaSyspp8TeV = (TGraphAsymmErrors*) fileCombPP8TeV->Get("Gamma8TeV/graphInvYieldIncGammaSysErr");
TF1* fitInvYieldIncGammapp8TeV = (TF1*) fileCombPP8TeV->Get("Gamma8TeV/Fits/TwoComponentModelFitGamma");
//--------------------------------------- pPb 5TeV --------------------------------------------
TFile* fileCombPPb5TeV = new TFile( inputFileNamePPb5TeV.Data());
TGraphAsymmErrors* graphDRStatpPb5TeV[5] = {NULL, NULL, NULL, NULL, NULL};
TGraphAsymmErrors* graphDRSyspPb5TeV[5] = {NULL, NULL, NULL, NULL, NULL};
TGraphAsymmErrors* graphInvYieldDirGammaStatpPb5TeV[5] = {NULL, NULL, NULL, NULL, NULL};
TGraphAsymmErrors* graphInvYieldDirGammaSyspPb5TeV[5] = {NULL, NULL, NULL, NULL, NULL};
TGraphAsymmErrors* graphInvYieldDirGammaTotArpPb5TeV[5] = {NULL, NULL, NULL, NULL, NULL};
TGraphAsymmErrors* graphInvYieldDirGammaStatpPb5TeVNCollScaled[5] = {NULL, NULL, NULL, NULL, NULL};
TGraphAsymmErrors* graphInvYieldDirGammaSyspPb5TeVNCollScaled[5] = {NULL, NULL, NULL, NULL, NULL};
TGraphAsymmErrors* graphInvYieldDirGammaTotArpPb5TeVNCollScaled[5] = {NULL, NULL, NULL, NULL, NULL};
TGraphAsymmErrors* graphInvYieldDirGammaTotpPb5TeVNCollScaled[5] = {NULL, NULL, NULL, NULL, NULL};
TGraphAsymmErrors* graphInvYieldDirGammaTotArpPb5TeVNCollScaledXT[5] = {NULL, NULL, NULL, NULL, NULL};
TGraphAsymmErrors* graphInvYieldDirGammaTotpPb5TeVNCollScaledXT[5] = {NULL, NULL, NULL, NULL, NULL};
for (Int_t ncent = 0; ncent < 5; ncent++){
graphDRStatpPb5TeV[ncent] = (TGraphAsymmErrors*) fileCombPPb5TeV->Get(Form("Gamma_pPb5TeV%s/graphRGammaCombStatErr",namepPbCent[ncent].Data()));
graphDRSyspPb5TeV[ncent] = (TGraphAsymmErrors*) fileCombPPb5TeV->Get(Form("Gamma_pPb5TeV%s/graphRGammaCombSysErr",namepPbCent[ncent].Data()));
graphInvYieldDirGammaStatpPb5TeV[ncent] = (TGraphAsymmErrors*) fileCombPPb5TeV->Get(Form("Gamma_pPb5TeV%s/graphInvYieldDirGammaStatErr",namepPbCent[ncent].Data()));
graphInvYieldDirGammaSyspPb5TeV[ncent] = (TGraphAsymmErrors*) fileCombPPb5TeV->Get(Form("Gamma_pPb5TeV%s/graphInvYieldDirGammaSysErr",namepPbCent[ncent].Data()));
graphInvYieldDirGammaTotArpPb5TeV[ncent] = (TGraphAsymmErrors*) fileCombPPb5TeV->Get(Form("Gamma_pPb5TeV%s/graphInvYieldDirGammaSumErrAr",namepPbCent[ncent].Data()));
if (graphInvYieldDirGammaStatpPb5TeV[ncent])
graphInvYieldDirGammaStatpPb5TeVNCollScaled[ncent] = ScaleGraph(graphInvYieldDirGammaStatpPb5TeV[ncent], 1./nCollpPb5[ncent]);
if (graphInvYieldDirGammaSyspPb5TeV[ncent])
graphInvYieldDirGammaSyspPb5TeVNCollScaled[ncent] = ScaleGraph(graphInvYieldDirGammaSyspPb5TeV[ncent], 1./nCollpPb5[ncent]);
if (graphInvYieldDirGammaTotArpPb5TeV[ncent])
graphInvYieldDirGammaTotArpPb5TeVNCollScaled[ncent] = ScaleGraph(graphInvYieldDirGammaTotArpPb5TeV[ncent], 1./nCollpPb5[ncent]);
if (graphInvYieldDirGammaStatpPb5TeVNCollScaled[ncent] && graphInvYieldDirGammaSyspPb5TeVNCollScaled[ncent] && graphInvYieldDirGammaTotArpPb5TeVNCollScaled[ncent] ){
for (Int_t pt = 0; pt < graphInvYieldDirGammaTotArpPb5TeVNCollScaled[ncent]->GetN();pt++){
Int_t currPt = 0;
while (currPt < graphInvYieldDirGammaStatpPb5TeVNCollScaled[ncent]->GetN()){
if ( graphInvYieldDirGammaStatpPb5TeVNCollScaled[ncent]->GetX()[currPt] == graphInvYieldDirGammaTotArpPb5TeVNCollScaled[ncent]->GetX()[pt] )
graphInvYieldDirGammaStatpPb5TeVNCollScaled[ncent]->RemovePoint(currPt);
else
currPt++;
}
currPt = 0;
while (currPt < graphInvYieldDirGammaSyspPb5TeVNCollScaled[ncent]->GetN()){
if ( graphInvYieldDirGammaSyspPb5TeVNCollScaled[ncent]->GetX()[currPt] == graphInvYieldDirGammaTotArpPb5TeVNCollScaled[ncent]->GetX()[pt] )
graphInvYieldDirGammaSyspPb5TeVNCollScaled[ncent]->RemovePoint(currPt);
else
currPt++;
}
}
graphInvYieldDirGammaTotpPb5TeVNCollScaled[ncent] = AddErrorsQuadraticallyTGraph(graphInvYieldDirGammaStatpPb5TeVNCollScaled[ncent],graphInvYieldDirGammaSyspPb5TeVNCollScaled[ncent]);
graphInvYieldDirGammaTotpPb5TeVNCollScaled[ncent]->Print();
graphInvYieldDirGammaTotArpPb5TeVNCollScaledXT[ncent] = xTScalePhoton(graphInvYieldDirGammaTotArpPb5TeVNCollScaled[ncent], 5020.);
graphInvYieldDirGammaTotpPb5TeVNCollScaledXT[ncent] = xTScalePhoton(graphInvYieldDirGammaTotpPb5TeVNCollScaled[ncent], 5020.);
} else if (graphInvYieldDirGammaStatpPb5TeVNCollScaled[ncent] && graphInvYieldDirGammaSyspPb5TeVNCollScaled[ncent]){
graphInvYieldDirGammaTotpPb5TeVNCollScaled[ncent] = AddErrorsQuadraticallyTGraph(graphInvYieldDirGammaStatpPb5TeVNCollScaled[ncent],graphInvYieldDirGammaSyspPb5TeVNCollScaled[ncent]);
graphInvYieldDirGammaTotpPb5TeVNCollScaled[ncent]->Print();
graphInvYieldDirGammaTotpPb5TeVNCollScaledXT[ncent] = xTScalePhoton(graphInvYieldDirGammaTotpPb5TeVNCollScaled[ncent], 5020.);
}
}
//--------------------------------------- PbPb 2.76TeV --------------------------------------------
TFile* fileCombPbPb2760GeV = new TFile( inputFileNamePbPb2760GeV.Data());
TGraphAsymmErrors* graphDRStatPbPb[3] = {NULL, NULL, NULL};
TGraphAsymmErrors* graphDRSysPbPb[3] = {NULL, NULL, NULL};
TGraphAsymmErrors* graphInvYieldDirGammaStatPbPb[3] = {NULL, NULL, NULL};
TGraphAsymmErrors* graphInvYieldDirGammaSysPbPb[3] = {NULL, NULL, NULL};
TGraphAsymmErrors* graphInvYieldDirGammaTotArPbPb[3] = {NULL, NULL, NULL};
TGraphAsymmErrors* graphInvYieldDirGammaStatPbPbNCollScaled[3] = {NULL, NULL, NULL};
TGraphAsymmErrors* graphInvYieldDirGammaSysPbPbNCollScaled[3] = {NULL, NULL, NULL};
TGraphAsymmErrors* graphInvYieldDirGammaTotArPbPbNCollScaled[3] = {NULL, NULL, NULL};
TGraphAsymmErrors* graphInvYieldDirGammaTotPbPbNCollScaled[3] = {NULL, NULL, NULL};
TGraphAsymmErrors* graphInvYieldDirGammaTotArPbPbNCollScaledXT[3] = {NULL, NULL, NULL};
TGraphAsymmErrors* graphInvYieldDirGammaTotPbPbNCollScaledXT[3] = {NULL, NULL, NULL};
for (Int_t centPb = 0; centPb < 3; centPb++){
graphDRStatPbPb[centPb] = (TGraphAsymmErrors*) fileCombPbPb2760GeV->Get(Form("Gamma_PbPb_2.76TeV_%s/DR_comb_StatErr", namePbPbCent[centPb].Data()));
graphDRSysPbPb[centPb] = (TGraphAsymmErrors*) fileCombPbPb2760GeV->Get(Form("Gamma_PbPb_2.76TeV_%s/DR_comb_SysErr", namePbPbCent[centPb].Data()));
graphInvYieldDirGammaStatPbPb[centPb] = (TGraphAsymmErrors*) fileCombPbPb2760GeV->Get(Form("Gamma_PbPb_2.76TeV_%s/DirGammaSpec_comb_StatErr", namePbPbCent[centPb].Data()));
graphInvYieldDirGammaSysPbPb[centPb] = (TGraphAsymmErrors*) fileCombPbPb2760GeV->Get(Form("Gamma_PbPb_2.76TeV_%s/DirGammaSpec_comb_SysErr", namePbPbCent[centPb].Data()));
graphInvYieldDirGammaTotArPbPb[centPb] = (TGraphAsymmErrors*) fileCombPbPb2760GeV->Get(Form("Gamma_PbPb_2.76TeV_%s/DirGammaSpec_comb_upperLimits", namePbPbCent[centPb].Data()));
if (graphInvYieldDirGammaTotArPbPb[centPb]){
if (!(graphInvYieldDirGammaTotArPbPb[centPb]->GetN() > 0))
graphInvYieldDirGammaTotArPbPb[centPb] = NULL;
}
if (graphInvYieldDirGammaStatPbPb[centPb])
graphInvYieldDirGammaStatPbPbNCollScaled[centPb] = ScaleGraph(graphInvYieldDirGammaStatPbPb[centPb], 1./nColl[centPb]);
if (graphInvYieldDirGammaSysPbPb[centPb])
graphInvYieldDirGammaSysPbPbNCollScaled[centPb] = ScaleGraph(graphInvYieldDirGammaSysPbPb[centPb], 1./nColl[centPb]);
if (graphInvYieldDirGammaTotArPbPb[centPb])
graphInvYieldDirGammaTotArPbPbNCollScaled[centPb] = ScaleGraph(graphInvYieldDirGammaTotArPbPb[centPb], 1./nColl[centPb]);
if (graphInvYieldDirGammaStatPbPbNCollScaled[centPb] && graphInvYieldDirGammaSysPbPbNCollScaled[centPb] && graphInvYieldDirGammaTotArPbPbNCollScaled[centPb] ){
for (Int_t pt = 0; pt < graphInvYieldDirGammaTotArPbPbNCollScaled[centPb]->GetN();pt++){
Int_t currPt = 0;
while (currPt < graphInvYieldDirGammaStatPbPbNCollScaled[centPb]->GetN()){
if ( graphInvYieldDirGammaStatPbPbNCollScaled[centPb]->GetX()[currPt] == graphInvYieldDirGammaTotArPbPbNCollScaled[centPb]->GetX()[pt] )
graphInvYieldDirGammaStatPbPbNCollScaled[centPb]->RemovePoint(currPt);
else
currPt++;
}
currPt = 0;
while (currPt < graphInvYieldDirGammaSysPbPbNCollScaled[centPb]->GetN()){
if ( graphInvYieldDirGammaSysPbPbNCollScaled[centPb]->GetX()[currPt] == graphInvYieldDirGammaTotArPbPbNCollScaled[centPb]->GetX()[pt] )
graphInvYieldDirGammaSysPbPbNCollScaled[centPb]->RemovePoint(currPt);
else
currPt++;
}
}
graphInvYieldDirGammaTotPbPbNCollScaled[centPb] = AddErrorsQuadraticallyTGraph(graphInvYieldDirGammaStatPbPbNCollScaled[centPb],graphInvYieldDirGammaSysPbPbNCollScaled[centPb]);
graphInvYieldDirGammaTotPbPbNCollScaled[centPb]->Print();
graphInvYieldDirGammaTotArPbPbNCollScaledXT[centPb] = xTScalePhoton(graphInvYieldDirGammaTotArPbPbNCollScaled[centPb], 2760.);
graphInvYieldDirGammaTotPbPbNCollScaledXT[centPb] = xTScalePhoton(graphInvYieldDirGammaTotPbPbNCollScaled[centPb], 2760.);
} else if (graphInvYieldDirGammaStatPbPbNCollScaled[centPb] && graphInvYieldDirGammaSysPbPbNCollScaled[centPb]){
graphInvYieldDirGammaTotPbPbNCollScaled[centPb] = AddErrorsQuadraticallyTGraph(graphInvYieldDirGammaStatPbPbNCollScaled[centPb],graphInvYieldDirGammaSysPbPbNCollScaled[centPb]);
graphInvYieldDirGammaTotPbPbNCollScaled[centPb]->Print();
graphInvYieldDirGammaTotPbPbNCollScaledXT[centPb] = xTScalePhoton(graphInvYieldDirGammaTotPbPbNCollScaled[centPb], 2760.);
}
}
TFile* fileTheoryPP = new TFile( fileNameTheoryPP.Data());
TGraph* graphTheoryNLODRpp2760GeVPaquettCenter = (TGraph*) fileTheoryPP->Get("DirectPhoton/graphDRNLOPaquett_2760GeV_ALICECocktail");
//*************************************************************************************************************************************************
//*************************************** Read pp graphs for scaling plots from other experiments *************************************************
//*************************************************************************************************************************************************
TFile* fileOtherExperimentsPP = new TFile(fileNameExperimentPP.Data());
TGraphAsymmErrors* xTOtherExperiments[nOtherEnergies];
TGraphAsymmErrors* xSectionOtherExperiments[nOtherEnergies];
for (Int_t i = 0; i < nOtherEnergies; i++){
cout << "trying to find: " << Form("%s_tot_Gamma_%s_xT",nameOtherExpRead[i].Data(), nameOtherEnergyRead[i].Data()) << endl;
xTOtherExperiments[i] = (TGraphAsymmErrors*)fileOtherExperimentsPP->Get(Form("%s_tot_Gamma_%s_xT",nameOtherExpRead[i].Data(), nameOtherEnergyRead[i].Data()));
// ProduceGraphAsymmWithoutXErrors(xTOtherExperiments[i]);
xSectionOtherExperiments[i] = (TGraphAsymmErrors*)fileOtherExperimentsPP->Get(Form("%s_tot_Gamma_%s",nameOtherExpRead[i].Data(), nameOtherEnergyRead[i].Data()));
}
TGraphAsymmErrors* graphRGammaLMEE7TeVStat = (TGraphAsymmErrors*)fileOtherExperimentsPP->Get("RGamma_stat_LMEE_7TeV");
TGraphAsymmErrors* graphRGammaLMEE7TeVSys = (TGraphAsymmErrors*)fileOtherExperimentsPP->Get("RGamma_sys_LMEE_7TeV");
TGraphAsymmErrors* graphRGammaLMEE7TeVTot = (TGraphAsymmErrors*)fileOtherExperimentsPP->Get("RGamma_tot_LMEE_7TeV");
//*************************************************************************************************************************************************
//*************************************** Read p(d)-A graphs for scaling plots from other experiments ************************************************
//*************************************************************************************************************************************************
TFile* fileOtherExperimentsPA = new TFile(fileNameExperimentPA.Data());
TGraphErrors* graphYieldDirGammapAu200GeVStat[2] = {NULL, NULL};
TGraphErrors* graphYieldDirGammapAu200GeVSys[2] = {NULL, NULL};
TGraphErrors* graphYieldDirGammapAu200GeVTot[2] = {NULL, NULL};
TGraphErrors* graphYieldDirGammapAu200GeVStatNCollScaled[2] = {NULL, NULL};
TGraphErrors* graphYieldDirGammapAu200GeVSysNCollScaled[2] = {NULL, NULL};
TGraphErrors* graphYieldDirGammapAu200GeVTotNCollScaled[2] = {NULL, NULL};
TGraphAsymmErrors* graphYieldDirGammapAu200GeVTotArNCollScaled[2] = {NULL, NULL};
TGraphErrors* graphYieldDirGammapAu200GeVTotNCollScaledXT[2] = {NULL, NULL};
TGraphAsymmErrors* graphYieldDirGammapAu200GeVTotArNCollScaledXT[2] = {NULL, NULL};
for (Int_t ncent = 0; ncent < 2; ncent++){
graphYieldDirGammapAu200GeVStat[ncent] = (TGraphErrors*)fileOtherExperimentsPA->Get(Form("Gamma/graph_InvYieldDirGamma_PHENIX_pAu_200GeV_Stat_%s", nameCentspAu200Out[ncent].Data()));
graphYieldDirGammapAu200GeVSys[ncent] = (TGraphErrors*)fileOtherExperimentsPA->Get(Form("Gamma/graph_InvYieldDirGamma_PHENIX_pAu_200GeV_Sys_%s", nameCentspAu200Out[ncent].Data()));
graphYieldDirGammapAu200GeVTot[ncent] = (TGraphErrors*)fileOtherExperimentsPA->Get(Form("Gamma/graph_InvYieldDirGamma_PHENIX_pAu_200GeV_Tot_%s", nameCentspAu200Out[ncent].Data()));
if (graphYieldDirGammapAu200GeVStat[ncent])
graphYieldDirGammapAu200GeVStatNCollScaled[ncent] = ScaleGraph(graphYieldDirGammapAu200GeVStat[ncent], 1./(nCollpAu200[ncent]));
if (graphYieldDirGammapAu200GeVSys[ncent])
graphYieldDirGammapAu200GeVSysNCollScaled[ncent] = ScaleGraph(graphYieldDirGammapAu200GeVSys[ncent], 1./(nCollpAu200[ncent]));
if (graphYieldDirGammapAu200GeVTot[ncent])
graphYieldDirGammapAu200GeVTotNCollScaled[ncent] = ScaleGraph(graphYieldDirGammapAu200GeVTot[ncent], 1./(nCollpAu200[ncent]));
if (graphYieldDirGammapAu200GeVTotNCollScaled[ncent]){
Int_t nUpperLimits = 0;
for (Int_t i=0; i< graphYieldDirGammapAu200GeVTotNCollScaled[ncent]->GetN(); i++){
if (graphYieldDirGammapAu200GeVTotNCollScaled[ncent]->GetEY()[i]/graphYieldDirGammapAu200GeVTotNCollScaled[ncent]->GetY()[i] > 0.8)
nUpperLimits++;
}
if (nUpperLimits>0){
graphYieldDirGammapAu200GeVTotArNCollScaled[ncent] = new TGraphAsymmErrors(nUpperLimits);
Int_t currPtBinNew = 0;
for (Int_t i=0; i< graphYieldDirGammapAu200GeVTotNCollScaled[ncent]->GetN(); i++){
if (graphYieldDirGammapAu200GeVTotNCollScaled[ncent]->GetEY()[i]/graphYieldDirGammapAu200GeVTotNCollScaled[ncent]->GetY()[i] > 0.8){
graphYieldDirGammapAu200GeVTotArNCollScaled[ncent]->SetPoint(currPtBinNew, graphYieldDirGammapAu200GeVTotNCollScaled[ncent]->GetX()[i], graphYieldDirGammapAu200GeVTotNCollScaled[ncent]->GetY()[i]+graphYieldDirGammapAu200GeVTotNCollScaled[ncent]->GetEY()[i]);
graphYieldDirGammapAu200GeVTotArNCollScaled[ncent]->SetPointError(currPtBinNew, graphYieldDirGammapAu200GeVTotNCollScaled[ncent]->GetEX()[i], graphYieldDirGammapAu200GeVTotNCollScaled[ncent]->GetEX()[i], graphYieldDirGammapAu200GeVTotNCollScaled[ncent]->GetY()[i]*1.6, 0);
graphYieldDirGammapAu200GeVTotNCollScaled[ncent]->RemovePoint(i);
i--;
currPtBinNew++;
}
}
graphYieldDirGammapAu200GeVTotArNCollScaledXT[ncent] = xTScalePhoton(graphYieldDirGammapAu200GeVTotArNCollScaled[ncent], 200.);
}
graphYieldDirGammapAu200GeVTotNCollScaledXT[ncent] = xTScalePhoton(graphYieldDirGammapAu200GeVTotNCollScaled[ncent], 200.);
}
}
TGraphErrors* graphYieldDirGammadAu200GeVStat = NULL;
TGraphErrors* graphYieldDirGammadAu200GeVSys = NULL;
TGraphErrors* graphYieldDirGammadAu200GeVTot = NULL;
TGraphErrors* graphYieldDirGammadAu200GeVStatNCollScaled = NULL;
TGraphErrors* graphYieldDirGammadAu200GeVSysNCollScaled = NULL;
TGraphErrors* graphYieldDirGammadAu200GeVTotNCollScaled = NULL;
TGraphAsymmErrors* graphYieldDirGammadAu200GeVTotArNCollScaled = NULL;
TGraphErrors* graphYieldDirGammadAu200GeVTotNCollScaledXT = NULL;
TGraphAsymmErrors* graphYieldDirGammadAu200GeVTotArNCollScaledXT = NULL;
for (Int_t ncent = 0; ncent < 2; ncent++){
graphYieldDirGammadAu200GeVStat = (TGraphErrors*)fileOtherExperimentsPA->Get(Form("Gamma/graph_InvYieldDirGamma_PHENIX_dAu_200GeV_Stat_%s", nameCentsdAu200Out.Data()));
graphYieldDirGammadAu200GeVSys = (TGraphErrors*)fileOtherExperimentsPA->Get(Form("Gamma/graph_InvYieldDirGamma_PHENIX_dAu_200GeV_Sys_%s", nameCentsdAu200Out.Data()));
graphYieldDirGammadAu200GeVTot = (TGraphErrors*)fileOtherExperimentsPA->Get(Form("Gamma/graph_InvYieldDirGamma_PHENIX_dAu_200GeV_Tot_%s", nameCentsdAu200Out.Data()));
if (graphYieldDirGammadAu200GeVStat)
graphYieldDirGammadAu200GeVStatNCollScaled = ScaleGraph(graphYieldDirGammadAu200GeVStat, 1./(nColldAu200));
if (graphYieldDirGammadAu200GeVSys)
graphYieldDirGammadAu200GeVSysNCollScaled = ScaleGraph(graphYieldDirGammadAu200GeVSys, 1./(nColldAu200));
if (graphYieldDirGammadAu200GeVTot)
graphYieldDirGammadAu200GeVTotNCollScaled = ScaleGraph(graphYieldDirGammadAu200GeVTot, 1./(nColldAu200));
if (graphYieldDirGammadAu200GeVTotNCollScaled){
Int_t nUpperLimits = 0;
for (Int_t i=0; i< graphYieldDirGammadAu200GeVTotNCollScaled->GetN(); i++){
if (graphYieldDirGammadAu200GeVTotNCollScaled->GetEY()[i]/graphYieldDirGammadAu200GeVTotNCollScaled->GetY()[i] > 0.8)
nUpperLimits++;
}
if (nUpperLimits>0){
graphYieldDirGammadAu200GeVTotArNCollScaled = new TGraphAsymmErrors(nUpperLimits);
Int_t currPtBinNew = 0;
for (Int_t i=0; i< graphYieldDirGammadAu200GeVTotNCollScaled->GetN(); i++){
if (graphYieldDirGammadAu200GeVTotNCollScaled->GetEY()[i]/graphYieldDirGammadAu200GeVTotNCollScaled->GetY()[i] > 0.8){
graphYieldDirGammadAu200GeVTotArNCollScaled->SetPoint(currPtBinNew, graphYieldDirGammadAu200GeVTotNCollScaled->GetX()[i], graphYieldDirGammadAu200GeVTotNCollScaled->GetY()[i]+graphYieldDirGammadAu200GeVTotNCollScaled->GetEY()[i]);
graphYieldDirGammadAu200GeVTotArNCollScaled->SetPointError(currPtBinNew, graphYieldDirGammadAu200GeVTotNCollScaled->GetEX()[i], graphYieldDirGammadAu200GeVTotNCollScaled->GetEX()[i], graphYieldDirGammadAu200GeVTotNCollScaled->GetY()[i]*1.6, 0);
graphYieldDirGammadAu200GeVTotNCollScaled->RemovePoint(i);
i--;
currPtBinNew++;
}
}
graphYieldDirGammadAu200GeVTotArNCollScaledXT = xTScalePhoton(graphYieldDirGammadAu200GeVTotArNCollScaled, 200.);
}
graphYieldDirGammadAu200GeVTotNCollScaledXT = xTScalePhoton(graphYieldDirGammadAu200GeVTotNCollScaled, 200.);
}
}
// ATLAS graphs at 8 TeV
TGraphErrors* graphYieldDirGammapPb8TeVATLASTot = (TGraphErrors*)fileOtherExperimentsPA->Get("Gamma/graph_InvYieldIsoGamma_ATLAS_pPb_8TeV_Tot_00100");
TGraphErrors* graphYieldDirGammapPb8TeVATLASTotNCollScaled = NULL;
TGraphErrors* graphYieldDirGammapPb8TeVATLASTotNCollScaledXT = NULL;
TGraphAsymmErrors* graphYieldDirGammapPb8TeVATLASTotArNCollScaled = NULL;
TGraphAsymmErrors* graphYieldDirGammapPb8TeVATLASTotArNCollScaledXT = NULL;
if (graphYieldDirGammapPb8TeVATLASTot)
graphYieldDirGammapPb8TeVATLASTotNCollScaled = ScaleGraph(graphYieldDirGammapPb8TeVATLASTot, 1./(nCollpPb8ATLAS));
if (graphYieldDirGammapPb8TeVATLASTotNCollScaled){
Int_t nUpperLimits = 0;
for (Int_t i=0; i< graphYieldDirGammapPb8TeVATLASTotNCollScaled->GetN(); i++){
if (graphYieldDirGammapPb8TeVATLASTotNCollScaled->GetEY()[i]/graphYieldDirGammapPb8TeVATLASTotNCollScaled->GetY()[i] > 0.8)
nUpperLimits++;
}
if (nUpperLimits>0){
graphYieldDirGammapPb8TeVATLASTotArNCollScaled = new TGraphAsymmErrors(nUpperLimits);
Int_t currPtBinNew = 0;
for (Int_t i=0; i< graphYieldDirGammapPb8TeVATLASTotNCollScaled->GetN(); i++){
if (graphYieldDirGammapPb8TeVATLASTotNCollScaled->GetEY()[i]/graphYieldDirGammapPb8TeVATLASTotNCollScaled->GetY()[i] > 0.8){
graphYieldDirGammapPb8TeVATLASTotArNCollScaled->SetPoint(currPtBinNew, graphYieldDirGammapPb8TeVATLASTotNCollScaled->GetX()[i], graphYieldDirGammapPb8TeVATLASTotNCollScaled->GetY()[i]+graphYieldDirGammapPb8TeVATLASTotNCollScaled->GetEY()[i]);
graphYieldDirGammapPb8TeVATLASTotArNCollScaled->SetPointError(currPtBinNew, graphYieldDirGammapPb8TeVATLASTotNCollScaled->GetEX()[i], graphYieldDirGammapPb8TeVATLASTotNCollScaled->GetEX()[i], graphYieldDirGammapPb8TeVATLASTotNCollScaled->GetY()[i]*3.6, 0);
graphYieldDirGammapPb8TeVATLASTotNCollScaled->RemovePoint(i);
i--;
currPtBinNew++;
}
}
graphYieldDirGammapPb8TeVATLASTotArNCollScaledXT = xTScalePhoton(graphYieldDirGammapPb8TeVATLASTotArNCollScaled, 8000.);
}
graphYieldDirGammapPb8TeVATLASTotNCollScaledXT = xTScalePhoton(graphYieldDirGammapPb8TeVATLASTotNCollScaled, 8000.);
}
// ALICE graphs at 5 TeV
TGraphErrors* graphYieldDirGammapPb5TeVALICETot = (TGraphErrors*)fileOtherExperimentsPA->Get("Gamma/graph_InvYieldIsoGamma_ALICE_pPb_5TeV_Stat_00100");
TGraphErrors* graphYieldDirGammapPb5TeVALICETotNCollScaled = NULL;
TGraphErrors* graphYieldDirGammapPb5TeVALICETotNCollScaledXT = NULL;
TGraphAsymmErrors* graphYieldDirGammapPb5TeVALICETotArNCollScaled = NULL;
TGraphAsymmErrors* graphYieldDirGammapPb5TeVALICETotArNCollScaledXT = NULL;
if (graphYieldDirGammapPb5TeVALICETot)
graphYieldDirGammapPb5TeVALICETotNCollScaled = ScaleGraph(graphYieldDirGammapPb5TeVALICETot, 1./nCollpPb5[4]);
if (graphYieldDirGammapPb5TeVALICETotNCollScaled){
Int_t nUpperLimits = 0;
for (Int_t i=0; i< graphYieldDirGammapPb5TeVALICETotNCollScaled->GetN(); i++){
if (graphYieldDirGammapPb5TeVALICETotNCollScaled->GetEY()[i]/graphYieldDirGammapPb5TeVALICETotNCollScaled->GetY()[i] > 0.8)
nUpperLimits++;
}
if (nUpperLimits>0){
graphYieldDirGammapPb5TeVALICETotArNCollScaled = new TGraphAsymmErrors(nUpperLimits);
Int_t currPtBinNew = 0;
for (Int_t i=0; i< graphYieldDirGammapPb5TeVALICETotNCollScaled->GetN(); i++){
if (graphYieldDirGammapPb5TeVALICETotNCollScaled->GetEY()[i]/graphYieldDirGammapPb5TeVALICETotNCollScaled->GetY()[i] > 0.8){
graphYieldDirGammapPb5TeVALICETotArNCollScaled->SetPoint(currPtBinNew, graphYieldDirGammapPb5TeVALICETotNCollScaled->GetX()[i], graphYieldDirGammapPb5TeVALICETotNCollScaled->GetY()[i]+graphYieldDirGammapPb5TeVALICETotNCollScaled->GetEY()[i]);
graphYieldDirGammapPb5TeVALICETotArNCollScaled->SetPointError(currPtBinNew, graphYieldDirGammapPb5TeVALICETotNCollScaled->GetEX()[i], graphYieldDirGammapPb5TeVALICETotNCollScaled->GetEX()[i], graphYieldDirGammapPb5TeVALICETotNCollScaled->GetY()[i]*3.6, 0);
graphYieldDirGammapPb5TeVALICETotNCollScaled->RemovePoint(i);
i--;
currPtBinNew++;
}
}
graphYieldDirGammapPb5TeVALICETotArNCollScaledXT = xTScalePhoton(graphYieldDirGammapPb5TeVALICETotArNCollScaled, 5023.);
}
graphYieldDirGammapPb5TeVALICETotNCollScaledXT = xTScalePhoton(graphYieldDirGammapPb5TeVALICETotNCollScaled, 5023.);
}
//*************************************************************************************************************************************************
//*************************************** Read A-A graphs for scaling plots from other experiments ************************************************
//*************************************************************************************************************************************************
TFile* fileOtherExperimentsAA = new TFile(fileNameExperimentAA.Data());
TGraphErrors* graphYieldDirGammaAuAu200GeVStat[5][3] = {{NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}};
TGraphErrors* graphYieldDirGammaAuAu200GeVSys[5][3] = {{NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}};
TGraphErrors* graphYieldDirGammaAuAu200GeVTot[5][3] = {{NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}};
TGraphErrors* graphYieldDirGammaAuAu200GeVStatNCollScaled[5][3] = {{NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}};
TGraphErrors* graphYieldDirGammaAuAu200GeVSysNCollScaled[5][3] = {{NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}};
TGraphErrors* graphYieldDirGammaAuAu200GeVTotNCollScaled[5][3] = {{NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}};
TGraphAsymmErrors* graphYieldDirGammaAuAu200GeVTotArNCollScaled[5][3] = {{NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}};
TGraphErrors* graphYieldDirGammaAuAu200GeVTotNCollScaledXT[5][3] = {{NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}};
TGraphAsymmErrors* graphYieldDirGammaAuAu200GeVTotArNCollScaledXT[5][3] = {{NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}, {NULL, NULL, NULL}};
for (Int_t centAu = 0; centAu < 5; centAu++){
for (Int_t meth = 0; meth < 2; meth++){
cout << Form("Gamma/graph_PHENIX_%d_AuAu200GeV_Stat_%s", meth, nameCentsAuAu200Out[centAu].Data()) << "\t" << nCollAuAu200[centAu] << endl;
graphYieldDirGammaAuAu200GeVStat[centAu][meth] = (TGraphErrors*)fileOtherExperimentsAA->Get(Form("Gamma/graph_PHENIX_%d_AuAu200GeV_Stat_%s", meth, nameCentsAuAu200Out[centAu].Data()));
graphYieldDirGammaAuAu200GeVSys[centAu][meth] = (TGraphErrors*)fileOtherExperimentsAA->Get(Form("Gamma/graph_PHENIX_%d_AuAu200GeV_Sys_%s", meth, nameCentsAuAu200Out[centAu].Data()));
graphYieldDirGammaAuAu200GeVTot[centAu][meth] = (TGraphErrors*)fileOtherExperimentsAA->Get(Form("Gamma/graph_PHENIX_%d_AuAu200GeV_Tot_%s", meth, nameCentsAuAu200Out[centAu].Data()));
if (graphYieldDirGammaAuAu200GeVStat[centAu][meth])
graphYieldDirGammaAuAu200GeVStatNCollScaled[centAu][meth] = ScaleGraph(graphYieldDirGammaAuAu200GeVStat[centAu][meth], 1./nCollAuAu200[centAu]);
if (graphYieldDirGammaAuAu200GeVSys[centAu][meth])
graphYieldDirGammaAuAu200GeVSysNCollScaled[centAu][meth] = ScaleGraph(graphYieldDirGammaAuAu200GeVSys[centAu][meth], 1./nCollAuAu200[centAu]);
if (graphYieldDirGammaAuAu200GeVTot[centAu][meth])
graphYieldDirGammaAuAu200GeVTotNCollScaled[centAu][meth] = ScaleGraph(graphYieldDirGammaAuAu200GeVTot[centAu][meth], 1./nCollAuAu200[centAu]);
if (graphYieldDirGammaAuAu200GeVTotNCollScaled[centAu][meth]){
Int_t nUpperLimits = 0;
for (Int_t i=0; i< graphYieldDirGammaAuAu200GeVTotNCollScaled[centAu][meth]->GetN(); i++){
if (graphYieldDirGammaAuAu200GeVTotNCollScaled[centAu][meth]->GetEY()[i]/graphYieldDirGammaAuAu200GeVTotNCollScaled[centAu][meth]->GetY()[i] > 0.8)
nUpperLimits++;
}
if (nUpperLimits>0){
graphYieldDirGammaAuAu200GeVTotArNCollScaled[centAu][meth] = new TGraphAsymmErrors(nUpperLimits);
Int_t currPtBinNew = 0;
for (Int_t i=0; i< graphYieldDirGammaAuAu200GeVTotNCollScaled[centAu][meth]->GetN(); i++){
if (graphYieldDirGammaAuAu200GeVTotNCollScaled[centAu][meth]->GetEY()[i]/graphYieldDirGammaAuAu200GeVTotNCollScaled[centAu][meth]->GetY()[i] > 0.8){
graphYieldDirGammaAuAu200GeVTotArNCollScaled[centAu][meth]->SetPoint(currPtBinNew, graphYieldDirGammaAuAu200GeVTotNCollScaled[centAu][meth]->GetX()[i], graphYieldDirGammaAuAu200GeVTotNCollScaled[centAu][meth]->GetY()[i]+graphYieldDirGammaAuAu200GeVTotNCollScaled[centAu][meth]->GetEY()[i]);
graphYieldDirGammaAuAu200GeVTotArNCollScaled[centAu][meth]->SetPointError(currPtBinNew, graphYieldDirGammaAuAu200GeVTotNCollScaled[centAu][meth]->GetEX()[i], graphYieldDirGammaAuAu200GeVTotNCollScaled[centAu][meth]->GetEX()[i], graphYieldDirGammaAuAu200GeVTotArNCollScaled[centAu][meth]->GetY()[currPtBinNew]*0.8, 0);
graphYieldDirGammaAuAu200GeVTotNCollScaled[centAu][meth]->RemovePoint(i);
i--;
currPtBinNew++;
}
}
graphYieldDirGammaAuAu200GeVTotArNCollScaledXT[centAu][meth] = xTScalePhoton(graphYieldDirGammaAuAu200GeVTotArNCollScaled[centAu][meth], 200.);
}
graphYieldDirGammaAuAu200GeVTotNCollScaledXT[centAu][meth] = xTScalePhoton(graphYieldDirGammaAuAu200GeVTotNCollScaled[centAu][meth], 200.);
}
}
}
TGraphAsymmErrors* graphYieldDirGammaAuAu200GeVSTARStat[5] = {NULL, NULL, NULL, NULL, NULL};
TGraphAsymmErrors* graphYieldDirGammaAuAu200GeVSTARSys[5] = {NULL, NULL, NULL, NULL, NULL};
TGraphAsymmErrors* graphYieldDirGammaAuAu200GeVSTARTot[5] = {NULL, NULL, NULL, NULL, NULL};
TGraphAsymmErrors* graphYieldDirGammaAuAu200GeVSTARStatNCollScaled[5] = {NULL, NULL, NULL, NULL, NULL};
TGraphAsymmErrors* graphYieldDirGammaAuAu200GeVSTARSysNCollScaled[5] = {NULL, NULL, NULL, NULL, NULL};
TGraphAsymmErrors* graphYieldDirGammaAuAu200GeVSTARTotNCollScaled[5] = {NULL, NULL, NULL, NULL, NULL};
TGraphAsymmErrors* graphYieldDirGammaAuAu200GeVSTARTotArNCollScaled[5] = {NULL, NULL, NULL, NULL, NULL};
TGraphAsymmErrors* graphYieldDirGammaAuAu200GeVSTARTotNCollScaledXT[5] = {NULL, NULL, NULL, NULL, NULL};
TGraphAsymmErrors* graphYieldDirGammaAuAu200GeVSTARTotArNCollScaledXT[5] = {NULL, NULL, NULL, NULL, NULL};
for (Int_t centAu = 0; centAu < 5; centAu++){
cout << Form("Gamma/graph_STAR_AuAu200GeV_Stat_%s", nameCentsAuAu200STAROut[centAu].Data()) << "\t" << nCollAuAu200STAR[centAu] << endl;
graphYieldDirGammaAuAu200GeVSTARStat[centAu] = (TGraphAsymmErrors*)fileOtherExperimentsAA->Get(Form("Gamma/graph_STAR_AuAu200GeV_Stat_%s", nameCentsAuAu200STAROut[centAu].Data()));
graphYieldDirGammaAuAu200GeVSTARSys[centAu] = (TGraphAsymmErrors*)fileOtherExperimentsAA->Get(Form("Gamma/graph_STAR_AuAu200GeV_Sys_%s", nameCentsAuAu200STAROut[centAu].Data()));
graphYieldDirGammaAuAu200GeVSTARTot[centAu] = (TGraphAsymmErrors*)fileOtherExperimentsAA->Get(Form("Gamma/graph_STAR_AuAu200GeV_Tot_%s", nameCentsAuAu200STAROut[centAu].Data()));
if (graphYieldDirGammaAuAu200GeVSTARStat[centAu]){
graphYieldDirGammaAuAu200GeVSTARStatNCollScaled[centAu] = ScaleGraph(graphYieldDirGammaAuAu200GeVSTARStat[centAu], 1./nCollAuAu200STAR[centAu]);
}
if (graphYieldDirGammaAuAu200GeVSTARSys[centAu])
graphYieldDirGammaAuAu200GeVSTARSysNCollScaled[centAu] = ScaleGraph(graphYieldDirGammaAuAu200GeVSTARSys[centAu], 1./nCollAuAu200STAR[centAu]);
if (graphYieldDirGammaAuAu200GeVSTARTot[centAu])
graphYieldDirGammaAuAu200GeVSTARTotNCollScaled[centAu] = ScaleGraph(graphYieldDirGammaAuAu200GeVSTARTot[centAu], 1./nCollAuAu200STAR[centAu]);
if (graphYieldDirGammaAuAu200GeVSTARTotNCollScaled[centAu]){
Int_t nUpperLimits = 0;
for (Int_t i=0; i< graphYieldDirGammaAuAu200GeVSTARTotNCollScaled[centAu]->GetN(); i++){
if (graphYieldDirGammaAuAu200GeVSTARTotNCollScaled[centAu]->GetEYlow()[i]/graphYieldDirGammaAuAu200GeVSTARTotNCollScaled[centAu]->GetY()[i] > 0.8)
nUpperLimits++;
}
if (nUpperLimits>0){
graphYieldDirGammaAuAu200GeVSTARTotArNCollScaled[centAu] = new TGraphAsymmErrors(nUpperLimits);
Int_t currPtBinNew = 0;
for (Int_t i=0; i< graphYieldDirGammaAuAu200GeVSTARTotNCollScaled[centAu]->GetN(); i++){
if (graphYieldDirGammaAuAu200GeVSTARTotNCollScaled[centAu]->GetEYlow()[i]/graphYieldDirGammaAuAu200GeVSTARTotNCollScaled[centAu]->GetY()[i] > 0.8){
graphYieldDirGammaAuAu200GeVSTARTotArNCollScaled[centAu]->SetPoint(currPtBinNew, graphYieldDirGammaAuAu200GeVSTARTotNCollScaled[centAu]->GetX()[i], graphYieldDirGammaAuAu200GeVSTARTotNCollScaled[centAu]->GetY()[i]+graphYieldDirGammaAuAu200GeVSTARTotNCollScaled[centAu]->GetEYhigh()[i]);
graphYieldDirGammaAuAu200GeVSTARTotArNCollScaled[centAu]->SetPointError(currPtBinNew, graphYieldDirGammaAuAu200GeVSTARTotNCollScaled[centAu]->GetEXlow()[i], graphYieldDirGammaAuAu200GeVSTARTotNCollScaled[centAu]->GetEXhigh()[i], graphYieldDirGammaAuAu200GeVSTARTotArNCollScaled[centAu]->GetY()[currPtBinNew]*0.8, 0);
graphYieldDirGammaAuAu200GeVSTARTotNCollScaled[centAu]->RemovePoint(i);