9 #include <TGraphAsymmErrors.h>
10 #include <TGraphErrors.h>
19 #include <TVirtualFitter.h>
24 #include "SaveCanvas.C"
25 #include "sPhenixStyle.C"
32 {0.0010, 0.0013, 0.0025, 0.0035};
38 {4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
40 {-0.000500, -0.000434, -0.000339, -0.000213, -0.000054, 0.000137, 0.000357,
41 0.000603, 0.000874, 0.001166, 0.001477, 0.001804};
43 {0.000077, 0.000070, 0.000072, 0.000079, 0.000091, 0.000113, 0.000146,
44 0.000191, 0.000250, 0.000321, 0.000405, 0.000501};
51 TGraphErrors *
GraphShiftScaling(TGraphErrors *gr_src,
const double x_shift,
const double err_scaling)
55 const int npoint = gr_src->GetN();
63 for (
int i = 0;
i < npoint; ++
i)
65 const double &
x = gr_src->GetX()[
i];
68 vx[nfilled] = x + x_shift;
69 vy[nfilled] = gr_src->GetY()[
i];
70 vex[nfilled] = gr_src->GetEX()[
i];
71 vey[nfilled] = gr_src->GetEY()[
i] * err_scaling;
76 TGraphErrors *
gr =
new TGraphErrors(nfilled, vx.GetMatrixArray(), vy.GetMatrixArray(),
77 vex.GetMatrixArray(), vey.GetMatrixArray());
79 gr->SetMarkerColor(gr_src->GetMarkerColor());
80 gr->SetMarkerStyle(gr_src->GetMarkerStyle());
81 gr->SetMarkerSize(gr_src->GetMarkerSize());
82 gr->SetLineWidth(gr_src->GetLineWidth());
83 gr->SetLineColor(gr_src->GetLineColor());
92 const double ref_Lum = 100e12;
106 TGraphErrors *projectedMeasurement_ref =
109 TGraphErrors *projectedMeasurement =
111 projectedMeasurement->SetMarkerStyle(kFullCircle);
112 projectedMeasurement->SetMarkerSize(2);
113 projectedMeasurement->SetLineWidth(4);
114 projectedMeasurement->SetLineColorAlpha(kBlack, 1);
116 TF1 *zeroLine =
new TF1(
"zeroLine",
"0", 0, 20);
117 zeroLine->SetLineColor(kBlack);
120 TFile *trigluonFile = TFile::Open(
"gggContribution.root");
122 TGraphErrors *ggg1 = (TGraphErrors *) trigluonFile->Get(
"model1");
123 ggg1->SetFillStyle(3005);
124 ggg1->SetFillColor(kRed);
125 ggg1->SetLineColor(kWhite);
126 TGraphErrors *ggg2 = (TGraphErrors *) trigluonFile->Get(
"model2");
127 ggg2->SetFillStyle(3004);
128 ggg2->SetFillColor(kBlue);
129 ggg2->SetLineColor(kWhite);
133 qgq->SetFillColor(kGreen + 3);
134 qgq->SetFillStyle(3003);
135 qgq->SetLineColor(kGreen + 2);
136 qgq->SetLineWidth(5);
138 TCanvas *c1 =
new TCanvas(
"AN_dp_sPHENIX",
"AN_dp_sPHENIX", 1100, 800);
143 p = (TPad *) c1->cd(idx++);
146 p->DrawFrame(4.69, -0.015, 12.6, 0.015)->SetTitle(
";#it{p}_{T} [GeV];A_{N}");
160 projectedMeasurement->Draw(
"P");
161 zeroLine->Draw(
"same");
171 TLegend *
leg =
new TLegend(.2, .75, .83, .9);
172 leg->SetFillStyle(0);
174 leg->AddEntry(
"", Form(
"#it{#bf{sPHENIX}} Projection, Years 1-3"),
"");
175 leg->AddEntry(
"", Form(
"%.0f pb^{-1} samp. #it{p}^{#uparrow}+#it{p}#rightarrow #gamma + X, P=%.2f",
pp_rec_3year / 1e12,
pp_beam_pol),
"");
178 leg =
new TLegend(0.18, 0.18, 0.5, 0.41);
179 leg->AddEntry(qgq,
"qgq Contribution (D.Pitonyak)",
"l");
180 leg->AddEntry(ggg1,
"Trigluon Contribution Model 1 (S.Yoshida)",
"f");
181 leg->AddEntry(ggg2,
"Trigluon Contribution Model 2 (S.Yoshida)",
"f");
186 SaveCanvas(c1, TString(c1->GetName()), kTRUE);
187 c1->SaveAs(
"AN_dp_sPHENIX.pdf");