6 float yy[nn] = {3.14e-2};
8 float sy[nn] = {0.37e-2};
12 TGraphErrors*
gr =
new TGraphErrors(nn,xx,yy,sx,sy);
14 gr->SetFillStyle(3001);
21 TArrow *arx =
new TArrow(xx[0]-sx[0],yy[0],xx[0]+sx[0],yy[0],wa,
"<|>");
22 arx->SetLineWidth(iw);
23 arx->SetLineColor(icol);
24 arx->SetFillColor(icol);
27 TArrow *ary =
new TArrow(xx[0],yy[0]-sy[0],xx[0],yy[0]+sy[0],wa,
"<|>");
28 ary->SetLineWidth(iw);
29 ary->SetLineColor(icol);
30 ary->SetFillColor(icol);
38 TFile*
f =
new TFile(
"han.root");
39 TGraphErrors* gan[nxf];
41 const float dy = 0.01;
44 for(
int ix=0; ix<nxf; ix++ ) {
45 sprintf(hname,
"gan%d",ix);
46 gan[ix] = (TGraphErrors*)f->Get(hname);
49 gStyle->SetOptStat(0);
50 c3 =
new TCanvas(
"c3",
"The Ntuple canvas",200,200,500,450);
52 pad31 =
new TPad(
"pad31",
"This is pad1",0.0,0.0,1.0,1.0);
55 TH1F*
h =
new TH1F(
"h",
" ",10,0,11);
57 h->SetYTitle(
"A_{N}");
58 h->SetXTitle(
"p_{T} (GeV/c)");
65 TLatex *
tex =
new TLatex();
66 tex->SetTextSize(0.035);
68 float xfbin = 1./float(nxf);
69 for(
int i=1;
i<=4;
i++ ) {
70 gan[
i]->SetMarkerStyle(20);
71 gan[
i]->SetMarkerColor(2);
72 gan[
i]->SetLineColor(2);
74 sprintf(str,
"x_{F}=%4.2f-%4.2f",xfbin*
i,xfbin*(i+1));
75 tex->DrawLatex(8.5,dy*i-0.0003,str);
78 tex->DrawLatex(0.4,0.048,
"sPHENIX:");
79 tex->DrawLatex(0.4,0.044,
"p+p, #sqrt{s}=200 GeV");
80 tex->DrawLatex(0.4,0.040,
"L=10/pb P=0.57");
82 tex->DrawLatex(0.4,0.0025,
"Shown only points with #delta(A_{N})<1%");