void sigee() { //=========Macro generated from canvas: stopStuff/sigee/stopStuff/sigee //========= (Fri Sep 30 12:20:04 2016) by ROOT version6.06/01 TCanvas *stopStuff/sigee = new TCanvas("stopStuff/sigee", "stopStuff/sigee",0,0,700,500); stopStuff/sigee->SetHighLightColor(2); stopStuff/sigee->Range(-40,-1.979669,360,-0.000644534); stopStuff/sigee->SetFillColor(0); stopStuff/sigee->SetBorderMode(0); stopStuff/sigee->SetBorderSize(2); stopStuff/sigee->SetLogy(); stopStuff/sigee->SetRightMargin(0.05); stopStuff/sigee->SetFrameBorderMode(0); stopStuff/sigee->SetFrameBorderMode(0); Double_t xAxis2[9] = {0, 20, 40, 60, 80, 100, 140, 240, 340}; TH1F *stack_ee_treeHisto__2 = new TH1F("stack_ee_treeHisto__2","SMS-T2tt_mStop-150to250",8, xAxis2); stack_ee_treeHisto__2->SetBinContent(1,0.1864545); stack_ee_treeHisto__2->SetBinContent(2,0.033057); stack_ee_treeHisto__2->SetBinContent(3,0.06477192); stack_ee_treeHisto__2->SetBinContent(4,0.06444196); stack_ee_treeHisto__2->SetBinContent(5,0.08459464); stack_ee_treeHisto__2->SetBinContent(6,0.1618405); stack_ee_treeHisto__2->SetBinContent(7,0.3341213); stack_ee_treeHisto__2->SetBinContent(8,0.07071827); stack_ee_treeHisto__2->SetBinError(1,0.0450141); stack_ee_treeHisto__2->SetBinError(2,0.01772306); stack_ee_treeHisto__2->SetBinError(3,0.02557483); stack_ee_treeHisto__2->SetBinError(4,0.02658084); stack_ee_treeHisto__2->SetBinError(5,0.02942299); stack_ee_treeHisto__2->SetBinError(6,0.03748709); stack_ee_treeHisto__2->SetBinError(7,0.05715947); stack_ee_treeHisto__2->SetBinError(8,0.02395167); stack_ee_treeHisto__2->SetEntries(8); TPaveStats *ptstats = new TPaveStats(0.78,0.775,0.98,0.935,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetTextAlign(12); ptstats->SetTextFont(42); TText *AText = ptstats->AddText("stack_ee_treeHisto"); AText->SetTextSize(0.0368); AText = ptstats->AddText("Entries = 8 "); AText = ptstats->AddText("Mean = 121.6"); AText = ptstats->AddText("Std Dev = 82.2"); ptstats->SetOptStat(1111); ptstats->SetOptFit(0); ptstats->Draw(); stack_ee_treeHisto__2->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(stack_ee_treeHisto__2); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000ff"); stack_ee_treeHisto__2->SetLineColor(ci); ci = TColor::GetColor("#0000ff"); stack_ee_treeHisto__2->SetMarkerColor(ci); stack_ee_treeHisto__2->GetXaxis()->SetTitle("m_{T2} [GeV]"); stack_ee_treeHisto__2->GetXaxis()->SetLabelFont(42); stack_ee_treeHisto__2->GetXaxis()->SetLabelSize(0.035); stack_ee_treeHisto__2->GetXaxis()->SetTitleSize(0.035); stack_ee_treeHisto__2->GetXaxis()->SetTitleFont(42); stack_ee_treeHisto__2->GetYaxis()->SetTitle("# events"); stack_ee_treeHisto__2->GetYaxis()->SetLabelFont(42); stack_ee_treeHisto__2->GetYaxis()->SetLabelSize(0.035); stack_ee_treeHisto__2->GetYaxis()->SetTitleSize(0.035); stack_ee_treeHisto__2->GetYaxis()->SetTitleFont(42); stack_ee_treeHisto__2->GetZaxis()->SetLabelFont(42); stack_ee_treeHisto__2->GetZaxis()->SetLabelSize(0.035); stack_ee_treeHisto__2->GetZaxis()->SetTitleSize(0.035); stack_ee_treeHisto__2->GetZaxis()->SetTitleFont(42); stack_ee_treeHisto__2->Draw("HIST"); TLegend *leg = new TLegend(0.6,0.6,0.8,0.8,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.04); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(0); leg->SetFillColor(0); leg->SetFillStyle(1001); leg->Draw(); tex = new TLatex(0.21,0.93,"CMS"); tex->SetNDC(); tex->SetTextAlign(31); tex->SetTextFont(61); tex->SetTextSize(0.04); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.37,0.93,"Simulation"); tex->SetNDC(); tex->SetTextAlign(31); tex->SetTextFont(52); tex->SetTextSize(0.03); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.9,0.93,"12.9 fb^{-1} (13 TeV)"); tex->SetNDC(); tex->SetTextAlign(31); tex->SetTextFont(42); tex->SetTextSize(0.04); tex->SetLineWidth(2); tex->Draw(); TPaveText *pt = new TPaveText(0.273046,0.9339831,0.726954,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); AText = pt->AddText("SMS-T2tt_mStop-150to250"); pt->Draw(); stopStuff/sigee->Modified(); stopStuff/sigee->cd(); stopStuff/sigee->SetSelected(stopStuff/sigee); }