void atlasClosure_inc() { //=========Macro generated from canvas: atlasClosure/atlasClosure_inc/atlasClosure/atlasClosure_inc //========= (Thu Jun 23 08:37:44 2016) by ROOT version6.06/01 TCanvas *atlasClosure/atlasClosure_inc = new TCanvas("atlasClosure/atlasClosure_inc", "atlasClosure/atlasClosure_inc",0,0,600,600); gStyle->SetOptFit(1); 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,1.064129,201.5854,5.928527); 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_sf__7 = new TH1F("atlas_pos_sf__7","",19,0,190); atlas_pos_sf__7->SetBinContent(1,182310); atlas_pos_sf__7->SetBinContent(2,154120); atlas_pos_sf__7->SetBinContent(3,112502); atlas_pos_sf__7->SetBinContent(4,73438); atlas_pos_sf__7->SetBinContent(5,43976); atlas_pos_sf__7->SetBinContent(6,24366); atlas_pos_sf__7->SetBinContent(7,13255); atlas_pos_sf__7->SetBinContent(8,7219); atlas_pos_sf__7->SetBinContent(9,3869); atlas_pos_sf__7->SetBinContent(10,2158); atlas_pos_sf__7->SetBinContent(11,1192); atlas_pos_sf__7->SetBinContent(12,755); atlas_pos_sf__7->SetBinContent(13,512); atlas_pos_sf__7->SetBinContent(14,304); atlas_pos_sf__7->SetBinContent(15,228); atlas_pos_sf__7->SetBinContent(16,183); atlas_pos_sf__7->SetBinContent(17,120); atlas_pos_sf__7->SetBinContent(18,80); atlas_pos_sf__7->SetBinContent(19,373); atlas_pos_sf__7->SetBinError(1,426.9778); atlas_pos_sf__7->SetBinError(2,392.5812); atlas_pos_sf__7->SetBinError(3,335.4132); atlas_pos_sf__7->SetBinError(4,270.9945); atlas_pos_sf__7->SetBinError(5,209.7046); atlas_pos_sf__7->SetBinError(6,156.0961); atlas_pos_sf__7->SetBinError(7,115.1304); atlas_pos_sf__7->SetBinError(8,84.9647); atlas_pos_sf__7->SetBinError(9,62.20129); atlas_pos_sf__7->SetBinError(10,46.45428); atlas_pos_sf__7->SetBinError(11,34.52535); atlas_pos_sf__7->SetBinError(12,27.47726); atlas_pos_sf__7->SetBinError(13,22.62742); atlas_pos_sf__7->SetBinError(14,17.4356); atlas_pos_sf__7->SetBinError(15,15.09967); atlas_pos_sf__7->SetBinError(16,13.52775); atlas_pos_sf__7->SetBinError(17,10.95445); atlas_pos_sf__7->SetBinError(18,8.944272); atlas_pos_sf__7->SetBinError(19,19.31321); atlas_pos_sf__7->SetEntries(620960); atlas_pos_sf__7->SetDirectory(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#ff0000"); atlas_pos_sf__7->SetLineColor(ci); ci = TColor::GetColor("#ff0000"); atlas_pos_sf__7->SetMarkerColor(ci); atlas_pos_sf__7->SetMarkerStyle(20); atlas_pos_sf__7->GetXaxis()->SetTitle("JZB [GeV]"); atlas_pos_sf__7->GetXaxis()->SetLabelFont(42); atlas_pos_sf__7->GetXaxis()->SetLabelOffset(0.007); atlas_pos_sf__7->GetXaxis()->SetTitleSize(0.05); atlas_pos_sf__7->GetXaxis()->SetTitleFont(42); atlas_pos_sf__7->GetYaxis()->SetTitle("Events / 10 GeV"); atlas_pos_sf__7->GetYaxis()->SetLabelFont(42); atlas_pos_sf__7->GetYaxis()->SetLabelOffset(0.007); atlas_pos_sf__7->GetYaxis()->SetTitleSize(0.05); atlas_pos_sf__7->GetYaxis()->SetTitleOffset(1.1); atlas_pos_sf__7->GetYaxis()->SetTitleFont(42); atlas_pos_sf__7->GetZaxis()->SetLabelFont(42); atlas_pos_sf__7->GetZaxis()->SetLabelOffset(0.007); atlas_pos_sf__7->GetZaxis()->SetTitleSize(0.05); atlas_pos_sf__7->GetZaxis()->SetTitleFont(42); atlas_pos_sf__7->Draw("E,"); TH1F *atlas_neg_sf__8 = new TH1F("atlas_neg_sf__8","",19,0,190); atlas_neg_sf__8->SetBinContent(1,181829); atlas_neg_sf__8->SetBinContent(2,150849); atlas_neg_sf__8->SetBinContent(3,108553); atlas_neg_sf__8->SetBinContent(4,69188); atlas_neg_sf__8->SetBinContent(5,40398); atlas_neg_sf__8->SetBinContent(6,22515); atlas_neg_sf__8->SetBinContent(7,12180); atlas_neg_sf__8->SetBinContent(8,6587); atlas_neg_sf__8->SetBinContent(9,3629); atlas_neg_sf__8->SetBinContent(10,2007); atlas_neg_sf__8->SetBinContent(11,1253); atlas_neg_sf__8->SetBinContent(12,823); atlas_neg_sf__8->SetBinContent(13,465); atlas_neg_sf__8->SetBinContent(14,317); atlas_neg_sf__8->SetBinContent(15,237); atlas_neg_sf__8->SetBinContent(16,176); atlas_neg_sf__8->SetBinContent(17,105); atlas_neg_sf__8->SetBinContent(18,93); atlas_neg_sf__8->SetBinContent(19,359); atlas_neg_sf__8->SetBinError(1,426.4141); atlas_neg_sf__8->SetBinError(2,388.3928); atlas_neg_sf__8->SetBinError(3,329.4738); atlas_neg_sf__8->SetBinError(4,263.0361); atlas_neg_sf__8->SetBinError(5,200.9925); atlas_neg_sf__8->SetBinError(6,150.05); atlas_neg_sf__8->SetBinError(7,110.363); atlas_neg_sf__8->SetBinError(8,81.16034); atlas_neg_sf__8->SetBinError(9,60.24118); atlas_neg_sf__8->SetBinError(10,44.79955); atlas_neg_sf__8->SetBinError(11,35.39774); atlas_neg_sf__8->SetBinError(12,28.68798); atlas_neg_sf__8->SetBinError(13,21.56386); atlas_neg_sf__8->SetBinError(14,17.80449); atlas_neg_sf__8->SetBinError(15,15.3948); atlas_neg_sf__8->SetBinError(16,13.2665); atlas_neg_sf__8->SetBinError(17,10.24695); atlas_neg_sf__8->SetBinError(18,9.643651); atlas_neg_sf__8->SetBinError(19,18.9473); atlas_neg_sf__8->SetEntries(601563); atlas_neg_sf__8->SetDirectory(0); ci = TColor::GetColor("#0000ff"); atlas_neg_sf__8->SetLineColor(ci); ci = TColor::GetColor("#0000ff"); atlas_neg_sf__8->SetMarkerColor(ci); atlas_neg_sf__8->SetMarkerStyle(20); atlas_neg_sf__8->GetXaxis()->SetTitle("JZB [GeV]"); atlas_neg_sf__8->GetXaxis()->SetLabelFont(42); atlas_neg_sf__8->GetXaxis()->SetLabelOffset(0.007); atlas_neg_sf__8->GetXaxis()->SetTitleSize(0.05); atlas_neg_sf__8->GetXaxis()->SetTitleFont(42); atlas_neg_sf__8->GetYaxis()->SetTitle("Events / 10 GeV"); atlas_neg_sf__8->GetYaxis()->SetLabelFont(42); atlas_neg_sf__8->GetYaxis()->SetLabelOffset(0.007); atlas_neg_sf__8->GetYaxis()->SetTitleSize(0.05); atlas_neg_sf__8->GetYaxis()->SetTitleOffset(1.1); atlas_neg_sf__8->GetYaxis()->SetTitleFont(42); atlas_neg_sf__8->GetZaxis()->SetLabelFont(42); atlas_neg_sf__8->GetZaxis()->SetLabelOffset(0.007); atlas_neg_sf__8->GetZaxis()->SetTitleSize(0.05); atlas_neg_sf__8->GetZaxis()->SetTitleFont(42); atlas_neg_sf__8->Draw("HIST,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_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(1); 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 *neg_sf_ratio_ratio__9 = new TH1F("neg_sf_ratio_ratio__9","",19,0,190); neg_sf_ratio_ratio__9->SetBinContent(1,1.002645); neg_sf_ratio_ratio__9->SetBinContent(2,1.021684); neg_sf_ratio_ratio__9->SetBinContent(3,1.036379); neg_sf_ratio_ratio__9->SetBinContent(4,1.061427); neg_sf_ratio_ratio__9->SetBinContent(5,1.088569); neg_sf_ratio_ratio__9->SetBinContent(6,1.082212); neg_sf_ratio_ratio__9->SetBinContent(7,1.088259); neg_sf_ratio_ratio__9->SetBinContent(8,1.095947); neg_sf_ratio_ratio__9->SetBinContent(9,1.066134); neg_sf_ratio_ratio__9->SetBinContent(10,1.075237); neg_sf_ratio_ratio__9->SetBinContent(11,0.9513168); neg_sf_ratio_ratio__9->SetBinContent(12,0.9173754); neg_sf_ratio_ratio__9->SetBinContent(13,1.101075); neg_sf_ratio_ratio__9->SetBinContent(14,0.9589905); neg_sf_ratio_ratio__9->SetBinContent(15,0.9620253); neg_sf_ratio_ratio__9->SetBinContent(16,1.039773); neg_sf_ratio_ratio__9->SetBinContent(17,1.142857); neg_sf_ratio_ratio__9->SetBinContent(18,0.8602151); neg_sf_ratio_ratio__9->SetBinContent(19,1.038997); neg_sf_ratio_ratio__9->SetBinError(1,0.003323105); neg_sf_ratio_ratio__9->SetBinError(2,0.003700358); neg_sf_ratio_ratio__9->SetBinError(3,0.004409279); neg_sf_ratio_ratio__9->SetBinError(4,0.005623589); neg_sf_ratio_ratio__9->SetBinError(5,0.007501919); neg_sf_ratio_ratio__9->SetBinError(6,0.01000421); neg_sf_ratio_ratio__9->SetBinError(7,0.0136595); neg_sf_ratio_ratio__9->SetBinError(8,0.01867416); neg_sf_ratio_ratio__9->SetBinError(9,0.02463722); neg_sf_ratio_ratio__9->SetBinError(10,0.03334358); neg_sf_ratio_ratio__9->SetBinError(11,0.03849027); neg_sf_ratio_ratio__9->SetBinError(12,0.04623035); neg_sf_ratio_ratio__9->SetBinError(13,0.0705347); neg_sf_ratio_ratio__9->SetBinError(14,0.0769828); neg_sf_ratio_ratio__9->SetBinError(15,0.08924243); neg_sf_ratio_ratio__9->SetBinError(16,0.1097751); neg_sf_ratio_ratio__9->SetBinError(17,0.1527207); neg_sf_ratio_ratio__9->SetBinError(18,0.1311727); neg_sf_ratio_ratio__9->SetBinError(19,0.07681894); neg_sf_ratio_ratio__9->SetMinimum(0); neg_sf_ratio_ratio__9->SetMaximum(2); neg_sf_ratio_ratio__9->SetEntries(4599.175); ci = TColor::GetColor("#666699"); neg_sf_ratio_ratio__9->SetFillColor(ci); ci = TColor::GetColor("#0000ff"); neg_sf_ratio_ratio__9->SetLineColor(ci); ci = TColor::GetColor("#0000ff"); neg_sf_ratio_ratio__9->SetMarkerColor(ci); neg_sf_ratio_ratio__9->SetMarkerStyle(20); neg_sf_ratio_ratio__9->SetMarkerSize(0); neg_sf_ratio_ratio__9->GetXaxis()->SetLabelFont(42); neg_sf_ratio_ratio__9->GetXaxis()->SetLabelOffset(0.007); neg_sf_ratio_ratio__9->GetXaxis()->SetLabelSize(0.12); neg_sf_ratio_ratio__9->GetXaxis()->SetTitleSize(0.14); neg_sf_ratio_ratio__9->GetXaxis()->SetTitleFont(42); neg_sf_ratio_ratio__9->GetYaxis()->SetTitle("Ratio"); neg_sf_ratio_ratio__9->GetYaxis()->CenterTitle(true); neg_sf_ratio_ratio__9->GetYaxis()->SetNdivisions(4); neg_sf_ratio_ratio__9->GetYaxis()->SetLabelFont(42); neg_sf_ratio_ratio__9->GetYaxis()->SetLabelOffset(0.007); neg_sf_ratio_ratio__9->GetYaxis()->SetLabelSize(0.12); neg_sf_ratio_ratio__9->GetYaxis()->SetTitleSize(0.14); neg_sf_ratio_ratio__9->GetYaxis()->SetTitleOffset(0.3); neg_sf_ratio_ratio__9->GetYaxis()->SetTitleFont(42); neg_sf_ratio_ratio__9->GetZaxis()->SetLabelFont(42); neg_sf_ratio_ratio__9->GetZaxis()->SetLabelOffset(0.007); neg_sf_ratio_ratio__9->GetZaxis()->SetTitleSize(0.05); neg_sf_ratio_ratio__9->GetZaxis()->SetTitleFont(42); neg_sf_ratio_ratio__9->Draw("E2,"); Double_t Graph0_fx3[4] = { 0, 190, 190, 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 = 1437; 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,209); Graph_Graph3->SetMinimum(0.64); Graph_Graph3->SetMaximum(1.36); Graph_Graph3->SetDirectory(0); Graph_Graph3->SetStats(0); 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"); 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); }