{ //=========Macro generated from canvas: n/away yields //========= (Thu Jan 31 15:36:04 2008) by ROOT version5.10/00 TCanvas *n = new TCanvas("n", "away yields",547,59,498,498); n->SetHighLightColor(0); n->Range(0,0,1,1); n->SetFillColor(0); n->SetBorderSize(2); n->SetGridx(); n->SetGridy(); // ------------>Primitives in pad: n_1 TPad *n_1 = new TPad("n_1", "away yields",0,0,1,1); n_1->Draw(); n_1->cd(); n_1->Range(1.95043,-0.382243,11.9935,3.38202); n_1->SetFillColor(0); n_1->SetBorderSize(2); n_1->SetFrameBorderMode(0); TMultiGraph *multigraph = new TMultiGraph(); multigraph->SetName(""); multigraph->SetTitle("STAR Preliminary"); TGraphErrors *gre = new TGraphErrors(9); gre->SetName("Graph"); gre->SetTitle("Graph"); gre->SetFillColor(1); gre->SetMarkerColor(2); gre->SetMarkerStyle(22); gre->SetMarkerSize(2); gre->SetPoint(0,3.5,0.784007); gre->SetPointError(0,0,0.0960434); gre->SetPoint(1,4.5,0.868759); gre->SetPointError(1,0,0.120095); gre->SetPoint(2,5.5,0.73026); gre->SetPointError(2,0,0.0965684); gre->SetPoint(3,6.5,1.09905); gre->SetPointError(3,0,0.197654); gre->SetPoint(4,7.5,0.799188); gre->SetPointError(4,0,0.177687); gre->SetPoint(5,8.5,0.601739); gre->SetPointError(5,0,0.194314); gre->SetPoint(6,9.5,0.564622); gre->SetPointError(6,0,0.203776); gre->SetPoint(7,10.5,1.10433); gre->SetPointError(7,0,0.465432); gre->SetPoint(8,0,0); gre->SetPointError(8,0,0); TH1 *Graph11 = new TH1F("Graph11","Graph",100,0,11.55); Graph11->SetMinimum(0); Graph11->SetMaximum(1.5); Graph11->SetDirectory(0); Graph11->SetStats(0); Graph11->GetXaxis()->SetTitle("p_{T}(assoc)"); Graph11->GetXaxis()->SetRange(26,96); Graph11->GetXaxis()->SetNdivisions(505); Graph11->GetYaxis()->SetNdivisions(505); gre->SetHistogram(Graph11); multigraph->Add(gre); gre = new TGraphErrors(9); gre->SetName("Graph"); gre->SetTitle("Graph"); gre->SetFillColor(1); gre->SetMarkerColor(4); gre->SetMarkerStyle(21); gre->SetMarkerSize(2); gre->SetPoint(0,3.5,0.741402); gre->SetPointError(0,0,0.0889702); gre->SetPoint(1,4.5,0.743594); gre->SetPointError(1,0,0.10041); gre->SetPoint(2,5.5,0.658354); gre->SetPointError(2,0,0.108438); gre->SetPoint(3,6.5,1.19528); gre->SetPointError(3,0,0.296622); gre->SetPoint(4,7.5,1.06033); gre->SetPointError(4,0,0.280536); gre->SetPoint(5,8.5,0.908854); gre->SetPointError(5,0,0.294168); gre->SetPoint(6,9.5,2.5448); gre->SetPointError(6,0,1.58697); gre->SetPoint(7,10.5,1.09063); gre->SetPointError(7,0,0.485806); gre->SetPoint(8,0,0); gre->SetPointError(8,0,0); multigraph->Add(gre); multigraph->Draw("AP"); multigraph->GetXaxis()->SetTitle("p_{T assoc} (GeV/c)"); multigraph->GetXaxis()->SetRange(31,100); multigraph->GetXaxis()->SetNdivisions(505); multigraph->GetXaxis()->SetLabelOffset(0.001); multigraph->GetXaxis()->SetLabelSize(0.05); multigraph->GetXaxis()->SetTitleOffset(1.04); multigraph->GetYaxis()->SetTitle("Ratio cluster/di-hadron analysis"); multigraph->GetYaxis()->SetNdivisions(505); multigraph->GetYaxis()->SetLabelSize(0.05); multigraph->GetYaxis()->SetTitleSize(0.05); multigraph->GetYaxis()->SetTitleOffset(0.75); TPaveText *pt = new TPaveText(0.00628931,0.942605,0.0649895,0.986755,"blNDC"); pt->SetName("title"); pt->SetBorderSize(2); pt->SetLineColor(0); pt->Draw(); TLine *line = new TLine(2.9,1,11.05,1); line->Draw(); TLegend *leg = new TLegend(0.1174,0.609272,0.496855,0.807947,NULL,"brNDC"); leg->SetTextSize(0.0353201); leg->SetLineColor(0); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("NULL","10SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(22); entry->SetMarkerSize(2); entry->SetTextAlign(12); entry->SetTextColor(1); entry=leg->AddEntry("NULL","12SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(21); entry->SetMarkerSize(2); entry->SetTextAlign(12); entry->SetTextColor(1); leg->Draw(); pt = new TPaveText(0.109015,0.834437,0.498952,0.889625,"blNDC"); pt->SetName("title"); pt->SetBorderSize(2); pt->SetLineColor(0); pt->SetTextColor(15); TText *text = pt->AddText("STAR Preliminary"); pt->Draw(); n_1->Modified(); n->cd(); n->Modified(); n->cd(); n->SetSelected(n); }