{ //=========Macro generated from canvas: ROOTPTcone3/ROOT isolepton PTconeSetOptStat(1111111); TCanvas *ROOTPTcone3 = new TCanvas("ROOTPTcone3", "ROOT isolepton PTconeRange(-1.23878,-69.5025,11.2567,622.565); ROOTPTcone3->SetBorderSize(2); ROOTPTcone3->SetFrameFillColor(0); THStack *hsniso0 = new THStack(); hsniso0->SetName("hsniso0"); hsniso0->SetTitle("N isolated electrons"); TH1 *h0iso = new TH1F("h0iso","NISOLLEP",10,0,10); h0iso->SetEntries(3806); h0iso->SetBinContent(1,2.05303); h0iso->SetBinContent(2,11.5483); h0iso->SetBinContent(3,84.6877); h0iso->SetBinContent(4,323.348); h0iso->SetBinContent(5,528.134); h0iso->SetBinContent(6,25.1496); h0iso->SetBinContent(7,1.28314); h0iso->SetBinContent(8,0.513257); h0iso->SetBinError(1,0.725854); h0iso->SetBinError(2,1.72151); h0iso->SetBinError(3,4.66189); h0iso->SetBinError(4,9.10935); h0iso->SetBinError(5,11.6419); h0iso->SetBinError(6,2.54049); h0iso->SetBinError(7,0.573838); h0iso->SetBinError(8,0.362927); TPaveStats *ptstats = new TPaveStats(0.78,0.715,0.98,0.995,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(2); ptstats->SetFillColor(19); ptstats->SetTextAlign(12); TText *text = ptstats->AddText("h0iso"); text->SetTextSize(0.0368); text = ptstats->AddText("Entries = 3806 "); text = ptstats->AddText("Mean = 3.482"); text = ptstats->AddText("RMS = 0.7648"); text = ptstats->AddText("Underflow = 0"); text = ptstats->AddText("Overflow = 0"); text = ptstats->AddText("Integral = 976.7"); ptstats->Draw(); h0iso->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(h0iso->GetListOfFunctions()); hsniso0->Add(h0iso,"s"); hsniso0->Draw("nostack"); TPaveText *pt = new TPaveText(0.01,0.95141,0.328851,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(2); pt->SetFillColor(19); text = pt->AddText("N isolated electrons"); pt->Draw(); TLegend *leg = new TLegend(0.7,0.2,0.9,0.4,NULL,"brNDC"); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(19); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("h0iso","signal","L"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextAlign(12); entry->SetTextColor(1); leg->Draw(); ROOTPTcone3->Modified(); ROOTPTcone3->cd(); ROOTPTcone3->SetSelected(ROOTPTcone3); }