{ //=========Macro generated from canvas: n/near and away yields 8 to 10 GeV Triggers //========= (Wed Jan 30 16:14:18 2008) by ROOT version5.10/00 TCanvas *n = new TCanvas("n", "near and away yields 8 to 10 GeV Triggers",4,22,649,649); gStyle->SetOptStat(0); n->SetHighLightColor(0); n->Range(0,0,1,1); n->SetFillColor(0); n->SetBorderSize(2); n->SetTickx(); n->SetTicky(); // ------------>Primitives in pad: n_1 TPad *n_1 = new TPad("n_1", "near and away yields 8 to 10 GeV Triggers",0,0,1,1); n_1->Draw(); n_1->cd(); n_1->Range(2.1875,-3.84077,11.8125,-0.663599); n_1->SetFillColor(0); n_1->SetBorderMode(0); n_1->SetBorderSize(0); n_1->SetLogy(); n_1->SetTickx(); n_1->SetTicky(); TMultiGraph *multigraph = new TMultiGraph(); multigraph->SetName(""); TGraphErrors *gre = new TGraphErrors(8); gre->SetName("Graph"); gre->SetTitle("Graph"); gre->SetFillColor(1); gre->SetMarkerStyle(20); gre->SetPoint(0,3.5,0.0490027); gre->SetPointError(0,0,0.00397011); gre->SetPoint(1,4.5,0.0187381); gre->SetPointError(1,0,0.00157394); gre->SetPoint(2,5.5,0.00965474); gre->SetPointError(2,0,0.00085659); gre->SetPoint(3,6.5,0.00614751); gre->SetPointError(3,0,0.00060281); gre->SetPoint(4,7.5,0.00325109); gre->SetPointError(4,0,0.00043838); gre->SetPoint(5,8.5,0.00130043); gre->SetPointError(5,0,0.00027725); gre->SetPoint(6,9.5,0.00100488); gre->SetPointError(6,0,0.00024372); gre->SetPoint(7,10.5,0.0011231); gre->SetPointError(7,0,0.00025766); TH1 *Graph1 = new TH1F("Graph1","Graph",100,2.8,11.2); Graph1->SetMinimum(0); Graph1->SetMaximum(0.058194); Graph1->SetDirectory(0); Graph1->SetStats(0); Graph1->GetXaxis()->SetTitle("p_{T assoc} (GeV) "); gre->SetHistogram(Graph1); multigraph->Add(gre); gre = new TGraphErrors(8); gre->SetName("Graph"); gre->SetTitle("Graph"); gre->SetFillColor(1); gre->SetMarkerColor(4); gre->SetMarkerStyle(21); gre->SetPoint(0,3.5,0.0552355); gre->SetPointError(0,0,0.00524902); gre->SetPoint(1,4.5,0.0216342); gre->SetPointError(1,0,0.00207614); gre->SetPoint(2,5.5,0.0110671); gre->SetPointError(2,0,0.00115763); gre->SetPoint(3,6.5,0.00690028); gre->SetPointError(3,0,0.0008307); gre->SetPoint(4,7.5,0.00350014); gre->SetPointError(4,0,0.00059163); gre->SetPoint(5,8.5,0.00120005); gre->SetPointError(5,0,0.00034642); gre->SetPoint(6,9.5,0.00100004); gre->SetPointError(6,0,0.00031624); gre->SetPoint(7,10.5,0.00160006); gre->SetPointError(7,0,0.00040002); multigraph->Add(gre); gre = new TGraphErrors(8); gre->SetName("Graph"); gre->SetTitle("Graph"); gre->SetFillColor(1); gre->SetMarkerColor(2); gre->SetMarkerStyle(22); gre->SetPoint(0,3.5,0.068326); gre->SetPointError(0,0,0.00605749); gre->SetPoint(1,4.5,0.0212977); gre->SetPointError(1,0,0.0024102); gre->SetPoint(2,5.5,0.0109861); gre->SetPointError(2,0,0.00126019); gre->SetPoint(3,6.5,0.0050594); gre->SetPointError(3,0,0.00085519); gre->SetPoint(4,7.5,0.00289108); gre->SetPointError(4,0,0.00064647); gre->SetPoint(5,8.5,0.00144554); gre->SetPointError(5,0,0.00045712); gre->SetPoint(6,9.5,0.00101188); gre->SetPointError(6,0,0.00038245); gre->SetPoint(7,10.5,0.00043366); gre->SetPointError(7,0,0.00025038); multigraph->Add(gre); gre = new TGraphErrors(8); gre->SetName("Graph"); gre->SetTitle("Graph"); gre->SetFillColor(1); gre->SetMarkerColor(2); gre->SetMarkerStyle(26); gre->SetPoint(0,3.5,0.0625029); gre->SetPointError(0,0,0.00574316); gre->SetPoint(1,4.5,0.0215688); gre->SetPointError(1,0,0.00236807); gre->SetPoint(2,5.5,0.013221); gre->SetPointError(2,0,0.00129642); gre->SetPoint(3,6.5,0.00559348); gre->SetPointError(3,0,0.00084325); gre->SetPoint(4,7.5,0.00406799); gre->SetPointError(4,0,0.00071913); gre->SetPoint(5,8.5,0.00216112); gre->SetPointError(5,0,0.00052415); gre->SetPoint(6,9.5,0.00177974); gre->SetPointError(6,0,0.00047566); gre->SetPoint(7,10.5,0.001017); gre->SetPointError(7,0,0.00035956); multigraph->Add(gre); multigraph->Draw("AP"); multigraph->GetXaxis()->SetTitle("p_{T assoc}(GeV)"); multigraph->GetXaxis()->SetNdivisions(505); multigraph->GetYaxis()->SetTitle("Assoc. yield per trigger"); multigraph->GetYaxis()->SetNdivisions(505); multigraph->GetYaxis()->SetLabelOffset(5e-05); multigraph->GetYaxis()->SetTitleOffset(1.3); TPaveText *pt = new TPaveText(0.011236,0.963272,0.117175,0.996661,"blNDC"); pt->SetName("title"); pt->SetBorderSize(2); pt->SetLineColor(0); pt->SetTextColor(0); TText *text = pt->AddText("Away Side"); pt->Draw(); TLegend *leg = new TLegend(0.107544,0.140234,0.500803,0.352254,NULL,"brNDC"); leg->SetTextFont(62); leg->SetTextSize(0.0300501); leg->SetLineColor(0); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("Graph","AuAu Single + Multi-hadron","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(20); entry->SetMarkerSize(1); entry->SetTextAlign(12); entry->SetTextColor(1); entry=leg->AddEntry("Graph","AuAu Multi-hadron Triggers","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextAlign(12); entry->SetTextColor(1); entry=leg->AddEntry("Graph","AuAu Single-hadron Triggers","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(22); entry->SetMarkerSize(1); entry->SetTextAlign(12); entry->SetTextColor(1); entry=leg->AddEntry("Graph","AuAu Di-hadron Correlation","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(26); entry->SetMarkerSize(1); entry->SetTextAlign(12); entry->SetTextColor(1); leg->Draw(); n_1->Modified(); n->cd(); n->Modified(); n->cd(); n->SetSelected(n); }