{ //=========Macro generated from canvas: c1/c1 //========= (Mon Jun 25 17:20:33 2007) by ROOT version4.04/02 TCanvas *c1 = new TCanvas("c1", "c1",569,22,450,450); c1->Range(0.0125,-6.70732e-40,0.6375,6.03659e-39); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetTickx(); c1->SetTicky(); c1->SetLeftMargin(0.14); c1->SetRightMargin(0.06); c1->SetTopMargin(0.08); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); TH1 *ehst_0_0 = new TH1D("ehst_0_0","",7,0,0.7); ehst_0_0->SetBinContent(1,3.32905e-39); ehst_0_0->SetBinContent(2,3.93372e-39); ehst_0_0->SetBinContent(3,2.7199e-39); ehst_0_0->SetBinContent(4,1.15233e-39); ehst_0_0->SetBinContent(5,6.33436e-40); ehst_0_0->SetBinContent(6,2.65073e-40); ehst_0_0->SetBinError(1,1.02149e-39); ehst_0_0->SetBinError(2,1.14361e-40); ehst_0_0->SetBinError(3,9.40954e-41); ehst_0_0->SetBinError(4,6.82097e-41); ehst_0_0->SetBinError(5,6.67355e-41); ehst_0_0->SetBinError(6,1.33677e-40); ehst_0_0->SetBinError(7,2.90359e-39); ehst_0_0->SetMinimum(0); ehst_0_0->SetMaximum(5.5e-39); ehst_0_0->SetEntries(3721.95); ehst_0_0->SetStats(0); ehst_0_0->SetLineWidth(2); ehst_0_0->SetMarkerStyle(22); ehst_0_0->GetXaxis()->SetTitle("KE Estimator [GeV] (= Q^{2}/2)"); ehst_0_0->GetXaxis()->SetRange(2,6); ehst_0_0->GetXaxis()->CenterTitle(true); ehst_0_0->GetXaxis()->SetNdivisions(508); ehst_0_0->GetXaxis()->SetLabelFont(52); ehst_0_0->GetXaxis()->SetLabelSize(0.045); ehst_0_0->GetXaxis()->SetTitleSize(0.055); ehst_0_0->GetXaxis()->SetTitleOffset(0.78); ehst_0_0->GetXaxis()->SetTitleFont(42); ehst_0_0->GetYaxis()->SetTitle("d#sigma / dKE"); ehst_0_0->GetYaxis()->CenterTitle(true); ehst_0_0->GetYaxis()->SetLabelFont(52); ehst_0_0->GetYaxis()->SetLabelSize(0.045); ehst_0_0->GetYaxis()->SetTitleSize(0.055); ehst_0_0->GetYaxis()->SetTitleOffset(1.31); ehst_0_0->GetYaxis()->SetTitleFont(42); ehst_0_0->GetZaxis()->SetLabelFont(52); ehst_0_0->GetZaxis()->SetLabelSize(0.045); ehst_0_0->GetZaxis()->SetTitleFont(42); ehst_0_0->Draw(""); TH1 *bm_err = new TH1D("bm_err","",7,0,0.7); bm_err->SetBinContent(1,3.32905e-39); bm_err->SetBinContent(2,3.93372e-39); bm_err->SetBinContent(3,2.7199e-39); bm_err->SetBinContent(4,1.15233e-39); bm_err->SetBinContent(5,6.33436e-40); bm_err->SetBinContent(6,2.65073e-40); bm_err->SetBinError(1,1.5008e-39); bm_err->SetBinError(2,8.06787e-40); bm_err->SetBinError(3,7.27395e-40); bm_err->SetBinError(4,4.05924e-40); bm_err->SetBinError(5,2.35045e-40); bm_err->SetBinError(6,1.29419e-40); bm_err->SetMinimum(-1.26821e-39); bm_err->SetMaximum(7.30729e-39); bm_err->SetEntries(3721.95); bm_err->SetStats(0); bm_err->SetFillColor(214); bm_err->SetLineColor(0); bm_err->SetLineWidth(2); bm_err->SetMarkerStyle(0); bm_err->GetXaxis()->SetLabelFont(52); bm_err->GetXaxis()->SetLabelSize(0.045); bm_err->GetXaxis()->SetTitleSize(0.055); bm_err->GetXaxis()->SetTitleOffset(0.78); bm_err->GetXaxis()->SetTitleFont(42); bm_err->GetYaxis()->SetLabelFont(52); bm_err->GetYaxis()->SetLabelSize(0.045); bm_err->GetYaxis()->SetTitleSize(0.055); bm_err->GetYaxis()->SetTitleOffset(1.31); bm_err->GetYaxis()->SetTitleFont(42); bm_err->GetZaxis()->SetLabelFont(52); bm_err->GetZaxis()->SetLabelSize(0.045); bm_err->GetZaxis()->SetTitleFont(42); bm_err->Draw("e2same"); TH1 *xs_err = new TH1D("xs_err","",7,0,0.7); xs_err->SetBinContent(1,3.32905e-39); xs_err->SetBinContent(2,3.93372e-39); xs_err->SetBinContent(3,2.7199e-39); xs_err->SetBinContent(4,1.15233e-39); xs_err->SetBinContent(5,6.33436e-40); xs_err->SetBinContent(6,2.65073e-40); xs_err->SetBinError(1,1.06578e-39); xs_err->SetBinError(2,4.27105e-40); xs_err->SetBinError(3,5.98316e-40); xs_err->SetBinError(4,3.59781e-40); xs_err->SetBinError(5,2.09371e-40); xs_err->SetBinError(6,8.97641e-41); xs_err->SetMinimum(-1.26821e-39); xs_err->SetMaximum(7.30729e-39); xs_err->SetEntries(3721.95); xs_err->SetStats(0); xs_err->SetFillColor(66); xs_err->SetLineColor(0); xs_err->SetLineWidth(2); xs_err->SetMarkerStyle(0); xs_err->GetXaxis()->SetLabelFont(52); xs_err->GetXaxis()->SetLabelSize(0.045); xs_err->GetXaxis()->SetTitleSize(0.055); xs_err->GetXaxis()->SetTitleOffset(0.78); xs_err->GetXaxis()->SetTitleFont(42); xs_err->GetYaxis()->SetLabelFont(52); xs_err->GetYaxis()->SetLabelSize(0.045); xs_err->GetYaxis()->SetTitleSize(0.055); xs_err->GetYaxis()->SetTitleOffset(1.31); xs_err->GetYaxis()->SetTitleFont(42); xs_err->GetZaxis()->SetLabelFont(52); xs_err->GetZaxis()->SetLabelSize(0.045); xs_err->GetZaxis()->SetTitleFont(42); xs_err->Draw("e2same"); TH1 *om_err = new TH1D("om_err","",7,0,0.7); om_err->SetBinContent(1,3.32905e-39); om_err->SetBinContent(2,3.93372e-39); om_err->SetBinContent(3,2.7199e-39); om_err->SetBinContent(4,1.15233e-39); om_err->SetBinContent(5,6.33436e-40); om_err->SetBinContent(6,2.65073e-40); om_err->SetBinError(1,9.20852e-40); om_err->SetBinError(2,4.01016e-40); om_err->SetBinError(3,5.89271e-40); om_err->SetBinError(4,3.58949e-40); om_err->SetBinError(5,2.08982e-40); om_err->SetBinError(6,6.72889e-41); om_err->SetMinimum(-1.26821e-39); om_err->SetMaximum(7.30729e-39); om_err->SetEntries(3721.95); om_err->SetStats(0); om_err->SetFillColor(203); om_err->SetLineColor(0); om_err->SetLineWidth(2); om_err->SetMarkerStyle(0); om_err->GetXaxis()->SetLabelFont(52); om_err->GetXaxis()->SetLabelSize(0.045); om_err->GetXaxis()->SetTitleSize(0.055); om_err->GetXaxis()->SetTitleOffset(0.78); om_err->GetXaxis()->SetTitleFont(42); om_err->GetYaxis()->SetLabelFont(52); om_err->GetYaxis()->SetLabelSize(0.045); om_err->GetYaxis()->SetTitleSize(0.055); om_err->GetYaxis()->SetTitleOffset(1.31); om_err->GetYaxis()->SetTitleFont(42); om_err->GetZaxis()->SetLabelFont(52); om_err->GetZaxis()->SetLabelSize(0.045); om_err->GetZaxis()->SetTitleFont(42); om_err->Draw("e2same"); TH1 *ehst_0_0 = new TH1D("ehst_0_0","",7,0,0.7); ehst_0_0->SetBinContent(1,3.32905e-39); ehst_0_0->SetBinContent(2,3.93372e-39); ehst_0_0->SetBinContent(3,2.7199e-39); ehst_0_0->SetBinContent(4,1.15233e-39); ehst_0_0->SetBinContent(5,6.33436e-40); ehst_0_0->SetBinContent(6,2.65073e-40); ehst_0_0->SetBinError(1,1.02149e-39); ehst_0_0->SetBinError(2,1.14361e-40); ehst_0_0->SetBinError(3,9.40954e-41); ehst_0_0->SetBinError(4,6.82097e-41); ehst_0_0->SetBinError(5,6.67355e-41); ehst_0_0->SetBinError(6,1.33677e-40); ehst_0_0->SetBinError(7,2.90359e-39); ehst_0_0->SetMinimum(0); ehst_0_0->SetMaximum(5.5e-39); ehst_0_0->SetEntries(3721.95); ehst_0_0->SetStats(0); ehst_0_0->SetLineWidth(2); ehst_0_0->SetMarkerStyle(22); ehst_0_0->GetXaxis()->SetTitle("KE Estimator [GeV] (= Q^{2}/2)"); ehst_0_0->GetXaxis()->SetRange(2,6); ehst_0_0->GetXaxis()->CenterTitle(true); ehst_0_0->GetXaxis()->SetNdivisions(508); ehst_0_0->GetXaxis()->SetLabelFont(52); ehst_0_0->GetXaxis()->SetLabelSize(0.045); ehst_0_0->GetXaxis()->SetTitleSize(0.055); ehst_0_0->GetXaxis()->SetTitleOffset(0.78); ehst_0_0->GetXaxis()->SetTitleFont(42); ehst_0_0->GetYaxis()->SetTitle("d#sigma / dKE"); ehst_0_0->GetYaxis()->CenterTitle(true); ehst_0_0->GetYaxis()->SetLabelFont(52); ehst_0_0->GetYaxis()->SetLabelSize(0.045); ehst_0_0->GetYaxis()->SetTitleSize(0.055); ehst_0_0->GetYaxis()->SetTitleOffset(1.31); ehst_0_0->GetYaxis()->SetTitleFont(42); ehst_0_0->GetZaxis()->SetLabelFont(52); ehst_0_0->GetZaxis()->SetLabelSize(0.045); ehst_0_0->GetZaxis()->SetTitleFont(42); ehst_0_0->Draw("psame"); TGraphErrors *gre = new TGraphErrors(7); gre->SetName("Graph"); gre->SetTitle("Graph"); gre->SetFillColor(1); gre->SetMarkerStyle(20); gre->SetPoint(0,0.225,3.3e-39); gre->SetPointError(0,0,2.2e-40); gre->SetPoint(1,0.275,2.18e-39); gre->SetPointError(1,0,1.6e-40); gre->SetPoint(2,0.325,1.606e-39); gre->SetPointError(2,0,1.52e-40); gre->SetPoint(3,0.375,1.314e-39); gre->SetPointError(3,0,1.28e-40); gre->SetPoint(4,0.425,8.94e-40); gre->SetPointError(4,0,1.46e-40); gre->SetPoint(5,0.475,5.88e-40); gre->SetPointError(5,0,1.28e-40); gre->SetPoint(6,0.525,4.1e-40); gre->SetPointError(6,0,1.14e-40); gre->Draw("psame"); TLatex * tex = new TLatex(0.59,0.48,"Preliminary"); tex->SetNDC(); tex->SetTextColor(13); tex->SetTextFont(92); tex->SetTextSize(0.055); tex->SetLineWidth(2); tex->Draw(); TLegend *leg = new TLegend(0.55,0.53,0.93,0.91,NULL,"brNDC"); leg->SetLineColor(0); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("ehst_0_0","NC Elastic Data","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(22); entry->SetMarkerSize(1); entry->SetTextAlign(12); entry->SetTextColor(1); entry=leg->AddEntry("Graph","BNL #nup #rightarrow #nup Data","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("om_err","Detector Errors","f"); entry->SetFillColor(203); entry->SetFillStyle(1001); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextAlign(12); entry->SetTextColor(1); entry=leg->AddEntry("xs_err","Xsection Errors","f"); entry->SetFillColor(66); entry->SetFillStyle(1001); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextAlign(12); entry->SetTextColor(1); entry=leg->AddEntry("bm_err","Beam/Flux Errors","f"); entry->SetFillColor(214); entry->SetFillStyle(1001); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextAlign(12); entry->SetTextColor(1); leg->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }