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