{ //=========Macro generated from canvas: c1/c1 //========= (Sat Oct 20 15:45:59 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(-2.739726,-18.69937,10.9589,105.9631); 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(94.98094); TH1F *ALL27__79 = new TH1F("ALL27__79","",50,0,10); ALL27__79->SetMinimum(0); ALL27__79->SetMaximum(99.72998); ALL27__79->SetDirectory(0); ALL27__79->SetStats(0); ALL27__79->GetXaxis()->SetTitle("N_{vertex}"); ALL27__79->GetXaxis()->SetLabelFont(42); ALL27__79->GetXaxis()->SetLabelOffset(0.02); ALL27__79->GetXaxis()->SetLabelSize(0.05); ALL27__79->GetXaxis()->SetTitleSize(0.055); ALL27__79->GetXaxis()->SetTitleFont(42); ALL27__79->GetYaxis()->SetTitle("Events"); ALL27__79->GetYaxis()->SetLabelFont(42); ALL27__79->GetYaxis()->SetLabelOffset(0.008); ALL27__79->GetYaxis()->SetLabelSize(0.05); ALL27__79->GetYaxis()->SetTitleSize(0.055); ALL27__79->GetYaxis()->SetTitleFont(42); ALL->SetHistogram(ALL27); TH1D *Process_0_0 = new TH1D("Process_0_0","Process_0_0",50,0,10); Process_0_0->SetBinContent(6,0.09357849); Process_0_0->SetBinContent(11,0.08978513); Process_0_0->SetBinContent(16,0.04851945); Process_0_0->SetBinContent(21,0.01454754); Process_0_0->SetBinContent(26,0.008337325); Process_0_0->SetBinContent(31,0.00108143); Process_0_0->SetBinContent(36,-0.0009765886); Process_0_0->SetBinContent(41,0.001244189); Process_0_0->SetBinError(6,0.007767545); Process_0_0->SetBinError(11,0.007894938); Process_0_0->SetBinError(16,0.006478837); Process_0_0->SetBinError(21,0.003477594); Process_0_0->SetBinError(26,0.002603351); Process_0_0->SetBinError(31,0.0008185748); Process_0_0->SetBinError(36,0.0009765885); Process_0_0->SetBinError(41,0.001244189); Process_0_0->SetEntries(356.7555); Process_0_0->SetStats(0); Process_0_0->SetFillColor(19); Process_0_0->GetXaxis()->SetTitle("NVtx"); 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,10); Process_1_0->SetBinContent(1,9.087521e-05); Process_1_0->SetBinContent(6,0.2931686); Process_1_0->SetBinContent(11,0.2993577); Process_1_0->SetBinContent(16,0.1726146); Process_1_0->SetBinContent(21,0.06791752); Process_1_0->SetBinContent(26,0.01750293); Process_1_0->SetBinContent(31,0.006266832); Process_1_0->SetBinContent(36,0.0008553551); Process_1_0->SetBinError(1,6.487101e-05); Process_1_0->SetBinError(6,0.007294522); Process_1_0->SetBinError(11,0.007836175); Process_1_0->SetBinError(16,0.006273848); Process_1_0->SetBinError(21,0.0039792); Process_1_0->SetBinError(26,0.002099125); Process_1_0->SetBinError(31,0.001311881); Process_1_0->SetBinError(36,0.0004376713); Process_1_0->SetEntries(7843); Process_1_0->SetStats(0); Process_1_0->SetFillColor(7); Process_1_0->GetXaxis()->SetTitle("NVtx"); 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,10); Process_2_0->SetBinContent(6,0.01824577); Process_2_0->SetBinContent(11,0.02204133); Process_2_0->SetBinContent(16,0.01090668); Process_2_0->SetBinContent(21,0.006551977); Process_2_0->SetBinContent(26,0.001889293); Process_2_0->SetBinContent(31,0.0008391518); Process_2_0->SetBinError(6,0.001959011); Process_2_0->SetBinError(11,0.002302097); Process_2_0->SetBinError(16,0.001692155); Process_2_0->SetBinError(21,0.001471029); Process_2_0->SetBinError(26,0.0007462934); Process_2_0->SetBinError(31,0.0004938634); Process_2_0->SetEntries(459); Process_2_0->SetStats(0); Process_2_0->SetFillColor(8); Process_2_0->GetXaxis()->SetTitle("NVtx"); 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,10); Process_3_0->SetBinContent(6,0.01407582); Process_3_0->SetBinContent(11,0.002603231); Process_3_0->SetBinError(6,0.007096711); Process_3_0->SetBinError(11,0.001806508); Process_3_0->SetEntries(8); Process_3_0->SetStats(0); Process_3_0->SetFillColor(9); Process_3_0->GetXaxis()->SetTitle("NVtx"); 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,10); Process_4_0->SetBinContent(6,2.343667); Process_4_0->SetBinContent(11,3.860862); Process_4_0->SetBinContent(16,1.148719); Process_4_0->SetBinContent(21,0.5011632); Process_4_0->SetBinContent(26,0.2645566); Process_4_0->SetBinContent(31,0.0005274265); Process_4_0->SetBinError(6,1.092356); Process_4_0->SetBinError(11,1.416968); Process_4_0->SetBinError(16,0.7374523); Process_4_0->SetBinError(21,0.3144462); Process_4_0->SetBinError(26,0.2283313); Process_4_0->SetBinError(31,0.0005274265); Process_4_0->SetEntries(162); Process_4_0->SetStats(0); Process_4_0->SetFillColor(5); Process_4_0->GetXaxis()->SetTitle("NVtx"); 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,10); Process_5_0->SetBinContent(1,0.07644637); Process_5_0->SetBinContent(6,48.12688); Process_5_0->SetBinContent(11,48.5217); Process_5_0->SetBinContent(16,25.55598); Process_5_0->SetBinContent(21,9.328002); Process_5_0->SetBinContent(26,3.222816); Process_5_0->SetBinContent(31,0.840215); Process_5_0->SetBinContent(36,0.03985688); Process_5_0->SetBinError(1,0.04682929); Process_5_0->SetBinError(6,1.197904); Process_5_0->SetBinError(11,1.292124); Process_5_0->SetBinError(16,0.9959552); Process_5_0->SetBinError(21,0.613659); Process_5_0->SetBinError(26,0.3925688); Process_5_0->SetBinError(31,0.2058983); Process_5_0->SetBinError(36,0.0200163); Process_5_0->SetEntries(14049); Process_5_0->SetStats(0); Process_5_0->SetFillColor(46); Process_5_0->GetXaxis()->SetTitle("NVtx"); 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,10); Process_6_0->SetBinContent(6,14.30872); Process_6_0->SetBinContent(11,14.69252); Process_6_0->SetBinContent(16,8.617205); Process_6_0->SetBinContent(21,3.491798); Process_6_0->SetBinContent(26,1.792216); Process_6_0->SetBinContent(31,0.01722759); Process_6_0->SetBinContent(36,0.01622221); Process_6_0->SetBinContent(41,0.07990889); Process_6_0->SetBinError(6,1.454616); Process_6_0->SetBinError(11,1.459085); Process_6_0->SetBinError(16,1.022551); Process_6_0->SetBinError(21,0.6278403); Process_6_0->SetBinError(26,0.5357034); Process_6_0->SetBinError(31,0.01022647); Process_6_0->SetBinError(36,0.01622221); Process_6_0->SetBinError(41,0.06418503); Process_6_0->SetEntries(1426); Process_6_0->SetStats(0); Process_6_0->SetFillColor(42); Process_6_0->GetXaxis()->SetTitle("NVtx"); 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,10); Process_7_0->SetBinContent(6,0.02195797); Process_7_0->SetBinContent(11,0.02285704); Process_7_0->SetBinContent(16,0.01197619); Process_7_0->SetBinContent(21,0.004591068); Process_7_0->SetBinContent(26,0.00202822); Process_7_0->SetBinContent(31,0.0001393375); Process_7_0->SetBinError(6,0.001634325); Process_7_0->SetBinError(11,0.001884385); Process_7_0->SetBinError(16,0.001263196); Process_7_0->SetBinError(21,0.0007802684); Process_7_0->SetBinError(26,0.0006129822); Process_7_0->SetBinError(31,7.197902e-05); Process_7_0->SetEntries(1127); Process_7_0->SetStats(0); Process_7_0->SetFillColor(2); Process_7_0->GetXaxis()->SetTitle("NVtx"); 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"); TGraph *graph = new TGraph(18); graph->SetName("Graph"); graph->SetTitle("Graph"); graph->SetFillColor(6); graph->SetFillStyle(3344); graph->SetLineWidth(2); graph->SetPoint(0,0.1,0.08571082); graph->SetPoint(1,1.1,71.97033); graph->SetPoint(2,2.1,74.38929); graph->SetPoint(3,3.1,39.27998); graph->SetPoint(4,4.1,14.82016); graph->SetPoint(5,5.1,5.892581); graph->SetPoint(6,6.1,0.9672122); graph->SetPoint(7,7.1,0.06213753); graph->SetPoint(8,8.1,0.1004117); graph->SetPoint(9,8.1,0.06189448); graph->SetPoint(10,7.1,0.04977818); graph->SetPoint(11,6.1,0.7653812); graph->SetPoint(12,5.1,4.726112); graph->SetPoint(13,4.1,12.00898); graph->SetPoint(14,3.1,31.85186); graph->SetPoint(15,2.1,60.63416); graph->SetPoint(16,1.1,58.47027); graph->SetPoint(17,0.1,0.06736367); TH1F *Graph17 = new TH1F("Graph17","Graph",100,0,8.9); Graph17->SetMinimum(0); Graph17->SetMaximum(81.82324); Graph17->SetDirectory(0); Graph17->SetStats(0); Graph17->GetXaxis()->SetLabelFont(42); Graph17->GetXaxis()->SetLabelOffset(0.05); Graph17->GetXaxis()->SetLabelSize(0.05); Graph17->GetXaxis()->SetTitleSize(0.055); Graph17->GetXaxis()->SetTitleOffset(0.5); Graph17->GetXaxis()->SetTitleFont(42); Graph17->GetYaxis()->SetLabelFont(42); Graph17->GetYaxis()->SetLabelOffset(0.008); Graph17->GetYaxis()->SetLabelSize(0.05); Graph17->GetYaxis()->SetTitleSize(0.055); Graph17->GetYaxis()->SetTitleOffset(1.8); Graph17->GetYaxis()->SetTitleFont(42); graph->SetHistogram(Graph17); graph->Draw("f"); TH1D *Process_8_0__80 = new TH1D("Process_8_0__80","Process_8_0",50,0,10); Process_8_0__80->SetBinContent(6,61); Process_8_0__80->SetBinContent(11,65); Process_8_0__80->SetBinContent(16,48); Process_8_0__80->SetBinContent(21,9); Process_8_0__80->SetBinContent(26,4); Process_8_0__80->SetBinContent(36,1); Process_8_0__80->SetBinError(6,7.81025); Process_8_0__80->SetBinError(11,8.062258); Process_8_0__80->SetBinError(16,6.928203); Process_8_0__80->SetBinError(21,3); Process_8_0__80->SetBinError(26,2); Process_8_0__80->SetBinError(36,1); Process_8_0__80->SetMaximum(94.98094); Process_8_0__80->SetEntries(188); Process_8_0__80->SetDirectory(0); Process_8_0__80->SetStats(0); Process_8_0__80->SetMarkerStyle(20); Process_8_0__80->GetXaxis()->SetTitle("NVtx"); Process_8_0__80->GetYaxis()->SetLabelFont(42); Process_8_0__80->GetYaxis()->SetLabelOffset(0.008); Process_8_0__80->GetYaxis()->SetLabelSize(0.05); Process_8_0__80->GetYaxis()->SetTitleSize(0.055); Process_8_0__80->GetYaxis()->SetTitleOffset(1.8); Process_8_0__80->GetYaxis()->SetTitleFont(42); Process_8_0__80->Draw("PESAME"); TH1D *Rescaled0_7__81 = new TH1D("Rescaled0_7__81","Process_7_0",50,0,10); Rescaled0_7__81->SetBinContent(6,0.3293695); Rescaled0_7__81->SetBinContent(11,0.3428556); Rescaled0_7__81->SetBinContent(16,0.1796428); Rescaled0_7__81->SetBinContent(21,0.06886602); Rescaled0_7__81->SetBinContent(26,0.03042329); Rescaled0_7__81->SetBinContent(31,0.002090062); Rescaled0_7__81->SetBinError(6,0.02451487); Rescaled0_7__81->SetBinError(11,0.02826578); Rescaled0_7__81->SetBinError(16,0.01894795); Rescaled0_7__81->SetBinError(21,0.01170403); Rescaled0_7__81->SetBinError(26,0.009194733); Rescaled0_7__81->SetBinError(31,0.001079685); Rescaled0_7__81->SetEntries(16905); Rescaled0_7__81->SetDirectory(0); Rescaled0_7__81->SetStats(0); Int_t ci; // for color index setting ci = TColor::GetColor("#000000"); Rescaled0_7__81->SetLineColor(ci); Rescaled0_7__81->GetXaxis()->SetTitle("NVtx"); Rescaled0_7__81->GetYaxis()->SetLabelFont(42); Rescaled0_7__81->GetYaxis()->SetLabelOffset(0.008); Rescaled0_7__81->GetYaxis()->SetLabelSize(0.05); Rescaled0_7__81->GetYaxis()->SetTitleSize(0.055); Rescaled0_7__81->GetYaxis()->SetTitleOffset(1.8); Rescaled0_7__81->GetYaxis()->SetTitleFont(42); Rescaled0_7__81->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); }