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