{ //=========Macro generated from canvas: n/near and away yields 8 to 10 GeV Triggers //========= (Wed Jan 30 16:01:32 2008) by ROOT version5.10/00 TCanvas *n = new TCanvas("n", "near and away yields 8 to 10 GeV Triggers",112,103,647,647); 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.7932,11.8125,-0.710521); 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(""); multigraph->SetTitle(""); 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 *Graph111 = new TH1F("Graph111","Graph",100,2.8,11.2); Graph111->SetMinimum(0); Graph111->SetMaximum(0.058194); Graph111->SetDirectory(0); Graph111->SetStats(0); Graph111->GetXaxis()->SetTitle("p_{T assoc} (GeV) "); gre->SetHistogram(Graph111); multigraph->Add(gre); // multigraph->Add(graph,""); gre = new TGraphErrors(0); gre->SetName("Graph"); gre->SetTitle("Graph"); gre->SetFillColor(1); gre->SetMarkerColor(4); gre->SetMarkerStyle(21); multigraph->Add(gre); // multigraph->Add(graph,""); gre = new TGraphErrors(0); gre->SetName("Graph"); gre->SetTitle("Graph"); gre->SetFillColor(1); gre->SetMarkerColor(2); gre->SetMarkerStyle(22); multigraph->Add(gre); // multigraph->Add(graph,""); 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->Add(graph,""); 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); TLegend *leg = new TLegend(0.130435,0.147404,0.568438,0.242881,NULL,"brNDC"); leg->SetTextFont(62); leg->SetTextSize(0.0301003); leg->SetLineColor(0); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("NULL","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("NULL","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); }