void atlasClosure_inc() { //=========Macro generated from canvas: atlasClosure/atlasClosure_inc/atlasClosure/atlasClosure_inc //========= (Wed Jun 8 12:01:41 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(-30.12195,0.8302605,201.5854,5.207792); 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); TH1F *atlas_pos_sf7 = new TH1F("atlas_pos_sf7","",19,0,190); atlas_pos_sf7->SetBinContent(1,37828); atlas_pos_sf7->SetBinContent(2,33380); atlas_pos_sf7->SetBinContent(3,26216); atlas_pos_sf7->SetBinContent(4,18828); atlas_pos_sf7->SetBinContent(5,12136); atlas_pos_sf7->SetBinContent(6,7682); atlas_pos_sf7->SetBinContent(7,4672); atlas_pos_sf7->SetBinContent(8,2790); atlas_pos_sf7->SetBinContent(9,1658); atlas_pos_sf7->SetBinContent(10,946); atlas_pos_sf7->SetBinContent(11,584); atlas_pos_sf7->SetBinContent(12,392); atlas_pos_sf7->SetBinContent(13,250); atlas_pos_sf7->SetBinContent(14,178); atlas_pos_sf7->SetBinContent(15,100); atlas_pos_sf7->SetBinContent(16,80); atlas_pos_sf7->SetBinContent(17,48); atlas_pos_sf7->SetBinContent(18,44); atlas_pos_sf7->SetBinContent(19,182); atlas_pos_sf7->SetBinError(1,194.5045); atlas_pos_sf7->SetBinError(2,182.7348); atlas_pos_sf7->SetBinError(3,161.9259); atlas_pos_sf7->SetBinError(4,137.2297); atlas_pos_sf7->SetBinError(5,110.1635); atlas_pos_sf7->SetBinError(6,87.66984); atlas_pos_sf7->SetBinError(7,68.38128); atlas_pos_sf7->SetBinError(8,52.89612); atlas_pos_sf7->SetBinError(9,40.71855); atlas_pos_sf7->SetBinError(10,30.82207); atlas_pos_sf7->SetBinError(11,24.16609); atlas_pos_sf7->SetBinError(12,19.79899); atlas_pos_sf7->SetBinError(13,15.81139); atlas_pos_sf7->SetBinError(14,13.34166); atlas_pos_sf7->SetBinError(15,10); atlas_pos_sf7->SetBinError(16,9.165151); atlas_pos_sf7->SetBinError(17,7.211103); atlas_pos_sf7->SetBinError(18,6.928203); atlas_pos_sf7->SetBinError(19,13.92839); atlas_pos_sf7->SetEntries(147926); 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 / 10 GeV"); 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,"); TH1F *atlas_neg_sf8 = new TH1F("atlas_neg_sf8","",19,0,190); atlas_neg_sf8->SetBinContent(1,37544); atlas_neg_sf8->SetBinContent(2,33052); atlas_neg_sf8->SetBinContent(3,25756); atlas_neg_sf8->SetBinContent(4,18168); atlas_neg_sf8->SetBinContent(5,11340); atlas_neg_sf8->SetBinContent(6,7366); atlas_neg_sf8->SetBinContent(7,4404); atlas_neg_sf8->SetBinContent(8,2468); atlas_neg_sf8->SetBinContent(9,1590); atlas_neg_sf8->SetBinContent(10,978); atlas_neg_sf8->SetBinContent(11,626); atlas_neg_sf8->SetBinContent(12,414); atlas_neg_sf8->SetBinContent(13,280); atlas_neg_sf8->SetBinContent(14,180); atlas_neg_sf8->SetBinContent(15,154); atlas_neg_sf8->SetBinContent(16,76); atlas_neg_sf8->SetBinContent(17,70); atlas_neg_sf8->SetBinContent(18,64); atlas_neg_sf8->SetBinContent(19,232); atlas_neg_sf8->SetBinError(1,193.7937); atlas_neg_sf8->SetBinError(2,181.8131); atlas_neg_sf8->SetBinError(3,160.5117); atlas_neg_sf8->SetBinError(4,134.7887); atlas_neg_sf8->SetBinError(5,106.4894); atlas_neg_sf8->SetBinError(6,85.8254); atlas_neg_sf8->SetBinError(7,66.36264); atlas_neg_sf8->SetBinError(8,49.67897); atlas_neg_sf8->SetBinError(9,39.8748); atlas_neg_sf8->SetBinError(10,31.27299); atlas_neg_sf8->SetBinError(11,25.0998); atlas_neg_sf8->SetBinError(12,20.34699); atlas_neg_sf8->SetBinError(13,16.7332); atlas_neg_sf8->SetBinError(14,13.41641); atlas_neg_sf8->SetBinError(15,12.40967); atlas_neg_sf8->SetBinError(16,8.717798); atlas_neg_sf8->SetBinError(17,8.3666); atlas_neg_sf8->SetBinError(18,8); atlas_neg_sf8->SetBinError(19,15.23155); atlas_neg_sf8->SetEntries(144734); 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 / 10 GeV"); 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(-30.12195,-1,201.5854,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); TH1F *atlas_neg_sf_ratio9 = new TH1F("atlas_neg_sf_ratio9","",19,0,190); atlas_neg_sf_ratio9->SetBinContent(1,1.007564); atlas_neg_sf_ratio9->SetBinContent(2,1.009924); atlas_neg_sf_ratio9->SetBinContent(3,1.01786); atlas_neg_sf_ratio9->SetBinContent(4,1.036328); atlas_neg_sf_ratio9->SetBinContent(5,1.070194); atlas_neg_sf_ratio9->SetBinContent(6,1.0429); atlas_neg_sf_ratio9->SetBinContent(7,1.060854); atlas_neg_sf_ratio9->SetBinContent(8,1.13047); atlas_neg_sf_ratio9->SetBinContent(9,1.042767); atlas_neg_sf_ratio9->SetBinContent(10,0.9672801); atlas_neg_sf_ratio9->SetBinContent(11,0.9329073); atlas_neg_sf_ratio9->SetBinContent(12,0.9468599); atlas_neg_sf_ratio9->SetBinContent(13,0.8928571); atlas_neg_sf_ratio9->SetBinContent(14,0.9888889); atlas_neg_sf_ratio9->SetBinContent(15,0.6493506); atlas_neg_sf_ratio9->SetBinContent(16,1.052632); atlas_neg_sf_ratio9->SetBinContent(17,0.6857143); atlas_neg_sf_ratio9->SetBinContent(18,0.6875); atlas_neg_sf_ratio9->SetBinContent(19,0.7844828); atlas_neg_sf_ratio9->SetBinError(1,0.007340864); atlas_neg_sf_ratio9->SetBinError(2,0.007837675); atlas_neg_sf_ratio9->SetBinError(3,0.008931013); atlas_neg_sf_ratio9->SetBinError(4,0.01077808); atlas_neg_sf_ratio9->SetBinError(5,0.01397752); atlas_neg_sf_ratio9->SetBinError(6,0.01700922); atlas_neg_sf_ratio9->SetBinError(7,0.02228527); atlas_neg_sf_ratio9->SetBinError(8,0.03125984); atlas_neg_sf_ratio9->SetBinError(9,0.03660198); atlas_neg_sf_ratio9->SetBinError(10,0.04415766); atlas_neg_sf_ratio9->SetBinError(11,0.05375344); atlas_neg_sf_ratio9->SetBinError(12,0.0667283); atlas_neg_sf_ratio9->SetBinError(13,0.07769103); atlas_neg_sf_ratio9->SetBinError(14,0.1045304); atlas_neg_sf_ratio9->SetBinError(15,0.08339419); atlas_neg_sf_ratio9->SetBinError(16,0.1706526); atlas_neg_sf_ratio9->SetBinError(17,0.1316414); atlas_neg_sf_ratio9->SetBinError(18,0.1382172); atlas_neg_sf_ratio9->SetBinError(19,0.07910109); atlas_neg_sf_ratio9->SetMinimum(0); atlas_neg_sf_ratio9->SetMaximum(2); atlas_neg_sf_ratio9->SetEntries(2984.997); atlas_neg_sf_ratio9->SetStats(0); ci = TColor::GetColor("#0000ff"); atlas_neg_sf_ratio9->SetLineColor(ci); atlas_neg_sf_ratio9->SetLineWidth(2); ci = TColor::GetColor("#0000ff"); atlas_neg_sf_ratio9->SetMarkerColor(ci); atlas_neg_sf_ratio9->SetMarkerStyle(20); atlas_neg_sf_ratio9->GetXaxis()->SetLabelFont(42); atlas_neg_sf_ratio9->GetXaxis()->SetLabelOffset(0.007); atlas_neg_sf_ratio9->GetXaxis()->SetLabelSize(0.12); atlas_neg_sf_ratio9->GetXaxis()->SetTitleSize(0.14); atlas_neg_sf_ratio9->GetXaxis()->SetTitleFont(42); atlas_neg_sf_ratio9->GetYaxis()->SetTitle("Ratio"); atlas_neg_sf_ratio9->GetYaxis()->CenterTitle(true); atlas_neg_sf_ratio9->GetYaxis()->SetNdivisions(4); atlas_neg_sf_ratio9->GetYaxis()->SetLabelFont(42); atlas_neg_sf_ratio9->GetYaxis()->SetLabelOffset(0.007); atlas_neg_sf_ratio9->GetYaxis()->SetLabelSize(0.12); atlas_neg_sf_ratio9->GetYaxis()->SetTitleSize(0.14); atlas_neg_sf_ratio9->GetYaxis()->SetTitleOffset(0.3); atlas_neg_sf_ratio9->GetYaxis()->SetTitleFont(42); atlas_neg_sf_ratio9->GetZaxis()->SetLabelFont(42); atlas_neg_sf_ratio9->GetZaxis()->SetLabelOffset(0.007); atlas_neg_sf_ratio9->GetZaxis()->SetTitleSize(0.05); atlas_neg_sf_ratio9->GetZaxis()->SetTitleFont(42); atlas_neg_sf_ratio9->Draw("HIST,"); TLine *line = new TLine(0,1,190,1); ci = TColor::GetColor("#666666"); line->SetLineColor(ci); line->Draw(); pad2->Modified(); atlasClosure/atlasClosure_inc->cd(); atlasClosure/atlasClosure_inc->Modified(); atlasClosure/atlasClosure_inc->cd(); atlasClosure/atlasClosure_inc->SetSelected(atlasClosure/atlasClosure_inc); }