{ //=========Macro generated from canvas: c1_n159/c1_n159 //========= (Sun Jun 3 15:04:19 2012) by ROOT version5.28/00c TCanvas *c1_n159 = new TCanvas("c1_n159", "c1_n159",0,0,700,500); gStyle->SetOptStat(0); c1_n159->Range(-1.125,2.09806,5.125,6.181252); c1_n159->SetFillColor(0); c1_n159->SetBorderMode(0); c1_n159->SetBorderSize(2); c1_n159->SetLogy(); c1_n159->SetBottomMargin(0.18); c1_n159->SetFrameBorderMode(0); c1_n159->SetFrameBorderMode(0); TH1F *data_h_vtxTyp_p0__355 = new TH1F("data_h_vtxTyp_p0__355","",5,-0.5,4.5); data_h_vtxTyp_p0__355->SetBinContent(2,113728.4); data_h_vtxTyp_p0__355->SetBinContent(5,1399.066); data_h_vtxTyp_p0__355->SetBinError(2,337.3793); data_h_vtxTyp_p0__355->SetBinError(5,37.41844); data_h_vtxTyp_p0__355->SetMaximum(592833.2); data_h_vtxTyp_p0__355->SetEntries(115033); data_h_vtxTyp_p0__355->SetDirectory(0); data_h_vtxTyp_p0__355->SetMarkerStyle(20); data_h_vtxTyp_p0__355->GetXaxis()->SetTitle("VTX Type"); data_h_vtxTyp_p0__355->GetXaxis()->SetTitleSize(0.07); data_h_vtxTyp_p0__355->GetYaxis()->SetTitle("Entries"); data_h_vtxTyp_p0__355->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__356 = new TH1F("elpom_h_vtxTyp_p0_sys0__356","",5,-0.5,4.5); elpom_h_vtxTyp_p0_sys0__356->SetBinContent(2,115450.2); elpom_h_vtxTyp_p0_sys0__356->SetBinContent(5,1691.123); elpom_h_vtxTyp_p0_sys0__356->SetEntries(242119); elpom_h_vtxTyp_p0_sys0__356->SetDirectory(0); ci = TColor::GetColor("#0099ff"); elpom_h_vtxTyp_p0_sys0__356->SetFillColor(ci); elpom_h_vtxTyp_p0_sys0__356->SetFillStyle(0); ci = TColor::GetColor("#cc00ff"); elpom_h_vtxTyp_p0_sys0__356->SetLineColor(ci); elpom_h_vtxTyp_p0_sys0__356->SetLineWidth(2); elpom_h_vtxTyp_p0_sys0__356->GetXaxis()->SetTitleSize(0.07); elpom_h_vtxTyp_p0_sys0__356->Draw("hist same"); TH1F *elpom_h_vtxTyp_p0_sys0__357 = new TH1F("elpom_h_vtxTyp_p0_sys0__357","",5,-0.5,4.5); elpom_h_vtxTyp_p0_sys0__357->SetBinContent(2,115450.2); elpom_h_vtxTyp_p0_sys0__357->SetBinContent(5,1691.123); elpom_h_vtxTyp_p0_sys0__357->SetEntries(242119); elpom_h_vtxTyp_p0_sys0__357->SetDirectory(0); ci = TColor::GetColor("#0099ff"); elpom_h_vtxTyp_p0_sys0__357->SetFillColor(ci); elpom_h_vtxTyp_p0_sys0__357->SetFillStyle(0); ci = TColor::GetColor("#0000ff"); elpom_h_vtxTyp_p0_sys0__357->SetLineColor(ci); elpom_h_vtxTyp_p0_sys0__357->SetLineWidth(2); elpom_h_vtxTyp_p0_sys0__357->GetXaxis()->SetTitleSize(0.07); elpom_h_vtxTyp_p0_sys0__357->Draw("hist same"); TH1F *data_h_vtxTyp_p0__358 = new TH1F("data_h_vtxTyp_p0__358","",5,-0.5,4.5); data_h_vtxTyp_p0__358->SetBinContent(2,113728.4); data_h_vtxTyp_p0__358->SetBinContent(5,1399.066); data_h_vtxTyp_p0__358->SetBinError(2,337.3793); data_h_vtxTyp_p0__358->SetBinError(5,37.41844); data_h_vtxTyp_p0__358->SetMaximum(592833.2); data_h_vtxTyp_p0__358->SetEntries(115033); data_h_vtxTyp_p0__358->SetDirectory(0); data_h_vtxTyp_p0__358->SetMarkerStyle(20); data_h_vtxTyp_p0__358->GetXaxis()->SetTitle("VTX Type"); data_h_vtxTyp_p0__358->GetXaxis()->SetTitleSize(0.07); data_h_vtxTyp_p0__358->GetYaxis()->SetTitle("Entries"); data_h_vtxTyp_p0__358->Draw("e same"); c1_n159->Modified(); c1_n159->cd(); c1_n159->SetSelected(c1_n159); }