void atlasClosure_inc() { //=========Macro generated from canvas: atlasClosure/atlasClosure_inc/atlasClosure/atlasClosure_inc //========= (Thu Jun 9 15:56:55 2016) by ROOT version6.02/05 TCanvas *atlasClosure/atlasClosure_inc = new TCanvas("atlasClosure/atlasClosure_inc", "atlasClosure/atlasClosure_inc",0,0,600,600); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); atlasClosure/atlasClosure_inc->SetHighLightColor(2); atlasClosure/atlasClosure_inc->Range(0,0,1,1); atlasClosure/atlasClosure_inc->SetFillColor(0); atlasClosure/atlasClosure_inc->SetBorderMode(0); atlasClosure/atlasClosure_inc->SetBorderSize(2); atlasClosure/atlasClosure_inc->SetTickx(1); atlasClosure/atlasClosure_inc->SetTicky(1); atlasClosure/atlasClosure_inc->SetLeftMargin(0.13); atlasClosure/atlasClosure_inc->SetRightMargin(0.05); atlasClosure/atlasClosure_inc->SetTopMargin(0.08); atlasClosure/atlasClosure_inc->SetBottomMargin(0.13); atlasClosure/atlasClosure_inc->SetFrameFillStyle(0); atlasClosure/atlasClosure_inc->SetFrameBorderMode(0); // ------------>Primitives in pad: pad1 TPad *pad1 = new TPad("pad1", "pad1",0,0.25,1,1); pad1->Draw(); pad1->cd(); pad1->Range(-55.4878,-1.1637,371.3415,5.140394); 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); Double_t xAxis7[28] = {0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 210, 220, 230, 240, 250, 300, 350}; TH1F *atlas_pos_sf7 = new TH1F("atlas_pos_sf7","",27, xAxis7); atlas_pos_sf7->SetBinContent(1,22680); atlas_pos_sf7->SetBinContent(2,18476); atlas_pos_sf7->SetBinContent(3,13175); atlas_pos_sf7->SetBinContent(4,8048); atlas_pos_sf7->SetBinContent(5,4595); atlas_pos_sf7->SetBinContent(6,2412); atlas_pos_sf7->SetBinContent(7,1225); atlas_pos_sf7->SetBinContent(8,566); atlas_pos_sf7->SetBinContent(9,269); atlas_pos_sf7->SetBinContent(10,111); atlas_pos_sf7->SetBinContent(11,50); atlas_pos_sf7->SetBinContent(12,26); atlas_pos_sf7->SetBinContent(13,22); atlas_pos_sf7->SetBinContent(14,6); atlas_pos_sf7->SetBinContent(15,5); atlas_pos_sf7->SetBinContent(16,1); atlas_pos_sf7->SetBinContent(17,1); atlas_pos_sf7->SetBinContent(18,1); atlas_pos_sf7->SetBinContent(19,3); atlas_pos_sf7->SetBinContent(20,2); atlas_pos_sf7->SetBinContent(21,1); atlas_pos_sf7->SetBinContent(26,1); atlas_pos_sf7->SetBinError(1,150.6187); atlas_pos_sf7->SetBinError(2,135.9338); atlas_pos_sf7->SetBinError(3,114.7998); atlas_pos_sf7->SetBinError(4,89.74408); atlas_pos_sf7->SetBinError(5,67.80118); atlas_pos_sf7->SetBinError(6,49.15282); atlas_pos_sf7->SetBinError(7,35.02856); atlas_pos_sf7->SetBinError(8,23.83275); atlas_pos_sf7->SetBinError(9,16.46208); atlas_pos_sf7->SetBinError(10,10.63015); atlas_pos_sf7->SetBinError(11,7.211103); atlas_pos_sf7->SetBinError(12,5.09902); atlas_pos_sf7->SetBinError(13,4.690416); atlas_pos_sf7->SetBinError(14,2.44949); atlas_pos_sf7->SetBinError(15,2.645751); atlas_pos_sf7->SetBinError(16,1); atlas_pos_sf7->SetBinError(17,1.732051); atlas_pos_sf7->SetBinError(18,1); atlas_pos_sf7->SetBinError(19,1.732051); atlas_pos_sf7->SetBinError(20,1.414214); atlas_pos_sf7->SetBinError(21,1); atlas_pos_sf7->SetBinError(26,1); atlas_pos_sf7->SetEntries(71638.02); atlas_pos_sf7->SetDirectory(0); atlas_pos_sf7->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#ff0000"); atlas_pos_sf7->SetLineColor(ci); atlas_pos_sf7->SetLineWidth(2); ci = TColor::GetColor("#ff0000"); atlas_pos_sf7->SetMarkerColor(ci); atlas_pos_sf7->SetMarkerStyle(20); atlas_pos_sf7->GetXaxis()->SetTitle("JZB [GeV]"); atlas_pos_sf7->GetXaxis()->SetLabelFont(42); atlas_pos_sf7->GetXaxis()->SetLabelOffset(0.007); atlas_pos_sf7->GetXaxis()->SetTitleSize(0.05); atlas_pos_sf7->GetXaxis()->SetTitleFont(42); atlas_pos_sf7->GetYaxis()->SetTitle("# events"); atlas_pos_sf7->GetYaxis()->SetLabelFont(42); atlas_pos_sf7->GetYaxis()->SetLabelOffset(0.007); atlas_pos_sf7->GetYaxis()->SetTitleSize(0.05); atlas_pos_sf7->GetYaxis()->SetTitleOffset(1.1); atlas_pos_sf7->GetYaxis()->SetTitleFont(42); atlas_pos_sf7->GetZaxis()->SetLabelFont(42); atlas_pos_sf7->GetZaxis()->SetLabelOffset(0.007); atlas_pos_sf7->GetZaxis()->SetTitleSize(0.05); atlas_pos_sf7->GetZaxis()->SetTitleFont(42); atlas_pos_sf7->Draw("E,"); Double_t xAxis8[28] = {0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 210, 220, 230, 240, 250, 300, 350}; TH1F *atlas_neg_sf8 = new TH1F("atlas_neg_sf8","",27, xAxis8); atlas_neg_sf8->SetBinContent(1,23440); atlas_neg_sf8->SetBinContent(2,18406); atlas_neg_sf8->SetBinContent(3,12380); atlas_neg_sf8->SetBinContent(4,7231); atlas_neg_sf8->SetBinContent(5,3930); atlas_neg_sf8->SetBinContent(6,2029); atlas_neg_sf8->SetBinContent(7,1011); atlas_neg_sf8->SetBinContent(8,491); atlas_neg_sf8->SetBinContent(9,223); atlas_neg_sf8->SetBinContent(10,125); atlas_neg_sf8->SetBinContent(11,65); atlas_neg_sf8->SetBinContent(12,41); atlas_neg_sf8->SetBinContent(13,18); atlas_neg_sf8->SetBinContent(14,7); atlas_neg_sf8->SetBinContent(15,11); atlas_neg_sf8->SetBinContent(16,1); atlas_neg_sf8->SetBinContent(17,1); atlas_neg_sf8->SetBinContent(20,1); atlas_neg_sf8->SetBinContent(22,1); atlas_neg_sf8->SetBinContent(23,1); atlas_neg_sf8->SetBinContent(25,1); atlas_neg_sf8->SetBinContent(26,1); atlas_neg_sf8->SetBinContent(27,1); atlas_neg_sf8->SetBinError(1,153.1209); atlas_neg_sf8->SetBinError(2,135.6761); atlas_neg_sf8->SetBinError(3,111.2744); atlas_neg_sf8->SetBinError(4,85.03529); atlas_neg_sf8->SetBinError(5,62.68971); atlas_neg_sf8->SetBinError(6,45.04442); atlas_neg_sf8->SetBinError(7,31.79623); atlas_neg_sf8->SetBinError(8,22.15852); atlas_neg_sf8->SetBinError(9,14.93318); atlas_neg_sf8->SetBinError(10,11.18034); atlas_neg_sf8->SetBinError(11,8.062258); atlas_neg_sf8->SetBinError(12,6.403124); atlas_neg_sf8->SetBinError(13,4.242641); atlas_neg_sf8->SetBinError(14,2.645751); atlas_neg_sf8->SetBinError(15,3.316625); atlas_neg_sf8->SetBinError(16,1); atlas_neg_sf8->SetBinError(17,1); atlas_neg_sf8->SetBinError(20,1); atlas_neg_sf8->SetBinError(22,1); atlas_neg_sf8->SetBinError(23,1); atlas_neg_sf8->SetBinError(25,1); atlas_neg_sf8->SetBinError(26,1); atlas_neg_sf8->SetBinError(27,1); atlas_neg_sf8->SetEntries(69406); atlas_neg_sf8->SetDirectory(0); atlas_neg_sf8->SetStats(0); ci = TColor::GetColor("#0000ff"); atlas_neg_sf8->SetLineColor(ci); atlas_neg_sf8->SetLineWidth(2); ci = TColor::GetColor("#0000ff"); atlas_neg_sf8->SetMarkerColor(ci); atlas_neg_sf8->SetMarkerStyle(20); atlas_neg_sf8->GetXaxis()->SetTitle("JZB [GeV]"); atlas_neg_sf8->GetXaxis()->SetLabelFont(42); atlas_neg_sf8->GetXaxis()->SetLabelOffset(0.007); atlas_neg_sf8->GetXaxis()->SetTitleSize(0.05); atlas_neg_sf8->GetXaxis()->SetTitleFont(42); atlas_neg_sf8->GetYaxis()->SetTitle("# events"); atlas_neg_sf8->GetYaxis()->SetLabelFont(42); atlas_neg_sf8->GetYaxis()->SetLabelOffset(0.007); atlas_neg_sf8->GetYaxis()->SetTitleSize(0.05); atlas_neg_sf8->GetYaxis()->SetTitleOffset(1.1); atlas_neg_sf8->GetYaxis()->SetTitleFont(42); atlas_neg_sf8->GetZaxis()->SetLabelFont(42); atlas_neg_sf8->GetZaxis()->SetLabelOffset(0.007); atlas_neg_sf8->GetZaxis()->SetTitleSize(0.05); atlas_neg_sf8->GetZaxis()->SetTitleFont(42); atlas_neg_sf8->Draw("HIST,SAME"); TLegend *leg = new TLegend(0.15,0.4,0.35,0.72,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_sf","JZB > 0","P"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#ff0000"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(20); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("atlas_neg_sf","JZB < 0","L"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); 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(); atlasClosure/atlasClosure_inc->cd(); // ------------>Primitives in pad: pad2 TPad *pad2 = new TPad("pad2", "pad2",0,0.05,1,0.25); pad2->Draw(); pad2->cd(); pad2->Range(-55.4878,-1,371.3415,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 xAxis9[28] = {0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 210, 220, 230, 240, 250, 300, 350}; TH1F *neg_sf_ratio_ratio9 = new TH1F("neg_sf_ratio_ratio9","",27, xAxis9); neg_sf_ratio_ratio9->SetBinContent(1,0.9675768); neg_sf_ratio_ratio9->SetBinContent(2,1.003803); neg_sf_ratio_ratio9->SetBinContent(3,1.064216); neg_sf_ratio_ratio9->SetBinContent(4,1.112986); neg_sf_ratio_ratio9->SetBinContent(5,1.169211); neg_sf_ratio_ratio9->SetBinContent(6,1.188763); neg_sf_ratio_ratio9->SetBinContent(7,1.211672); neg_sf_ratio_ratio9->SetBinContent(8,1.15275); neg_sf_ratio_ratio9->SetBinContent(9,1.206278); neg_sf_ratio_ratio9->SetBinContent(10,0.888); neg_sf_ratio_ratio9->SetBinContent(11,0.7692308); neg_sf_ratio_ratio9->SetBinContent(12,0.6341463); neg_sf_ratio_ratio9->SetBinContent(13,1.222222); neg_sf_ratio_ratio9->SetBinContent(14,0.8571429); neg_sf_ratio_ratio9->SetBinContent(15,0.4545455); neg_sf_ratio_ratio9->SetBinContent(16,1); neg_sf_ratio_ratio9->SetBinContent(17,1); neg_sf_ratio_ratio9->SetBinContent(20,2); neg_sf_ratio_ratio9->SetBinContent(26,1); neg_sf_ratio_ratio9->SetBinError(1,0.009013351); neg_sf_ratio_ratio9->SetBinError(2,0.01045432); neg_sf_ratio_ratio9->SetBinError(3,0.01332239); neg_sf_ratio_ratio9->SetBinError(4,0.01803726); neg_sf_ratio_ratio9->SetBinError(5,0.02540649); neg_sf_ratio_ratio9->SetBinError(6,0.0358237); neg_sf_ratio_ratio9->SetBinError(7,0.05150358); neg_sf_ratio_ratio9->SetBinError(8,0.07115077); neg_sf_ratio_ratio9->SetBinError(9,0.1094289); neg_sf_ratio_ratio9->SetBinError(10,0.116363); neg_sf_ratio_ratio9->SetBinError(11,0.146325); neg_sf_ratio_ratio9->SetBinError(12,0.1589821); neg_sf_ratio_ratio9->SetBinError(13,0.3884477); neg_sf_ratio_ratio9->SetBinError(14,0.4768703); neg_sf_ratio_ratio9->SetBinError(15,0.2768287); neg_sf_ratio_ratio9->SetBinError(16,1.414214); neg_sf_ratio_ratio9->SetBinError(17,2); neg_sf_ratio_ratio9->SetBinError(20,2.44949); neg_sf_ratio_ratio9->SetBinError(26,1.414214); neg_sf_ratio_ratio9->SetMinimum(0); neg_sf_ratio_ratio9->SetMaximum(2); neg_sf_ratio_ratio9->SetEntries(27.2476); neg_sf_ratio_ratio9->SetStats(0); ci = TColor::GetColor("#cccccc"); neg_sf_ratio_ratio9->SetFillColor(ci); ci = TColor::GetColor("#0000ff"); neg_sf_ratio_ratio9->SetLineColor(ci); neg_sf_ratio_ratio9->SetLineWidth(2); ci = TColor::GetColor("#0000ff"); neg_sf_ratio_ratio9->SetMarkerColor(ci); neg_sf_ratio_ratio9->SetMarkerStyle(20); neg_sf_ratio_ratio9->SetMarkerSize(0); neg_sf_ratio_ratio9->GetXaxis()->SetLabelFont(42); neg_sf_ratio_ratio9->GetXaxis()->SetLabelOffset(0.007); neg_sf_ratio_ratio9->GetXaxis()->SetLabelSize(0.12); neg_sf_ratio_ratio9->GetXaxis()->SetTitleSize(0.14); neg_sf_ratio_ratio9->GetXaxis()->SetTitleFont(42); neg_sf_ratio_ratio9->GetYaxis()->SetTitle("Ratio"); neg_sf_ratio_ratio9->GetYaxis()->CenterTitle(true); neg_sf_ratio_ratio9->GetYaxis()->SetNdivisions(4); neg_sf_ratio_ratio9->GetYaxis()->SetLabelFont(42); neg_sf_ratio_ratio9->GetYaxis()->SetLabelOffset(0.007); neg_sf_ratio_ratio9->GetYaxis()->SetLabelSize(0.12); neg_sf_ratio_ratio9->GetYaxis()->SetTitleSize(0.14); neg_sf_ratio_ratio9->GetYaxis()->SetTitleOffset(0.3); neg_sf_ratio_ratio9->GetYaxis()->SetTitleFont(42); neg_sf_ratio_ratio9->GetZaxis()->SetLabelFont(42); neg_sf_ratio_ratio9->GetZaxis()->SetLabelOffset(0.007); neg_sf_ratio_ratio9->GetZaxis()->SetTitleSize(0.05); neg_sf_ratio_ratio9->GetZaxis()->SetTitleFont(42); neg_sf_ratio_ratio9->Draw("E2"); TLine *line = new TLine(0,1,350,1); ci = TColor::GetColor("#666666"); line->SetLineColor(ci); line->Draw(); Double_t Graph0_fx3[4] = { 0, 350, 350, 0}; Double_t Graph0_fy3[4] = { 0.7, 0.7, 1.3, 1.3}; TGraph *graph = new TGraph(4,Graph0_fx3,Graph0_fy3); graph->SetName("Graph0"); graph->SetTitle("Graph"); ci = 1181; color = new TColor(ci, 1, 0, 0, " ", 0.4); graph->SetFillColor(ci); graph->SetMarkerStyle(20); TH1F *Graph_Graph3 = new TH1F("Graph_Graph3","Graph",100,0,385); Graph_Graph3->SetMinimum(0.64); Graph_Graph3->SetMaximum(1.36); Graph_Graph3->SetDirectory(0); Graph_Graph3->SetStats(0); Graph_Graph3->SetLineWidth(2); Graph_Graph3->SetMarkerStyle(20); Graph_Graph3->GetXaxis()->SetLabelFont(42); Graph_Graph3->GetXaxis()->SetLabelOffset(0.007); Graph_Graph3->GetXaxis()->SetTitleSize(0.05); Graph_Graph3->GetXaxis()->SetTitleFont(42); Graph_Graph3->GetYaxis()->SetLabelFont(42); Graph_Graph3->GetYaxis()->SetLabelOffset(0.007); Graph_Graph3->GetYaxis()->SetTitleSize(0.05); Graph_Graph3->GetYaxis()->SetTitleOffset(1.1); Graph_Graph3->GetYaxis()->SetTitleFont(42); Graph_Graph3->GetZaxis()->SetLabelFont(42); Graph_Graph3->GetZaxis()->SetLabelOffset(0.007); Graph_Graph3->GetZaxis()->SetTitleSize(0.05); Graph_Graph3->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph3); graph->Draw("f"); pad2->Modified(); atlasClosure/atlasClosure_inc->cd(); atlasClosure/atlasClosure_inc->Modified(); atlasClosure/atlasClosure_inc->cd(); atlasClosure/atlasClosure_inc->SetSelected(atlasClosure/atlasClosure_inc); }