File indexing completed on 2025-08-05 08:10:55
0001 void sphenix_han()
0002 {
0003
0004
0005 TCanvas *sphenix_han = new TCanvas("sphenix_han", "sphenix_han",621,585,1100,800);
0006 gStyle->SetOptStat(0);
0007 gStyle->SetOptTitle(0);
0008 sphenix_han->Range(0,0,1,1);
0009 sphenix_han->SetFillColor(0);
0010 sphenix_han->SetBorderMode(0);
0011 sphenix_han->SetBorderSize(2);
0012 sphenix_han->SetTickx(1);
0013 sphenix_han->SetTicky(1);
0014 sphenix_han->SetLeftMargin(0.16);
0015 sphenix_han->SetRightMargin(0.05);
0016 sphenix_han->SetTopMargin(0.05);
0017 sphenix_han->SetBottomMargin(0.16);
0018 sphenix_han->SetFrameBorderMode(0);
0019
0020
0021 TPad *sphenix_han_1 = new TPad("sphenix_han_1", "sphenix_han_1",0.01,0.01,0.99,0.99);
0022 sphenix_han_1->Draw();
0023 sphenix_han_1->cd();
0024 sphenix_han_1->Range(-2.43038,-0.01316456,12.75949,0.06911392);
0025 sphenix_han_1->SetFillColor(0);
0026 sphenix_han_1->SetBorderMode(0);
0027 sphenix_han_1->SetBorderSize(2);
0028 sphenix_han_1->SetTickx(1);
0029 sphenix_han_1->SetTicky(1);
0030 sphenix_han_1->SetLeftMargin(0.16);
0031 sphenix_han_1->SetRightMargin(0.05);
0032 sphenix_han_1->SetTopMargin(0.05);
0033 sphenix_han_1->SetBottomMargin(0.16);
0034 sphenix_han_1->SetFrameBorderMode(0);
0035 sphenix_han_1->SetFrameBorderMode(0);
0036
0037 TH1F *hframe__1 = new TH1F("hframe__1","",1000,0,12);
0038 hframe__1->SetMinimum(-0);
0039 hframe__1->SetMaximum(0.065);
0040 hframe__1->SetDirectory(0);
0041 hframe__1->SetStats(0);
0042 hframe__1->SetLineWidth(2);
0043 hframe__1->SetMarkerStyle(20);
0044 hframe__1->SetMarkerSize(1.2);
0045 hframe__1->GetXaxis()->SetTitle("#it{p}_{T} [GeV]");
0046 hframe__1->GetXaxis()->SetLabelFont(42);
0047 hframe__1->GetXaxis()->SetLabelSize(0.05);
0048 hframe__1->GetXaxis()->SetTitleSize(0.05);
0049 hframe__1->GetXaxis()->SetTitleOffset(1.4);
0050 hframe__1->GetXaxis()->SetTitleFont(42);
0051 hframe__1->GetYaxis()->SetTitle("A_{N}");
0052 hframe__1->GetYaxis()->SetLabelFont(42);
0053 hframe__1->GetYaxis()->SetLabelSize(0.05);
0054 hframe__1->GetYaxis()->SetTitleSize(0.05);
0055 hframe__1->GetYaxis()->SetTitleOffset(1.4);
0056 hframe__1->GetYaxis()->SetTitleFont(42);
0057 hframe__1->GetZaxis()->SetLabelFont(42);
0058 hframe__1->GetZaxis()->SetLabelSize(0.05);
0059 hframe__1->GetZaxis()->SetTitleSize(0.05);
0060 hframe__1->GetZaxis()->SetTitleOffset(1);
0061 hframe__1->GetZaxis()->SetTitleFont(42);
0062 hframe__1->Draw(" ");
0063 TArrow *arrow = new TArrow(1.8,0.025,7,0.025,0.025,"<|>");
0064 arrow->SetFillColor(29);
0065 arrow->SetFillStyle(1001);
0066 arrow->SetLineColor(29);
0067 arrow->SetLineWidth(10);
0068 arrow->Draw();
0069 arrow = new TArrow(4.4,0.0213,4.4,0.0287,0.025,"<|>");
0070 arrow->SetFillColor(29);
0071 arrow->SetFillStyle(1001);
0072 arrow->SetLineColor(29);
0073 arrow->SetLineWidth(10);
0074 arrow->Draw();
0075
0076 Double_t Graph0_fx1001[5] = {
0077 1,
0078 3,
0079 5,
0080 7,
0081 9};
0082 Double_t Graph0_fy1001[5] = {
0083 0.01,
0084 0.01,
0085 0.01,
0086 0.01,
0087 0.01};
0088 Double_t Graph0_fex1001[5] = {
0089 0,
0090 0,
0091 0,
0092 0,
0093 0};
0094 Double_t Graph0_fey1001[5] = {
0095 0.0001695041,
0096 0.0001827427,
0097 0.0008802428,
0098 0.003831069,
0099 0.01164666};
0100 TGraphErrors *gre = new TGraphErrors(5,Graph0_fx1001,Graph0_fy1001,Graph0_fex1001,Graph0_fey1001);
0101 gre->SetName("Graph0");
0102 gre->SetTitle("Graph");
0103 gre->SetFillStyle(1000);
0104
0105 Int_t ci;
0106 TColor *color;
0107 ci = TColor::GetColor("#cc0000");
0108 gre->SetLineColor(ci);
0109 gre->SetLineWidth(4);
0110
0111 ci = TColor::GetColor("#cc0000");
0112 gre->SetMarkerColor(ci);
0113 gre->SetMarkerStyle(20);
0114 gre->SetMarkerSize(2);
0115
0116 TH1F *Graph_Graph01001 = new TH1F("Graph_Graph01001","Graph",100,0.2,9.8);
0117 Graph_Graph01001->SetMinimum(-0.003975996);
0118 Graph_Graph01001->SetMaximum(0.023976);
0119 Graph_Graph01001->SetDirectory(0);
0120 Graph_Graph01001->SetStats(0);
0121 Graph_Graph01001->SetLineWidth(2);
0122 Graph_Graph01001->SetMarkerStyle(20);
0123 Graph_Graph01001->SetMarkerSize(1.2);
0124 Graph_Graph01001->GetXaxis()->SetLabelFont(42);
0125 Graph_Graph01001->GetXaxis()->SetLabelSize(0.05);
0126 Graph_Graph01001->GetXaxis()->SetTitleSize(0.05);
0127 Graph_Graph01001->GetXaxis()->SetTitleOffset(1.4);
0128 Graph_Graph01001->GetXaxis()->SetTitleFont(42);
0129 Graph_Graph01001->GetYaxis()->SetLabelFont(42);
0130 Graph_Graph01001->GetYaxis()->SetLabelSize(0.05);
0131 Graph_Graph01001->GetYaxis()->SetTitleSize(0.05);
0132 Graph_Graph01001->GetYaxis()->SetTitleOffset(1.4);
0133 Graph_Graph01001->GetYaxis()->SetTitleFont(42);
0134 Graph_Graph01001->GetZaxis()->SetLabelFont(42);
0135 Graph_Graph01001->GetZaxis()->SetLabelSize(0.05);
0136 Graph_Graph01001->GetZaxis()->SetTitleSize(0.05);
0137 Graph_Graph01001->GetZaxis()->SetTitleOffset(1);
0138 Graph_Graph01001->GetZaxis()->SetTitleFont(42);
0139 gre->SetHistogram(Graph_Graph01001);
0140
0141 gre->Draw("p");
0142 TLatex * tex = new TLatex(9.5,0.0097,"x_{F}=0.05-0.10");
0143 tex->SetTextFont(42);
0144 tex->SetTextSize(0.035);
0145 tex->SetLineWidth(2);
0146 tex->Draw();
0147
0148 Double_t Graph1_fx1002[4] = {
0149 1,
0150 3,
0151 5,
0152 7};
0153 Double_t Graph1_fy1002[4] = {
0154 0.02,
0155 0.02,
0156 0.02,
0157 0.02};
0158 Double_t Graph1_fex1002[4] = {
0159 0,
0160 0,
0161 0,
0162 0};
0163 Double_t Graph1_fey1002[4] = {
0164 0.006527352,
0165 0.0008190469,
0166 0.001524963,
0167 0.005482558};
0168 gre = new TGraphErrors(4,Graph1_fx1002,Graph1_fy1002,Graph1_fex1002,Graph1_fey1002);
0169 gre->SetName("Graph1");
0170 gre->SetTitle("Graph");
0171 gre->SetFillStyle(1000);
0172
0173 ci = TColor::GetColor("#cc0000");
0174 gre->SetLineColor(ci);
0175 gre->SetLineWidth(4);
0176
0177 ci = TColor::GetColor("#cc0000");
0178 gre->SetMarkerColor(ci);
0179 gre->SetMarkerStyle(20);
0180 gre->SetMarkerSize(2);
0181
0182 TH1F *Graph_Graph11002 = new TH1F("Graph_Graph11002","Graph",100,0.4,7.6);
0183 Graph_Graph11002->SetMinimum(0.01216718);
0184 Graph_Graph11002->SetMaximum(0.02783282);
0185 Graph_Graph11002->SetDirectory(0);
0186 Graph_Graph11002->SetStats(0);
0187 Graph_Graph11002->SetLineWidth(2);
0188 Graph_Graph11002->SetMarkerStyle(20);
0189 Graph_Graph11002->SetMarkerSize(1.2);
0190 Graph_Graph11002->GetXaxis()->SetLabelFont(42);
0191 Graph_Graph11002->GetXaxis()->SetLabelSize(0.05);
0192 Graph_Graph11002->GetXaxis()->SetTitleSize(0.05);
0193 Graph_Graph11002->GetXaxis()->SetTitleOffset(1.4);
0194 Graph_Graph11002->GetXaxis()->SetTitleFont(42);
0195 Graph_Graph11002->GetYaxis()->SetLabelFont(42);
0196 Graph_Graph11002->GetYaxis()->SetLabelSize(0.05);
0197 Graph_Graph11002->GetYaxis()->SetTitleSize(0.05);
0198 Graph_Graph11002->GetYaxis()->SetTitleOffset(1.4);
0199 Graph_Graph11002->GetYaxis()->SetTitleFont(42);
0200 Graph_Graph11002->GetZaxis()->SetLabelFont(42);
0201 Graph_Graph11002->GetZaxis()->SetLabelSize(0.05);
0202 Graph_Graph11002->GetZaxis()->SetTitleSize(0.05);
0203 Graph_Graph11002->GetZaxis()->SetTitleOffset(1);
0204 Graph_Graph11002->GetZaxis()->SetTitleFont(42);
0205 gre->SetHistogram(Graph_Graph11002);
0206
0207 gre->Draw("p");
0208 tex = new TLatex(9.5,0.0197,"x_{F}=0.10-0.15");
0209 tex->SetTextFont(42);
0210 tex->SetTextSize(0.035);
0211 tex->SetLineWidth(2);
0212 tex->Draw();
0213
0214 Double_t Graph2_fx1003[3] = {
0215 3,
0216 5,
0217 7};
0218 Double_t Graph2_fy1003[3] = {
0219 0.03,
0220 0.03,
0221 0.03};
0222 Double_t Graph2_fex1003[3] = {
0223 0,
0224 0,
0225 0};
0226 Double_t Graph2_fey1003[3] = {
0227 0.004575613,
0228 0.003459797,
0229 0.008584451};
0230 gre = new TGraphErrors(3,Graph2_fx1003,Graph2_fy1003,Graph2_fex1003,Graph2_fey1003);
0231 gre->SetName("Graph2");
0232 gre->SetTitle("Graph");
0233 gre->SetFillStyle(1000);
0234
0235 ci = TColor::GetColor("#cc0000");
0236 gre->SetLineColor(ci);
0237 gre->SetLineWidth(4);
0238
0239 ci = TColor::GetColor("#cc0000");
0240 gre->SetMarkerColor(ci);
0241 gre->SetMarkerStyle(20);
0242 gre->SetMarkerSize(2);
0243
0244 TH1F *Graph_Graph21003 = new TH1F("Graph_Graph21003","Graph",100,2.6,7.4);
0245 Graph_Graph21003->SetMinimum(0.01969866);
0246 Graph_Graph21003->SetMaximum(0.04030134);
0247 Graph_Graph21003->SetDirectory(0);
0248 Graph_Graph21003->SetStats(0);
0249 Graph_Graph21003->SetLineWidth(2);
0250 Graph_Graph21003->SetMarkerStyle(20);
0251 Graph_Graph21003->SetMarkerSize(1.2);
0252 Graph_Graph21003->GetXaxis()->SetLabelFont(42);
0253 Graph_Graph21003->GetXaxis()->SetLabelSize(0.05);
0254 Graph_Graph21003->GetXaxis()->SetTitleSize(0.05);
0255 Graph_Graph21003->GetXaxis()->SetTitleOffset(1.4);
0256 Graph_Graph21003->GetXaxis()->SetTitleFont(42);
0257 Graph_Graph21003->GetYaxis()->SetLabelFont(42);
0258 Graph_Graph21003->GetYaxis()->SetLabelSize(0.05);
0259 Graph_Graph21003->GetYaxis()->SetTitleSize(0.05);
0260 Graph_Graph21003->GetYaxis()->SetTitleOffset(1.4);
0261 Graph_Graph21003->GetYaxis()->SetTitleFont(42);
0262 Graph_Graph21003->GetZaxis()->SetLabelFont(42);
0263 Graph_Graph21003->GetZaxis()->SetLabelSize(0.05);
0264 Graph_Graph21003->GetZaxis()->SetTitleSize(0.05);
0265 Graph_Graph21003->GetZaxis()->SetTitleOffset(1);
0266 Graph_Graph21003->GetZaxis()->SetTitleFont(42);
0267 gre->SetHistogram(Graph_Graph21003);
0268
0269 gre->Draw("p");
0270 tex = new TLatex(9.5,0.0297,"x_{F}=0.15-0.20");
0271 tex->SetTextFont(42);
0272 tex->SetTextSize(0.035);
0273 tex->SetLineWidth(2);
0274 tex->Draw();
0275
0276 Double_t Graph3_fx1004[1] = {
0277 5};
0278 Double_t Graph3_fy1004[1] = {
0279 0.04};
0280 Double_t Graph3_fex1004[1] = {
0281 0};
0282 Double_t Graph3_fey1004[1] = {
0283 0.01008074};
0284 gre = new TGraphErrors(1,Graph3_fx1004,Graph3_fy1004,Graph3_fex1004,Graph3_fey1004);
0285 gre->SetName("Graph3");
0286 gre->SetTitle("Graph");
0287 gre->SetFillStyle(1000);
0288
0289 ci = TColor::GetColor("#cc0000");
0290 gre->SetLineColor(ci);
0291 gre->SetLineWidth(4);
0292
0293 ci = TColor::GetColor("#cc0000");
0294 gre->SetMarkerColor(ci);
0295 gre->SetMarkerStyle(20);
0296 gre->SetMarkerSize(2);
0297
0298 TH1F *Graph_Graph31004 = new TH1F("Graph_Graph31004","Graph",100,4.9,6.1);
0299 Graph_Graph31004->SetMinimum(0.02790311);
0300 Graph_Graph31004->SetMaximum(0.05209689);
0301 Graph_Graph31004->SetDirectory(0);
0302 Graph_Graph31004->SetStats(0);
0303 Graph_Graph31004->SetLineWidth(2);
0304 Graph_Graph31004->SetMarkerStyle(20);
0305 Graph_Graph31004->SetMarkerSize(1.2);
0306 Graph_Graph31004->GetXaxis()->SetLabelFont(42);
0307 Graph_Graph31004->GetXaxis()->SetLabelSize(0.05);
0308 Graph_Graph31004->GetXaxis()->SetTitleSize(0.05);
0309 Graph_Graph31004->GetXaxis()->SetTitleOffset(1.4);
0310 Graph_Graph31004->GetXaxis()->SetTitleFont(42);
0311 Graph_Graph31004->GetYaxis()->SetLabelFont(42);
0312 Graph_Graph31004->GetYaxis()->SetLabelSize(0.05);
0313 Graph_Graph31004->GetYaxis()->SetTitleSize(0.05);
0314 Graph_Graph31004->GetYaxis()->SetTitleOffset(1.4);
0315 Graph_Graph31004->GetYaxis()->SetTitleFont(42);
0316 Graph_Graph31004->GetZaxis()->SetLabelFont(42);
0317 Graph_Graph31004->GetZaxis()->SetLabelSize(0.05);
0318 Graph_Graph31004->GetZaxis()->SetTitleSize(0.05);
0319 Graph_Graph31004->GetZaxis()->SetTitleOffset(1);
0320 Graph_Graph31004->GetZaxis()->SetTitleFont(42);
0321 gre->SetHistogram(Graph_Graph31004);
0322
0323 gre->Draw("p");
0324 tex = new TLatex(9.5,0.0397,"x_{F}=0.20-0.25");
0325 tex->SetTextFont(42);
0326 tex->SetTextSize(0.035);
0327 tex->SetLineWidth(2);
0328 tex->Draw();
0329 tex = new TLatex(0.4,0.0025,"Shown only points with #delta(A_{N}) <~ 1%");
0330 tex->SetTextFont(42);
0331 tex->SetTextSize(0.035);
0332 tex->SetLineWidth(2);
0333 tex->Draw();
0334
0335 TLegend *leg = new TLegend(0,0.75,0.83,0.9,NULL,"brNDC");
0336 leg->SetBorderSize(0);
0337 leg->SetLineColor(1);
0338 leg->SetLineStyle(1);
0339 leg->SetLineWidth(1);
0340 leg->SetFillColor(0);
0341 leg->SetFillStyle(0);
0342 TLegendEntry *entry=leg->AddEntry("","#it{#bf{sPHENIX}} Projection, Years 1-3","");
0343 entry->SetLineColor(1);
0344 entry->SetLineStyle(1);
0345 entry->SetLineWidth(1);
0346 entry->SetMarkerColor(1);
0347 entry->SetMarkerStyle(21);
0348 entry->SetMarkerSize(1);
0349 entry->SetTextFont(42);
0350 entry=leg->AddEntry("","6.2 pb^{-1} str. #it{p}^{#uparrow}+#it{p}#rightarrow h^{+} + X, P=0.57","");
0351 entry->SetLineColor(1);
0352 entry->SetLineStyle(1);
0353 entry->SetLineWidth(1);
0354 entry->SetMarkerColor(1);
0355 entry->SetMarkerStyle(21);
0356 entry->SetMarkerSize(1);
0357 entry->SetTextFont(42);
0358 leg->Draw();
0359 sphenix_han_1->Modified();
0360 sphenix_han->cd();
0361 sphenix_han->Modified();
0362 sphenix_han->cd();
0363 sphenix_han->SetSelected(sphenix_han);
0364 }