void atlasEstimation_inc() { //=========Macro generated from canvas: atlasEstimation/atlasEstimation_inc/atlasEstimation/atlasEstimation_inc //========= (Mon Jun 20 11:52:11 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.4962544,281.1585,3.068097); 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.7247376); _stack_1->SetMaximum(606.6654); _stack_1->SetDirectory(0); _stack_1->SetStats(0); _stack_1->SetLineWidth(2); _stack_1->SetMarkerStyle(20); _stack_1->GetXaxis()->SetTitle("JZB [GeV]"); _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()->SetTitle("Events"); _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_ofCentral1 = new TH1F("atlas_pos_ofCentral1","",10, xAxis2); atlas_pos_ofCentral1->SetBinContent(1,3.393606); atlas_pos_ofCentral1->SetBinContent(2,3.981339); atlas_pos_ofCentral1->SetBinContent(3,4.065734); atlas_pos_ofCentral1->SetBinContent(4,3.354327); atlas_pos_ofCentral1->SetBinContent(5,4.04183); atlas_pos_ofCentral1->SetBinContent(6,3.386711); atlas_pos_ofCentral1->SetBinContent(7,7.089369); atlas_pos_ofCentral1->SetBinContent(8,4.14171); atlas_pos_ofCentral1->SetBinContent(9,1.63483); atlas_pos_ofCentral1->SetBinContent(10,2.061239); atlas_pos_ofCentral1->SetBinError(1,88.07685); atlas_pos_ofCentral1->SetBinError(2,47.48699); atlas_pos_ofCentral1->SetBinError(3,18.86384); atlas_pos_ofCentral1->SetBinError(4,6.865429); atlas_pos_ofCentral1->SetBinError(5,2.174148); atlas_pos_ofCentral1->SetBinError(6,0.6325776); atlas_pos_ofCentral1->SetBinError(7,0.384921); atlas_pos_ofCentral1->SetBinError(8,0.03042898); atlas_pos_ofCentral1->SetBinError(9,0.02979596); atlas_pos_ofCentral1->SetBinError(10,0.0009027725); atlas_pos_ofCentral1->SetEntries(40); atlas_pos_ofCentral1->SetStats(0); atlas_pos_ofCentral1->SetFillColor(ci); atlas_pos_ofCentral1->SetLineWidth(2); atlas_pos_ofCentral1->SetMarkerStyle(20); atlas_pos_ofCentral1->GetXaxis()->SetTitle("JZB [GeV]"); atlas_pos_ofCentral1->GetXaxis()->SetLabelFont(42); atlas_pos_ofCentral1->GetXaxis()->SetLabelOffset(0.007); atlas_pos_ofCentral1->GetXaxis()->SetTitleSize(0.05); atlas_pos_ofCentral1->GetXaxis()->SetTitleFont(42); atlas_pos_ofCentral1->GetYaxis()->SetTitle("# events"); atlas_pos_ofCentral1->GetYaxis()->SetLabelFont(42); atlas_pos_ofCentral1->GetYaxis()->SetLabelOffset(0.007); atlas_pos_ofCentral1->GetYaxis()->SetTitleSize(0.05); atlas_pos_ofCentral1->GetYaxis()->SetTitleOffset(1.1); atlas_pos_ofCentral1->GetYaxis()->SetTitleFont(42); atlas_pos_ofCentral1->GetZaxis()->SetLabelFont(42); atlas_pos_ofCentral1->GetZaxis()->SetLabelOffset(0.007); atlas_pos_ofCentral1->GetZaxis()->SetTitleSize(0.05); atlas_pos_ofCentral1->GetZaxis()->SetTitleFont(42); ->Add(atlas_pos_ofCentral,""); Double_t xAxis3[11] = {0, 15, 30, 45, 60, 75, 90, 135, 185, 225, 265}; TH1F *atlas_neg_sfCentral2 = new TH1F("atlas_neg_sfCentral2","",10, xAxis3); atlas_neg_sfCentral2->SetBinContent(1,386.952); atlas_neg_sfCentral2->SetBinContent(2,208.8557); atlas_neg_sfCentral2->SetBinContent(3,82.88878); atlas_neg_sfCentral2->SetBinContent(4,29.34742); atlas_neg_sfCentral2->SetBinContent(5,9.18962); atlas_neg_sfCentral2->SetBinContent(6,2.384467); atlas_neg_sfCentral2->SetBinContent(7,1.469056); atlas_neg_sfCentral2->SetBinContent(8,0.06871309); atlas_neg_sfCentral2->SetBinContent(9,0.04088601); atlas_neg_sfCentral2->SetBinContent(10,0.001387888); atlas_neg_sfCentral2->SetBinError(1,5.185501); atlas_neg_sfCentral2->SetBinError(2,3.361741); atlas_neg_sfCentral2->SetBinError(3,2.03621); atlas_neg_sfCentral2->SetBinError(4,1.365034); atlas_neg_sfCentral2->SetBinError(5,0.5633921); atlas_neg_sfCentral2->SetBinError(6,0.3329848); atlas_neg_sfCentral2->SetBinError(7,0.2108458); atlas_neg_sfCentral2->SetBinError(8,0.0266658); atlas_neg_sfCentral2->SetBinError(9,0.02718636); atlas_neg_sfCentral2->SetBinError(10,0.0008010811); atlas_neg_sfCentral2->SetEntries(11721.27); atlas_neg_sfCentral2->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000cc"); atlas_neg_sfCentral2->SetFillColor(ci); atlas_neg_sfCentral2->SetLineWidth(2); atlas_neg_sfCentral2->SetMarkerStyle(20); atlas_neg_sfCentral2->GetXaxis()->SetTitle("JZB [GeV]"); atlas_neg_sfCentral2->GetXaxis()->SetLabelFont(42); atlas_neg_sfCentral2->GetXaxis()->SetLabelOffset(0.007); atlas_neg_sfCentral2->GetXaxis()->SetTitleSize(0.05); atlas_neg_sfCentral2->GetXaxis()->SetTitleFont(42); atlas_neg_sfCentral2->GetYaxis()->SetTitle("# events"); atlas_neg_sfCentral2->GetYaxis()->SetLabelFont(42); atlas_neg_sfCentral2->GetYaxis()->SetLabelOffset(0.007); atlas_neg_sfCentral2->GetYaxis()->SetTitleSize(0.05); atlas_neg_sfCentral2->GetYaxis()->SetTitleOffset(1.1); atlas_neg_sfCentral2->GetYaxis()->SetTitleFont(42); atlas_neg_sfCentral2->GetZaxis()->SetLabelFont(42); atlas_neg_sfCentral2->GetZaxis()->SetLabelOffset(0.007); atlas_neg_sfCentral2->GetZaxis()->SetTitleSize(0.05); atlas_neg_sfCentral2->GetZaxis()->SetTitleFont(42); ->Add(atlas_neg_sfCentral,""); Double_t xAxis4[11] = {0, 15, 30, 45, 60, 75, 90, 135, 185, 225, 265}; TH1F *others_sfCentral3 = new TH1F("others_sfCentral3","",10, xAxis4); others_sfCentral3->SetBinContent(1,19.0813); others_sfCentral3->SetBinContent(2,11.76682); others_sfCentral3->SetBinContent(3,5.879333); others_sfCentral3->SetBinContent(4,2.06651); others_sfCentral3->SetBinContent(5,0.7265365); others_sfCentral3->SetBinContent(6,0.2415338); others_sfCentral3->SetBinContent(7,0.3317468); others_sfCentral3->SetBinContent(8,0.1890582); others_sfCentral3->SetBinContent(9,0.09937266); others_sfCentral3->SetBinContent(10,0.4578285); others_sfCentral3->SetBinError(1,0.2569094); others_sfCentral3->SetBinError(2,0.1993618); others_sfCentral3->SetBinError(3,0.139476); others_sfCentral3->SetBinError(4,0.1000571); others_sfCentral3->SetBinError(5,0.06084003); others_sfCentral3->SetBinError(6,0.03920583); others_sfCentral3->SetBinError(7,0.0988603); others_sfCentral3->SetBinError(8,0.09355096); others_sfCentral3->SetBinError(9,0.06872779); others_sfCentral3->SetBinError(10,0.1277379); others_sfCentral3->SetEntries(20); others_sfCentral3->SetStats(0); ci = TColor::GetColor("#990000"); others_sfCentral3->SetFillColor(ci); others_sfCentral3->SetLineWidth(2); others_sfCentral3->SetMarkerStyle(20); others_sfCentral3->GetXaxis()->SetTitle("JZB [GeV]"); others_sfCentral3->GetXaxis()->SetLabelFont(42); others_sfCentral3->GetXaxis()->SetLabelOffset(0.007); others_sfCentral3->GetXaxis()->SetTitleSize(0.05); others_sfCentral3->GetXaxis()->SetTitleFont(42); others_sfCentral3->GetYaxis()->SetTitle("# events"); others_sfCentral3->GetYaxis()->SetLabelFont(42); others_sfCentral3->GetYaxis()->SetLabelOffset(0.007); others_sfCentral3->GetYaxis()->SetTitleSize(0.05); others_sfCentral3->GetYaxis()->SetTitleOffset(1.1); others_sfCentral3->GetYaxis()->SetTitleFont(42); others_sfCentral3->GetZaxis()->SetLabelFont(42); others_sfCentral3->GetZaxis()->SetLabelOffset(0.007); others_sfCentral3->GetZaxis()->SetTitleSize(0.05); others_sfCentral3->GetZaxis()->SetTitleFont(42); ->Add(others_sfCentral,""); ->Draw("hist"); Double_t xAxis5[11] = {0, 15, 30, 45, 60, 75, 90, 135, 185, 225, 265}; TH1F *atlas_pos_sfCentral4 = new TH1F("atlas_pos_sfCentral4","",10, xAxis5); atlas_pos_sfCentral4->SetBinContent(1,365.3349); atlas_pos_sfCentral4->SetBinContent(2,222.7349); atlas_pos_sfCentral4->SetBinContent(3,101.6709); atlas_pos_sfCentral4->SetBinContent(4,38.1805); atlas_pos_sfCentral4->SetBinContent(5,13.67292); atlas_pos_sfCentral4->SetBinContent(6,6.346392); atlas_pos_sfCentral4->SetBinContent(7,8.619731); atlas_pos_sfCentral4->SetBinContent(8,5.951329); atlas_pos_sfCentral4->SetBinContent(9,1.499997); atlas_pos_sfCentral4->SetBinContent(10,2.633814); atlas_pos_sfCentral4->SetBinError(1,4.633466); atlas_pos_sfCentral4->SetBinError(2,3.451851); atlas_pos_sfCentral4->SetBinError(3,2.258121); atlas_pos_sfCentral4->SetBinError(4,1.547617); atlas_pos_sfCentral4->SetBinError(5,0.8487031); atlas_pos_sfCentral4->SetBinError(6,0.5971532); atlas_pos_sfCentral4->SetBinError(7,0.8666711); atlas_pos_sfCentral4->SetBinError(8,0.7796097); atlas_pos_sfCentral4->SetBinError(9,0.3674058); atlas_pos_sfCentral4->SetBinError(10,0.4758039); atlas_pos_sfCentral4->SetEntries(20); atlas_pos_sfCentral4->SetStats(0); atlas_pos_sfCentral4->SetLineWidth(2); atlas_pos_sfCentral4->SetMarkerStyle(20); atlas_pos_sfCentral4->GetXaxis()->SetTitle("JZB [GeV]"); atlas_pos_sfCentral4->GetXaxis()->SetLabelFont(42); atlas_pos_sfCentral4->GetXaxis()->SetLabelOffset(0.007); atlas_pos_sfCentral4->GetXaxis()->SetTitleSize(0.05); atlas_pos_sfCentral4->GetXaxis()->SetTitleFont(42); atlas_pos_sfCentral4->GetYaxis()->SetTitle("# events"); atlas_pos_sfCentral4->GetYaxis()->SetLabelFont(42); atlas_pos_sfCentral4->GetYaxis()->SetLabelOffset(0.007); atlas_pos_sfCentral4->GetYaxis()->SetTitleSize(0.05); atlas_pos_sfCentral4->GetYaxis()->SetTitleOffset(1.1); atlas_pos_sfCentral4->GetYaxis()->SetTitleFont(42); atlas_pos_sfCentral4->GetZaxis()->SetLabelFont(42); atlas_pos_sfCentral4->GetZaxis()->SetLabelOffset(0.007); atlas_pos_sfCentral4->GetZaxis()->SetTitleSize(0.05); atlas_pos_sfCentral4->GetZaxis()->SetTitleFont(42); atlas_pos_sfCentral4->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_sfCentral","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_pos_ofCentral","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_neg_sfCentral","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); entry=leg->AddEntry("others_sfCentral","Other SM","F"); ci = TColor::GetColor("#990000"); 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 xAxis6[11] = {0, 15, 30, 45, 60, 75, 90, 135, 185, 225, 265}; TH1F *atlas_pos_ofCentral_ratio5 = new TH1F("atlas_pos_ofCentral_ratio5","",10, xAxis6); atlas_pos_ofCentral_ratio5->SetBinContent(1,0.9359267); atlas_pos_ofCentral_ratio5->SetBinContent(2,1.046505); atlas_pos_ofCentral_ratio5->SetBinContent(3,1.169242); atlas_pos_ofCentral_ratio5->SetBinContent(4,1.167537); atlas_pos_ofCentral_ratio5->SetBinContent(5,1.033365); atlas_pos_ofCentral_ratio5->SetBinContent(6,1.09967); atlas_pos_ofCentral_ratio5->SetBinContent(7,1.007163); atlas_pos_ofCentral_ratio5->SetBinContent(8,1.413475); atlas_pos_ofCentral_ratio5->SetBinContent(9,0.8951376); atlas_pos_ofCentral_ratio5->SetBinContent(10,1.276923); atlas_pos_ofCentral_ratio5->SetBinError(1,0.2118792); atlas_pos_ofCentral_ratio5->SetBinError(2,0.2346358); atlas_pos_ofCentral_ratio5->SetBinError(3,0.2564462); atlas_pos_ofCentral_ratio5->SetBinError(4,0.254353); atlas_pos_ofCentral_ratio5->SetBinError(5,0.1867675); atlas_pos_ofCentral_ratio5->SetBinError(6,0.1710576); atlas_pos_ofCentral_ratio5->SetBinError(7,0.1136759); atlas_pos_ofCentral_ratio5->SetBinError(8,0.1856593); atlas_pos_ofCentral_ratio5->SetBinError(9,0.2203091); atlas_pos_ofCentral_ratio5->SetBinError(10,0.2306799); atlas_pos_ofCentral_ratio5->SetMinimum(0); atlas_pos_ofCentral_ratio5->SetMaximum(2); atlas_pos_ofCentral_ratio5->SetEntries(274.9457); atlas_pos_ofCentral_ratio5->SetStats(0); atlas_pos_ofCentral_ratio5->SetLineWidth(2); atlas_pos_ofCentral_ratio5->SetMarkerStyle(20); atlas_pos_ofCentral_ratio5->GetXaxis()->SetLabelFont(42); atlas_pos_ofCentral_ratio5->GetXaxis()->SetLabelOffset(0.007); atlas_pos_ofCentral_ratio5->GetXaxis()->SetLabelSize(0.12); atlas_pos_ofCentral_ratio5->GetXaxis()->SetTitleSize(0.14); atlas_pos_ofCentral_ratio5->GetXaxis()->SetTitleFont(42); atlas_pos_ofCentral_ratio5->GetYaxis()->SetTitle("Ratio"); atlas_pos_ofCentral_ratio5->GetYaxis()->CenterTitle(true); atlas_pos_ofCentral_ratio5->GetYaxis()->SetNdivisions(4); atlas_pos_ofCentral_ratio5->GetYaxis()->SetLabelFont(42); atlas_pos_ofCentral_ratio5->GetYaxis()->SetLabelOffset(0.007); atlas_pos_ofCentral_ratio5->GetYaxis()->SetLabelSize(0.12); atlas_pos_ofCentral_ratio5->GetYaxis()->SetTitleSize(0.14); atlas_pos_ofCentral_ratio5->GetYaxis()->SetTitleOffset(0.3); atlas_pos_ofCentral_ratio5->GetYaxis()->SetTitleFont(42); atlas_pos_ofCentral_ratio5->GetZaxis()->SetLabelFont(42); atlas_pos_ofCentral_ratio5->GetZaxis()->SetLabelOffset(0.007); atlas_pos_ofCentral_ratio5->GetZaxis()->SetTitleSize(0.05); atlas_pos_ofCentral_ratio5->GetZaxis()->SetTitleFont(42); atlas_pos_ofCentral_ratio5->Draw("l,"); 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); }