{ //=========Macro generated from canvas: c1/c1 //========= (Sat Oct 20 15:45:58 2012) by ROOT version5.26/00 TCanvas *c1 = new TCanvas("c1", "c1",0,0,1000,1200); gStyle->SetOptStat(0); c1->SetHighLightColor(2); c1->Range(0,0,1,1); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(10); c1->SetLeftMargin(0.15); c1->SetRightMargin(0.05); c1->SetTopMargin(0.08); c1->SetBottomMargin(0.13); c1->SetFrameFillStyle(0); c1->SetFrameLineStyle(0); c1->SetFrameBorderMode(0); c1->SetFrameBorderSize(10); // ------------>Primitives in pad: c1_1 TPad *c1_1 = new TPad("c1_1", "c1_1",0.01,0.51,0.99,0.99); c1_1->Draw(); c1_1->cd(); c1_1->Range(-41.09589,-0.1875,164.3836,1.0625); c1_1->SetFillColor(0); c1_1->SetBorderMode(0); c1_1->SetBorderSize(10); c1_1->SetLeftMargin(0.2); c1_1->SetRightMargin(0.07); c1_1->SetTopMargin(0.05); c1_1->SetBottomMargin(0.15); c1_1->SetFrameFillStyle(0); c1_1->SetFrameLineStyle(0); c1_1->SetFrameBorderMode(0); c1_1->SetFrameBorderSize(10); c1_1->SetFrameFillStyle(0); c1_1->SetFrameLineStyle(0); c1_1->SetFrameBorderMode(0); c1_1->SetFrameBorderSize(10); THStack *ALL = new THStack(); ALL->SetName("ALL"); ALL->SetTitle(""); ALL->SetMinimum(0); ALL->SetMaximum(0); TH1F *ALL19__55 = new TH1F("ALL19__55","",50,0,150); ALL19__55->SetMinimum(0); ALL19__55->SetMaximum(0); ALL19__55->SetDirectory(0); ALL19__55->SetStats(0); ALL19__55->GetXaxis()->SetTitle("MJ1Lep1"); ALL19__55->GetXaxis()->SetLabelFont(42); ALL19__55->GetXaxis()->SetLabelOffset(0.02); ALL19__55->GetXaxis()->SetLabelSize(0.05); ALL19__55->GetXaxis()->SetTitleSize(0.055); ALL19__55->GetXaxis()->SetTitleFont(42); ALL19__55->GetYaxis()->SetTitle("Events"); ALL19__55->GetYaxis()->SetLabelFont(42); ALL19__55->GetYaxis()->SetLabelOffset(0.008); ALL19__55->GetYaxis()->SetLabelSize(0.05); ALL19__55->GetYaxis()->SetTitleSize(0.055); ALL19__55->GetYaxis()->SetTitleFont(42); ALL->SetHistogram(ALL19); TH1D *Process_0_0 = new TH1D("Process_0_0","Process_0_0",50,0,150); Process_0_0->SetStats(0); Process_0_0->SetFillColor(19); Process_0_0->GetXaxis()->SetTitle("MJ1Lep1"); Process_0_0->GetYaxis()->SetLabelFont(42); Process_0_0->GetYaxis()->SetLabelOffset(0.008); Process_0_0->GetYaxis()->SetLabelSize(0.05); Process_0_0->GetYaxis()->SetTitleSize(0.055); Process_0_0->GetYaxis()->SetTitleOffset(1.8); Process_0_0->GetYaxis()->SetTitleFont(42); ALL->Add(Process_0_0,""); TH1D *Process_1_0 = new TH1D("Process_1_0","Process_1_0",50,0,150); Process_1_0->SetStats(0); Process_1_0->SetFillColor(7); Process_1_0->GetXaxis()->SetTitle("MJ1Lep1"); Process_1_0->GetYaxis()->SetLabelFont(42); Process_1_0->GetYaxis()->SetLabelOffset(0.008); Process_1_0->GetYaxis()->SetLabelSize(0.05); Process_1_0->GetYaxis()->SetTitleSize(0.055); Process_1_0->GetYaxis()->SetTitleOffset(1.8); Process_1_0->GetYaxis()->SetTitleFont(42); ALL->Add(Process_1_0,""); TH1D *Process_2_0 = new TH1D("Process_2_0","Process_2_0",50,0,150); Process_2_0->SetStats(0); Process_2_0->SetFillColor(8); Process_2_0->GetXaxis()->SetTitle("MJ1Lep1"); Process_2_0->GetYaxis()->SetLabelFont(42); Process_2_0->GetYaxis()->SetLabelOffset(0.008); Process_2_0->GetYaxis()->SetLabelSize(0.05); Process_2_0->GetYaxis()->SetTitleSize(0.055); Process_2_0->GetYaxis()->SetTitleOffset(1.8); Process_2_0->GetYaxis()->SetTitleFont(42); ALL->Add(Process_2_0,""); TH1D *Process_3_0 = new TH1D("Process_3_0","Process_3_0",50,0,150); Process_3_0->SetStats(0); Process_3_0->SetFillColor(9); Process_3_0->GetXaxis()->SetTitle("MJ1Lep1"); Process_3_0->GetYaxis()->SetLabelFont(42); Process_3_0->GetYaxis()->SetLabelOffset(0.008); Process_3_0->GetYaxis()->SetLabelSize(0.05); Process_3_0->GetYaxis()->SetTitleSize(0.055); Process_3_0->GetYaxis()->SetTitleOffset(1.8); Process_3_0->GetYaxis()->SetTitleFont(42); ALL->Add(Process_3_0,""); TH1D *Process_4_0 = new TH1D("Process_4_0","Process_4_0",50,0,150); Process_4_0->SetStats(0); Process_4_0->SetFillColor(5); Process_4_0->GetXaxis()->SetTitle("MJ1Lep1"); Process_4_0->GetYaxis()->SetLabelFont(42); Process_4_0->GetYaxis()->SetLabelOffset(0.008); Process_4_0->GetYaxis()->SetLabelSize(0.05); Process_4_0->GetYaxis()->SetTitleSize(0.055); Process_4_0->GetYaxis()->SetTitleOffset(1.8); Process_4_0->GetYaxis()->SetTitleFont(42); ALL->Add(Process_4_0,""); TH1D *Process_5_0 = new TH1D("Process_5_0","Process_5_0",50,0,150); Process_5_0->SetStats(0); Process_5_0->SetFillColor(46); Process_5_0->GetXaxis()->SetTitle("MJ1Lep1"); Process_5_0->GetYaxis()->SetLabelFont(42); Process_5_0->GetYaxis()->SetLabelOffset(0.008); Process_5_0->GetYaxis()->SetLabelSize(0.05); Process_5_0->GetYaxis()->SetTitleSize(0.055); Process_5_0->GetYaxis()->SetTitleOffset(1.8); Process_5_0->GetYaxis()->SetTitleFont(42); ALL->Add(Process_5_0,""); TH1D *Process_6_0 = new TH1D("Process_6_0","Process_6_0",50,0,150); Process_6_0->SetStats(0); Process_6_0->SetFillColor(42); Process_6_0->GetXaxis()->SetTitle("MJ1Lep1"); Process_6_0->GetYaxis()->SetLabelFont(42); Process_6_0->GetYaxis()->SetLabelOffset(0.008); Process_6_0->GetYaxis()->SetLabelSize(0.05); Process_6_0->GetYaxis()->SetTitleSize(0.055); Process_6_0->GetYaxis()->SetTitleOffset(1.8); Process_6_0->GetYaxis()->SetTitleFont(42); ALL->Add(Process_6_0,""); TH1D *Process_7_0 = new TH1D("Process_7_0","Process_7_0",50,0,150); Process_7_0->SetStats(0); Process_7_0->SetFillColor(2); Process_7_0->GetXaxis()->SetTitle("MJ1Lep1"); Process_7_0->GetYaxis()->SetLabelFont(42); Process_7_0->GetYaxis()->SetLabelOffset(0.008); Process_7_0->GetYaxis()->SetLabelSize(0.05); Process_7_0->GetYaxis()->SetTitleSize(0.055); Process_7_0->GetYaxis()->SetTitleOffset(1.8); Process_7_0->GetYaxis()->SetTitleFont(42); ALL->Add(Process_7_0,""); ALL->Draw("hist"); TH1D *Process_8_0__56 = new TH1D("Process_8_0__56","Process_8_0",50,0,150); Process_8_0__56->SetMaximum(0); Process_8_0__56->SetDirectory(0); Process_8_0__56->SetStats(0); Process_8_0__56->SetMarkerStyle(20); Process_8_0__56->GetXaxis()->SetTitle("MJ1Lep1"); Process_8_0__56->GetYaxis()->SetLabelFont(42); Process_8_0__56->GetYaxis()->SetLabelOffset(0.008); Process_8_0__56->GetYaxis()->SetLabelSize(0.05); Process_8_0__56->GetYaxis()->SetTitleSize(0.055); Process_8_0__56->GetYaxis()->SetTitleOffset(1.8); Process_8_0__56->GetYaxis()->SetTitleFont(42); Process_8_0__56->Draw("PESAME"); TH1D *Rescaled0_7__57 = new TH1D("Rescaled0_7__57","Process_7_0",50,0,150); Rescaled0_7__57->SetDirectory(0); Rescaled0_7__57->SetStats(0); Int_t ci; // for color index setting ci = TColor::GetColor("#000000"); Rescaled0_7__57->SetLineColor(ci); Rescaled0_7__57->GetXaxis()->SetTitle("MJ1Lep1"); Rescaled0_7__57->GetYaxis()->SetLabelFont(42); Rescaled0_7__57->GetYaxis()->SetLabelOffset(0.008); Rescaled0_7__57->GetYaxis()->SetLabelSize(0.05); Rescaled0_7__57->GetYaxis()->SetTitleSize(0.055); Rescaled0_7__57->GetYaxis()->SetTitleOffset(1.8); Rescaled0_7__57->GetYaxis()->SetTitleFont(42); Rescaled0_7__57->Draw("HISTSAME"); TLatex * tex = new TLatex(0.22,0.88,"#int L=9.7fb^{-1}"); tex->SetNDC(); tex->SetTextFont(42); tex->SetTextSize(0.038); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.7,0.96,"CDF Run II Preliminary"); tex->SetNDC(); tex->SetTextFont(42); tex->SetTextSize(0.038); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.7,0.91,"HWW-BaseMllInvSameSign"); tex->SetNDC(); tex->SetTextFont(42); tex->SetTextSize(0.038); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.82,0.6,"m_{H}=160"); tex->SetNDC(); tex->SetTextFont(42); tex->SetTextSize(0.038); tex->SetLineWidth(2); tex->Draw(); TLegend *leg = new TLegend(0.7,0.7,0.79,0.89,NULL,"brNDC"); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(19); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("Process_0_0","WW","F"); entry->SetFillColor(19); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("Process_1_0","WZ","F"); entry->SetFillColor(7); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("Process_2_0","ZZ","F"); entry->SetFillColor(8); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("Process_3_0","t#bar{t}","F"); entry->SetFillColor(9); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); leg->Draw(); leg = new TLegend(0.8,0.7,0.89,0.89,NULL,"brNDC"); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(19); leg->SetFillStyle(1001); entry=leg->AddEntry("Process_4_0","DY","F"); entry->SetFillColor(5); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("Process_5_0","W#gamma","F"); entry->SetFillColor(46); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("Process_6_0","W+jet","F"); entry->SetFillColor(42); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("Process_7_0","H","F"); entry->SetFillColor(2); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("Rescaled0_7","Higgsx 15","L"); ci = TColor::GetColor("#000000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); leg->Draw(); c1_1->Modified(); c1->cd(); // ------------>Primitives in pad: c1_2 c1_2 = new TPad("c1_2", "c1_2",0.01,0.01,0.99,0.49); c1_2->Draw(); c1_2->cd(); c1_2->Range(0,0,1,1); c1_2->SetFillColor(0); c1_2->SetBorderMode(0); c1_2->SetBorderSize(10); c1_2->SetLeftMargin(0.15); c1_2->SetRightMargin(0.05); c1_2->SetTopMargin(0.08); c1_2->SetBottomMargin(0.13); c1_2->SetFrameFillStyle(0); c1_2->SetFrameLineStyle(0); c1_2->SetFrameBorderMode(0); c1_2->SetFrameBorderSize(10); c1_2->Modified(); c1->cd(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }