{ //=========Macro generated from canvas: c1/pi0 asymmetry //========= (Sun Sep 7 19:08:58 2003) by ROOT version3.03/09 TCanvas *c1 = new TCanvas("c1", "pi0 asymmetry",0,0,500,500); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetTopMargin(0.03); c1->SetLeftMargin(0.16); c1->SetBottomMargin(0.15); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); c1->SetFrameLineWidth(3); TH1 *frame = new TH2F("frame","",10,0,8,10,-0.14,0.14); frame->SetStats(0); frame->GetXaxis()->SetTitle("p_{T} (GeV/c)"); frame->GetXaxis()->SetLabelSize(0.07); frame->GetXaxis()->SetTitleSize(0.07); frame->GetYaxis()->SetTitle("A_{LL}"); frame->GetYaxis()->SetTitleSize(0.07); frame->GetYaxis()->SetTitleOffset(1.0); frame->GetYaxis()->SetLabelSize(0.07); frame->Draw(""); TLine *line = new TLine(0,0,8,0); line->SetLineStyle(2); line->SetLineWidth(3); line->Draw(); TGraph *graph = new TGraph(18); graph->SetName("Graph"); graph->SetTitle("Graph"); graph->SetFillColor(1); graph->SetLineColor(9); graph->SetPoint(0,1.25,0.0037476); graph->SetPoint(1,1.75,0.0081476); graph->SetPoint(2,2.25,0.012401); graph->SetPoint(3,2.75,0.017173); graph->SetPoint(4,3.25,0.022222); graph->SetPoint(5,3.75,0.027531); graph->SetPoint(6,4.25,0.032779); graph->SetPoint(7,4.75,0.038205); graph->SetPoint(8,5.25,0.043123); graph->SetPoint(9,5.75,0.047598); graph->SetPoint(10,6.25,0.051865); graph->SetPoint(11,6.75,0.055613); graph->SetPoint(12,7.25,0.059122); graph->SetPoint(13,7.75,0.0624); graph->SetPoint(14,8.5,0.066218); graph->SetPoint(15,9.5,0.070313); graph->SetPoint(16,11,0.074375); graph->SetPoint(17,13.5,0.07756); graph->SetLineWidth(3); graph->Draw("c"); graph = new TGraph(18); graph->SetName("Graph"); graph->SetTitle("Graph"); graph->SetFillColor(1); graph->SetLineColor(9); graph->SetLineStyle(2); graph->SetPoint(0,1.25,0.00025129); graph->SetPoint(1,1.75,0.00065494); graph->SetPoint(2,2.25,0.0011267); graph->SetPoint(3,2.75,0.0017212); graph->SetPoint(4,3.25,0.0024351); graph->SetPoint(5,3.75,0.0032757); graph->SetPoint(6,4.25,0.0042073); graph->SetPoint(7,4.75,0.0052671); graph->SetPoint(8,5.25,0.0063754); graph->SetPoint(9,5.75,0.0074968); graph->SetPoint(10,6.25,0.0087059); graph->SetPoint(11,6.75,0.0099006); graph->SetPoint(12,7.25,0.011138); graph->SetPoint(13,7.75,0.012405); graph->SetPoint(14,8.5,0.014147); graph->SetPoint(15,9.5,0.016521); graph->SetPoint(16,11,0.019628); graph->SetPoint(17,13.5,0.024385); graph->SetLineWidth(3); graph->Draw("c"); graph = new TGraph(12); graph->SetName("Graph"); graph->SetTitle("Graph"); graph->SetFillColor(1); graph->SetLineColor(8); graph->SetPoint(0,1.5,0.00413842); graph->SetPoint(1,2.5,0.0076238); graph->SetPoint(2,3.5,0.0108021); graph->SetPoint(3,4.5,0.0136734); graph->SetPoint(4,5.5,0.0163044); graph->SetPoint(5,6.5,0.0189464); graph->SetPoint(6,7.5,0.0216236); graph->SetPoint(7,8.5,0.0243358); graph->SetPoint(8,9.5,0.0270431); graph->SetPoint(9,10.5,0.0288684); graph->SetPoint(10,11.5,0.0294525); graph->SetPoint(11,12.5,0.0287955); graph->SetLineWidth(3); graph->Draw("c"); graph = new TGraph(12); graph->SetName("Graph"); graph->SetTitle("Graph"); graph->SetFillColor(1); graph->SetLineColor(50); graph->SetPoint(0,1.5,0.00135472); graph->SetPoint(1,2.5,0.00302837); graph->SetPoint(2,3.5,0.00488628); graph->SetPoint(3,4.5,0.00692845); graph->SetPoint(4,5.5,0.00915291); graph->SetPoint(5,6.5,0.0114052); graph->SetPoint(6,7.5,0.0135883); graph->SetPoint(7,8.5,0.0157022); graph->SetPoint(8,9.5,0.017747); graph->SetPoint(9,10.5,0.0197321); graph->SetPoint(10,11.5,0.0218683); graph->SetPoint(11,12.5,0.0242417); graph->SetLineWidth(3); graph->Draw("c"); TGraphErrors *gre = new TGraphErrors(4); gre->SetName("Graph"); gre->SetTitle("Graph"); gre->SetFillColor(1); gre->SetLineColor(2); gre->SetMarkerColor(2); gre->SetMarkerStyle(20); gre->SetPoint(0,1.47,-0.044842); gre->SetPointError(0,0,0.024556); gre->SetPoint(1,2.47,-0.019014); gre->SetPointError(1,0,0.018417); gre->SetPoint(2,3.47,-0.00932); gre->SetPointError(2,0,0.035806); gre->SetPoint(3,4.47,-0.044994); gre->SetPointError(3,0,0.078397); gre->SetLineWidth(3); gre->Draw("pm"); TText *text = new TText(5.8,0.06,"GRSV-max"); text->SetTextColor(9); text->Draw(); text = new TText(5.8,-0.005,"GRSV-std"); text->SetTextColor(9); text->Draw(); text = new TText(5.8,0.028,"GS95-A"); text->SetTextColor(8); text->Draw(); text = new TText(5.8,0.011171,"AAC-NLO1"); text->SetTextColor(50); text->Draw(); gre = new TGraphErrors(1); gre->SetName("Graph"); gre->SetTitle("Graph"); gre->SetFillColor(1); gre->SetLineColor(2); gre->SetMarkerColor(2); gre->SetMarkerStyle(20); gre->SetPoint(0,0.7,0.08); gre->SetPointError(0,0,0.004); gre->Draw("pm"); TLatex *tex = new TLatex(1.0,0.075,"experimental result"); tex->SetTextColor(2); tex->Draw(); TLatex *txt1=new TLatex(0.8,0.12, "#pi^{0} A_{LL} from pp at #sqrt{s}=200 GeV"); txt1->Draw(); TLatex *txt2=new TLatex(1.5,0.1,"PHENIX Preliminary"); txt2->Draw(); TLatex *txt3=new TLatex(0.5,-0.1,"Polarization scaling error"); txt3->Draw(); TLatex *txt4=new TLatex(0.5,-0.12,"~30% is not included"); txt4->Draw(); /* TPaveText *pt = new TPaveText(0.00930233,0.918118,0.223256,0.994774,"blNDC"); pt->SetName("title"); pt->SetBorderSize(1); text = pt->AddText("A_{LL}"); pt->Draw(); */ c1->Modified(); c1->cd(); }