{ //=========Macro generated from canvas: n/away yields //========= (Wed Jan 30 15:33:30 2008) by ROOT version5.10/00 TCanvas *n = new TCanvas("n", "away yields",4,22,649,649); 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.86655,-0.1875,12.1254,1.68437); n_1->SetFillColor(0); n_1->SetBorderMode(0); n_1->SetBorderSize(2); n_1->SetFrameLineWidth(3); n_1->SetFrameBorderMode(0); TGraphErrors *gre = new TGraphErrors(9); gre->SetName("Graph"); gre->SetTitle(""); gre->SetFillColor(1); gre->SetMarkerColor(2); gre->SetMarkerStyle(21); 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 *Graph1 = new TH1F("Graph1","",100,0,11.55); Graph1->SetMinimum(0); Graph1->SetMaximum(1.5); Graph1->SetDirectory(0); Graph1->SetStats(0); Graph1->GetXaxis()->SetTitle("p_{T}(assoc)"); Graph1->GetXaxis()->SetRange(26,96); Graph1->GetXaxis()->SetNdivisions(505); Graph1->GetYaxis()->SetTitle("Ratio"); Graph1->GetYaxis()->CenterTitle(true); Graph1->GetYaxis()->SetNdivisions(505); Graph1->GetYaxis()->SetTitleSize(0.05); gre->SetHistogram(Graph1); gre->Draw("ap"); TLine *line = new TLine(2.8875,1,11.0386,1); line->SetLineStyle(5); line->SetLineWidth(5); line->Draw(); n_1->Modified(); n->cd(); n->Modified(); n->cd(); n->SetSelected(n); }