{ //=========Macro generated from canvas: c1_n160/c1_n160 //========= (Sun Jun 3 15:04:19 2012) by ROOT version5.28/00c TCanvas *c1_n160 = new TCanvas("c1_n160", "c1_n160",0,0,700,500); gStyle->SetOptStat(0); c1_n160->Range(-1.125,2.09806,5.125,6.181252); c1_n160->SetFillColor(0); c1_n160->SetBorderMode(0); c1_n160->SetBorderSize(2); c1_n160->SetLogy(); c1_n160->SetBottomMargin(0.18); c1_n160->SetFrameBorderMode(0); c1_n160->SetFrameBorderMode(0); TH1F *data_h_vtxTyp_p0__359 = new TH1F("data_h_vtxTyp_p0__359","",5,-0.5,4.5); data_h_vtxTyp_p0__359->SetBinContent(2,113728.4); data_h_vtxTyp_p0__359->SetBinContent(5,1399.066); data_h_vtxTyp_p0__359->SetBinError(2,337.3793); data_h_vtxTyp_p0__359->SetBinError(5,37.41844); data_h_vtxTyp_p0__359->SetMaximum(592833.2); data_h_vtxTyp_p0__359->SetEntries(115033); data_h_vtxTyp_p0__359->SetDirectory(0); data_h_vtxTyp_p0__359->SetMarkerStyle(20); data_h_vtxTyp_p0__359->GetXaxis()->SetTitle("VTX Type"); data_h_vtxTyp_p0__359->GetXaxis()->SetTitleSize(0.07); data_h_vtxTyp_p0__359->GetYaxis()->SetTitle("Entries"); data_h_vtxTyp_p0__359->Draw("e"); TH1F *elpom_h_vtxTyp_p0_sys0 = new TH1F("elpom_h_vtxTyp_p0_sys0","",5,-0.5,4.5); elpom_h_vtxTyp_p0_sys0->SetBinContent(2,115450.2); elpom_h_vtxTyp_p0_sys0->SetBinContent(5,1691.123); elpom_h_vtxTyp_p0_sys0->SetEntries(242119); Int_t ci; // for color index setting ci = TColor::GetColor("#0099ff"); elpom_h_vtxTyp_p0_sys0->SetFillColor(ci); elpom_h_vtxTyp_p0_sys0->SetFillStyle(0); elpom_h_vtxTyp_p0_sys0->SetLineWidth(2); elpom_h_vtxTyp_p0_sys0->GetXaxis()->SetTitleSize(0.07); elpom_h_vtxTyp_p0_sys0->Draw("hist same"); TH1F *elcha_h_vtxTyp_p0_sys0 = new TH1F("elcha_h_vtxTyp_p0_sys0","",5,-0.5,4.5); elcha_h_vtxTyp_p0_sys0->SetBinContent(2,26407.37); elcha_h_vtxTyp_p0_sys0->SetBinContent(5,83.94561); elcha_h_vtxTyp_p0_sys0->SetEntries(85271); elcha_h_vtxTyp_p0_sys0->SetFillColor(1); elcha_h_vtxTyp_p0_sys0->SetFillStyle(3005); elcha_h_vtxTyp_p0_sys0->GetXaxis()->SetTitleSize(0.07); elcha_h_vtxTyp_p0_sys0->Draw("hist same"); TH1F *elreg_h_vtxTyp_p0_sys0 = new TH1F("elreg_h_vtxTyp_p0_sys0","",5,-0.5,4.5); elreg_h_vtxTyp_p0_sys0->SetBinContent(2,8949.005); elreg_h_vtxTyp_p0_sys0->SetBinContent(5,81.92596); elreg_h_vtxTyp_p0_sys0->SetEntries(45792); elreg_h_vtxTyp_p0_sys0->SetFillColor(27); elreg_h_vtxTyp_p0_sys0->GetXaxis()->SetLabelSize(0.07); elreg_h_vtxTyp_p0_sys0->Draw("hist same"); TH1F *elpom_h_vtxTyp_p0_sys0__360 = new TH1F("elpom_h_vtxTyp_p0_sys0__360","",5,-0.5,4.5); elpom_h_vtxTyp_p0_sys0__360->SetBinContent(2,115450.2); elpom_h_vtxTyp_p0_sys0__360->SetBinContent(5,1691.123); elpom_h_vtxTyp_p0_sys0__360->SetEntries(242119); elpom_h_vtxTyp_p0_sys0__360->SetDirectory(0); ci = TColor::GetColor("#0099ff"); elpom_h_vtxTyp_p0_sys0__360->SetFillColor(ci); elpom_h_vtxTyp_p0_sys0__360->SetFillStyle(0); ci = TColor::GetColor("#cc00ff"); elpom_h_vtxTyp_p0_sys0__360->SetLineColor(ci); elpom_h_vtxTyp_p0_sys0__360->SetLineWidth(2); elpom_h_vtxTyp_p0_sys0__360->GetXaxis()->SetTitleSize(0.07); elpom_h_vtxTyp_p0_sys0__360->Draw("hist same"); TH1F *elpom_h_vtxTyp_p0_sys0__361 = new TH1F("elpom_h_vtxTyp_p0_sys0__361","",5,-0.5,4.5); elpom_h_vtxTyp_p0_sys0__361->SetBinContent(2,115450.2); elpom_h_vtxTyp_p0_sys0__361->SetBinContent(5,1691.123); elpom_h_vtxTyp_p0_sys0__361->SetEntries(242119); elpom_h_vtxTyp_p0_sys0__361->SetDirectory(0); ci = TColor::GetColor("#0099ff"); elpom_h_vtxTyp_p0_sys0__361->SetFillColor(ci); elpom_h_vtxTyp_p0_sys0__361->SetFillStyle(0); ci = TColor::GetColor("#0000ff"); elpom_h_vtxTyp_p0_sys0__361->SetLineColor(ci); elpom_h_vtxTyp_p0_sys0__361->SetLineWidth(2); elpom_h_vtxTyp_p0_sys0__361->GetXaxis()->SetTitleSize(0.07); elpom_h_vtxTyp_p0_sys0__361->Draw("hist same"); TH1F *data_h_vtxTyp_p0__362 = new TH1F("data_h_vtxTyp_p0__362","",5,-0.5,4.5); data_h_vtxTyp_p0__362->SetBinContent(2,113728.4); data_h_vtxTyp_p0__362->SetBinContent(5,1399.066); data_h_vtxTyp_p0__362->SetBinError(2,337.3793); data_h_vtxTyp_p0__362->SetBinError(5,37.41844); data_h_vtxTyp_p0__362->SetMaximum(592833.2); data_h_vtxTyp_p0__362->SetEntries(115033); data_h_vtxTyp_p0__362->SetDirectory(0); data_h_vtxTyp_p0__362->SetMarkerStyle(20); data_h_vtxTyp_p0__362->GetXaxis()->SetTitle("VTX Type"); data_h_vtxTyp_p0__362->GetXaxis()->SetTitleSize(0.07); data_h_vtxTyp_p0__362->GetYaxis()->SetTitle("Entries"); data_h_vtxTyp_p0__362->Draw("e same"); c1_n160->Modified(); c1_n160->cd(); c1_n160->SetSelected(c1_n160); }