void atlasEstimation_inc() { //=========Macro generated from canvas: atlasEstimation/atlasEstimation_inc/atlasEstimation/atlasEstimation_inc //========= (Wed Jun 15 10:23:06 2016) by ROOT version6.02/05 TCanvas *atlasEstimation/atlasEstimation_inc = new TCanvas("atlasEstimation/atlasEstimation_inc", "atlasEstimation/atlasEstimation_inc",0,0,600,600); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); atlasEstimation/atlasEstimation_inc->SetHighLightColor(2); atlasEstimation/atlasEstimation_inc->Range(0,0,1,1); atlasEstimation/atlasEstimation_inc->SetFillColor(0); atlasEstimation/atlasEstimation_inc->SetBorderMode(0); atlasEstimation/atlasEstimation_inc->SetBorderSize(2); atlasEstimation/atlasEstimation_inc->SetTickx(1); atlasEstimation/atlasEstimation_inc->SetTicky(1); atlasEstimation/atlasEstimation_inc->SetLeftMargin(0.13); atlasEstimation/atlasEstimation_inc->SetRightMargin(0.05); atlasEstimation/atlasEstimation_inc->SetTopMargin(0.08); atlasEstimation/atlasEstimation_inc->SetBottomMargin(0.13); atlasEstimation/atlasEstimation_inc->SetFrameFillStyle(0); atlasEstimation/atlasEstimation_inc->SetFrameBorderMode(0); // ------------>Primitives in pad: pad1 TPad *pad1 = new TPad("pad1", "pad1",0,0.25,1,1); pad1->Draw(); pad1->cd(); pad1->Range(-42.01219,-0.5370213,281.1585,3.048326); pad1->SetFillColor(0); pad1->SetBorderMode(0); pad1->SetBorderSize(2); pad1->SetLogy(); pad1->SetTickx(1); pad1->SetTicky(1); pad1->SetLeftMargin(0.13); pad1->SetRightMargin(0.05); pad1->SetTopMargin(0.08); pad1->SetFrameFillStyle(0); pad1->SetFrameBorderMode(0); pad1->SetFrameFillStyle(0); pad1->SetFrameBorderMode(0); THStack * = new THStack(); ->SetName(""); ->SetTitle(""); Double_t xAxis1[11] = {0, 15, 30, 45, 60, 75, 90, 135, 185, 225, 265}; TH1F *_stack_1 = new TH1F("_stack_1","",10, xAxis1); _stack_1->SetMinimum(0.6629998); _stack_1->SetMaximum(577.4288); _stack_1->SetDirectory(0); _stack_1->SetStats(0); _stack_1->SetLineWidth(2); _stack_1->SetMarkerStyle(20); _stack_1->GetXaxis()->SetLabelFont(42); _stack_1->GetXaxis()->SetLabelOffset(0.007); _stack_1->GetXaxis()->SetTitleSize(0.05); _stack_1->GetXaxis()->SetTitleFont(42); _stack_1->GetYaxis()->SetLabelFont(42); _stack_1->GetYaxis()->SetLabelOffset(0.007); _stack_1->GetYaxis()->SetTitleSize(0.05); _stack_1->GetYaxis()->SetTitleOffset(1.1); _stack_1->GetYaxis()->SetTitleFont(42); _stack_1->GetZaxis()->SetLabelFont(42); _stack_1->GetZaxis()->SetLabelOffset(0.007); _stack_1->GetZaxis()->SetTitleSize(0.05); _stack_1->GetZaxis()->SetTitleFont(42); ->SetHistogram(_stack_1); Double_t xAxis2[11] = {0, 15, 30, 45, 60, 75, 90, 135, 185, 225, 265}; TH1F *atlas_pos_of1 = new TH1F("atlas_pos_of1","",10, xAxis2); atlas_pos_of1->SetBinContent(1,3.778486); atlas_pos_of1->SetBinContent(2,4.247481); atlas_pos_of1->SetBinContent(3,3.837394); atlas_pos_of1->SetBinContent(4,2.979689); atlas_pos_of1->SetBinContent(5,4.208699); atlas_pos_of1->SetBinContent(6,3.266187); atlas_pos_of1->SetBinContent(7,6.97086); atlas_pos_of1->SetBinContent(8,4.234404); atlas_pos_of1->SetBinContent(9,1.60535); atlas_pos_of1->SetBinContent(10,1.998026); atlas_pos_of1->SetBinError(1,87.58956); atlas_pos_of1->SetBinError(2,46.39633); atlas_pos_of1->SetBinError(3,18.59548); atlas_pos_of1->SetBinError(4,6.358853); atlas_pos_of1->SetBinError(5,1.924479); atlas_pos_of1->SetBinError(6,0.5412378); atlas_pos_of1->SetBinError(7,0.34882); atlas_pos_of1->SetBinError(8,0.03305487); atlas_pos_of1->SetBinError(9,0.02247354); atlas_pos_of1->SetBinError(10,0.0009027725); atlas_pos_of1->SetEntries(40); atlas_pos_of1->SetDirectory(0); atlas_pos_of1->SetStats(0); atlas_pos_of1->SetFillColor(ci); atlas_pos_of1->SetLineWidth(2); atlas_pos_of1->SetMarkerStyle(20); atlas_pos_of1->GetXaxis()->SetTitle("JZB [GeV]"); atlas_pos_of1->GetXaxis()->SetLabelFont(42); atlas_pos_of1->GetXaxis()->SetLabelOffset(0.007); atlas_pos_of1->GetXaxis()->SetTitleSize(0.05); atlas_pos_of1->GetXaxis()->SetTitleFont(42); atlas_pos_of1->GetYaxis()->SetTitle("# events"); atlas_pos_of1->GetYaxis()->SetLabelFont(42); atlas_pos_of1->GetYaxis()->SetLabelOffset(0.007); atlas_pos_of1->GetYaxis()->SetTitleSize(0.05); atlas_pos_of1->GetYaxis()->SetTitleOffset(1.1); atlas_pos_of1->GetYaxis()->SetTitleFont(42); atlas_pos_of1->GetZaxis()->SetLabelFont(42); atlas_pos_of1->GetZaxis()->SetLabelOffset(0.007); atlas_pos_of1->GetZaxis()->SetTitleSize(0.05); atlas_pos_of1->GetZaxis()->SetTitleFont(42); ->Add(atlas_pos_of,""); Double_t xAxis3[11] = {0, 15, 30, 45, 60, 75, 90, 135, 185, 225, 265}; TH1F *atlas_neg_sf2 = new TH1F("atlas_neg_sf2","",10, xAxis3); atlas_neg_sf2->SetBinContent(1,385.136); atlas_neg_sf2->SetBinContent(2,203.7261); atlas_neg_sf2->SetBinContent(3,81.83223); atlas_neg_sf2->SetBinContent(4,27.09665); atlas_neg_sf2->SetBinContent(5,8.10939); atlas_neg_sf2->SetBinContent(6,1.976336); atlas_neg_sf2->SetBinContent(7,1.261297); atlas_neg_sf2->SetBinContent(8,0.06813328); atlas_neg_sf2->SetBinContent(9,0.0240074); atlas_neg_sf2->SetBinContent(10,0.001387888); atlas_neg_sf2->SetBinError(1,5.067622); atlas_neg_sf2->SetBinError(2,3.239047); atlas_neg_sf2->SetBinError(3,2.07551); atlas_neg_sf2->SetBinError(4,1.199113); atlas_neg_sf2->SetBinError(5,0.577601); atlas_neg_sf2->SetBinError(6,0.3194784); atlas_neg_sf2->SetBinError(7,0.2045099); atlas_neg_sf2->SetBinError(8,0.02960046); atlas_neg_sf2->SetBinError(9,0.02131222); atlas_neg_sf2->SetBinError(10,0.0008010811); atlas_neg_sf2->SetEntries(11969.9); atlas_neg_sf2->SetDirectory(0); atlas_neg_sf2->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000cc"); atlas_neg_sf2->SetFillColor(ci); atlas_neg_sf2->SetLineWidth(2); atlas_neg_sf2->SetMarkerStyle(20); atlas_neg_sf2->GetXaxis()->SetTitle("JZB [GeV]"); atlas_neg_sf2->GetXaxis()->SetLabelFont(42); atlas_neg_sf2->GetXaxis()->SetLabelOffset(0.007); atlas_neg_sf2->GetXaxis()->SetTitleSize(0.05); atlas_neg_sf2->GetXaxis()->SetTitleFont(42); atlas_neg_sf2->GetYaxis()->SetTitle("# events"); atlas_neg_sf2->GetYaxis()->SetLabelFont(42); atlas_neg_sf2->GetYaxis()->SetLabelOffset(0.007); atlas_neg_sf2->GetYaxis()->SetTitleSize(0.05); atlas_neg_sf2->GetYaxis()->SetTitleOffset(1.1); atlas_neg_sf2->GetYaxis()->SetTitleFont(42); atlas_neg_sf2->GetZaxis()->SetLabelFont(42); atlas_neg_sf2->GetZaxis()->SetLabelOffset(0.007); atlas_neg_sf2->GetZaxis()->SetTitleSize(0.05); atlas_neg_sf2->GetZaxis()->SetTitleFont(42); ->Add(atlas_neg_sf,""); ->Draw("hist"); Double_t xAxis4[11] = {0, 15, 30, 45, 60, 75, 90, 135, 185, 225, 265}; TH1F *atlas_pos_sf3 = new TH1F("atlas_pos_sf3","",10, xAxis4); atlas_pos_sf3->SetBinContent(1,371.0167); atlas_pos_sf3->SetBinContent(2,228.0246); atlas_pos_sf3->SetBinContent(3,101.5218); atlas_pos_sf3->SetBinContent(4,38.7939); atlas_pos_sf3->SetBinContent(5,14.33578); atlas_pos_sf3->SetBinContent(6,6.422007); atlas_pos_sf3->SetBinContent(7,8.403627); atlas_pos_sf3->SetBinContent(8,6.123325); atlas_pos_sf3->SetBinContent(9,1.421122); atlas_pos_sf3->SetBinContent(10,2.524842); atlas_pos_sf3->SetBinError(1,4.706212); atlas_pos_sf3->SetBinError(2,3.659796); atlas_pos_sf3->SetBinError(3,2.26289); atlas_pos_sf3->SetBinError(4,1.576571); atlas_pos_sf3->SetBinError(5,0.87918); atlas_pos_sf3->SetBinError(6,0.5837917); atlas_pos_sf3->SetBinError(7,0.8502366); atlas_pos_sf3->SetBinError(8,0.7852046); atlas_pos_sf3->SetBinError(9,0.3704152); atlas_pos_sf3->SetBinError(10,0.463157); atlas_pos_sf3->SetEntries(20); atlas_pos_sf3->SetDirectory(0); atlas_pos_sf3->SetStats(0); atlas_pos_sf3->SetLineWidth(2); atlas_pos_sf3->SetMarkerStyle(20); atlas_pos_sf3->GetXaxis()->SetTitle("JZB [GeV]"); atlas_pos_sf3->GetXaxis()->SetLabelFont(42); atlas_pos_sf3->GetXaxis()->SetLabelOffset(0.007); atlas_pos_sf3->GetXaxis()->SetTitleSize(0.05); atlas_pos_sf3->GetXaxis()->SetTitleFont(42); atlas_pos_sf3->GetYaxis()->SetTitle("# events"); atlas_pos_sf3->GetYaxis()->SetLabelFont(42); atlas_pos_sf3->GetYaxis()->SetLabelOffset(0.007); atlas_pos_sf3->GetYaxis()->SetTitleSize(0.05); atlas_pos_sf3->GetYaxis()->SetTitleOffset(1.1); atlas_pos_sf3->GetYaxis()->SetTitleFont(42); atlas_pos_sf3->GetZaxis()->SetLabelFont(42); atlas_pos_sf3->GetZaxis()->SetLabelOffset(0.007); atlas_pos_sf3->GetZaxis()->SetTitleSize(0.05); atlas_pos_sf3->GetZaxis()->SetTitleFont(42); atlas_pos_sf3->Draw("E,SAME"); TLegend *leg = new TLegend(0.7,0.55,0.9,0.87,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.04); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(0); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("atlas_pos_of","FS background","F"); entry->SetFillColor(ci); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("atlas_pos_sf","Observed","P"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(20); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("atlas_neg_sf","Drell-Yan","F"); ci = TColor::GetColor("#0000cc"); entry->SetFillColor(ci); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); TLatex * tex = new TLatex(0.21,0.93,"CMS"); tex->SetNDC(); tex->SetTextAlign(31); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.33,0.93,"Simulation"); tex->SetNDC(); tex->SetTextAlign(31); tex->SetTextFont(42); tex->SetTextSize(0.03); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.9,0.93,"2.3 fb^{-1} (13 TeV)"); tex->SetNDC(); tex->SetTextAlign(31); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); pad1->Modified(); atlasEstimation/atlasEstimation_inc->cd(); // ------------>Primitives in pad: pad2 TPad *pad2 = new TPad("pad2", "pad2",0,0.05,1,0.25); pad2->Draw(); pad2->cd(); pad2->Range(-42.01219,-1,281.1585,2.333333); pad2->SetFillColor(0); pad2->SetBorderMode(0); pad2->SetBorderSize(2); pad2->SetTickx(1); pad2->SetTicky(1); pad2->SetLeftMargin(0.13); pad2->SetRightMargin(0.05); pad2->SetBottomMargin(0.3); pad2->SetFrameFillStyle(0); pad2->SetFrameBorderMode(0); pad2->SetFrameFillStyle(0); pad2->SetFrameBorderMode(0); Double_t xAxis5[11] = {0, 15, 30, 45, 60, 75, 90, 135, 185, 225, 265}; TH1F *atlas_pos_of_ratio4 = new TH1F("atlas_pos_of_ratio4","",10, xAxis5); atlas_pos_of_ratio4->SetBinContent(1,0.95398); atlas_pos_of_ratio4->SetBinContent(2,1.096411); atlas_pos_of_ratio4->SetBinContent(3,1.185039); atlas_pos_of_ratio4->SetBinContent(4,1.289848); atlas_pos_of_ratio4->SetBinContent(5,1.163799); atlas_pos_of_ratio4->SetBinContent(6,1.224984); atlas_pos_of_ratio4->SetBinContent(7,1.020829); atlas_pos_of_ratio4->SetBinContent(8,1.423189); atlas_pos_of_ratio4->SetBinContent(9,0.872198); atlas_pos_of_ratio4->SetBinContent(10,1.262791); atlas_pos_of_ratio4->SetBinError(1,0.2155503); atlas_pos_of_ratio4->SetBinError(2,0.2458217); atlas_pos_of_ratio4->SetBinError(3,0.2601666); atlas_pos_of_ratio4->SetBinError(4,0.2824183); atlas_pos_of_ratio4->SetBinError(5,0.2028093); atlas_pos_of_ratio4->SetBinError(6,0.1843014); atlas_pos_of_ratio4->SetBinError(7,0.1148104); atlas_pos_of_ratio4->SetBinError(8,0.1830873); atlas_pos_of_ratio4->SetBinError(9,0.227942); atlas_pos_of_ratio4->SetBinError(10,0.2316477); atlas_pos_of_ratio4->SetMinimum(0); atlas_pos_of_ratio4->SetMaximum(2); atlas_pos_of_ratio4->SetEntries(274.1857); atlas_pos_of_ratio4->SetStats(0); ci = TColor::GetColor("#cccccc"); atlas_pos_of_ratio4->SetFillColor(ci); atlas_pos_of_ratio4->SetLineWidth(2); atlas_pos_of_ratio4->SetMarkerStyle(20); atlas_pos_of_ratio4->SetMarkerSize(0); atlas_pos_of_ratio4->GetXaxis()->SetLabelFont(42); atlas_pos_of_ratio4->GetXaxis()->SetLabelOffset(0.007); atlas_pos_of_ratio4->GetXaxis()->SetLabelSize(0.12); atlas_pos_of_ratio4->GetXaxis()->SetTitleSize(0.14); atlas_pos_of_ratio4->GetXaxis()->SetTitleFont(42); atlas_pos_of_ratio4->GetYaxis()->SetTitle("Ratio"); atlas_pos_of_ratio4->GetYaxis()->CenterTitle(true); atlas_pos_of_ratio4->GetYaxis()->SetNdivisions(4); atlas_pos_of_ratio4->GetYaxis()->SetLabelFont(42); atlas_pos_of_ratio4->GetYaxis()->SetLabelOffset(0.007); atlas_pos_of_ratio4->GetYaxis()->SetLabelSize(0.12); atlas_pos_of_ratio4->GetYaxis()->SetTitleSize(0.14); atlas_pos_of_ratio4->GetYaxis()->SetTitleOffset(0.3); atlas_pos_of_ratio4->GetYaxis()->SetTitleFont(42); atlas_pos_of_ratio4->GetZaxis()->SetLabelFont(42); atlas_pos_of_ratio4->GetZaxis()->SetLabelOffset(0.007); atlas_pos_of_ratio4->GetZaxis()->SetTitleSize(0.05); atlas_pos_of_ratio4->GetZaxis()->SetTitleFont(42); atlas_pos_of_ratio4->Draw("E2"); TLine *line = new TLine(0,1,265,1); ci = TColor::GetColor("#666666"); line->SetLineColor(ci); line->Draw(); pad2->Modified(); atlasEstimation/atlasEstimation_inc->cd(); atlasEstimation/atlasEstimation_inc->Modified(); atlasEstimation/atlasEstimation_inc->cd(); atlasEstimation/atlasEstimation_inc->SetSelected(atlasEstimation/atlasEstimation_inc); }