void PlotPointingBiasVrho() { //=========Macro generated from canvas: c_m/c //========= (Thu May 19 10:20:29 2022) by ROOT version 6.20/06 TCanvas *c_m = new TCanvas("c_m", "c",0,0,1600,1200); gStyle->SetOptStat(0); c_m->Range(-87.50001,-250,787.5,250); c_m->SetFillColor(0); c_m->SetBorderMode(0); c_m->SetBorderSize(2); c_m->SetFrameBorderMode(0); c_m->SetFrameBorderMode(0); THStack *hs_m = new THStack(); hs_m->SetName("hs_m"); hs_m->SetTitle(";#rho [mm]; V_{z} - SV_{z} [mm];"); hs_m->SetMinimum(-200); hs_m->SetMaximum(200); Double_t xAxis46[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hs_m_stack_10 = new TH1F("hs_m_stack_10","",11, xAxis46); hs_m_stack_10->SetMinimum(-200); hs_m_stack_10->SetMaximum(200); hs_m_stack_10->SetDirectory(0); hs_m_stack_10->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); hs_m_stack_10->SetLineColor(ci); hs_m_stack_10->GetXaxis()->SetTitle("#rho [mm]"); hs_m_stack_10->GetXaxis()->SetLabelFont(42); hs_m_stack_10->GetXaxis()->SetTitleOffset(1); hs_m_stack_10->GetXaxis()->SetTitleFont(42); hs_m_stack_10->GetYaxis()->SetTitle(" V_{z} - SV_{z} [mm]"); hs_m_stack_10->GetYaxis()->SetLabelFont(42); hs_m_stack_10->GetYaxis()->SetTitleFont(42); hs_m_stack_10->GetZaxis()->SetLabelFont(42); hs_m_stack_10->GetZaxis()->SetTitleOffset(1); hs_m_stack_10->GetZaxis()->SetTitleFont(42); hs_m->SetHistogram(hs_m_stack_10); Double_t xAxis47[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hmean_Hino_135_2ns_stack_1 = new TH1F("hmean_Hino_135_2ns_stack_1","",11, xAxis47); hmean_Hino_135_2ns_stack_1->SetBinContent(1,-0.0002980113); hmean_Hino_135_2ns_stack_1->SetBinContent(2,1.659831); hmean_Hino_135_2ns_stack_1->SetBinContent(3,-0.06744727); hmean_Hino_135_2ns_stack_1->SetBinContent(4,0.206429); hmean_Hino_135_2ns_stack_1->SetBinContent(5,1.928218); hmean_Hino_135_2ns_stack_1->SetBinContent(6,0.4003263); hmean_Hino_135_2ns_stack_1->SetBinContent(7,1.273723); hmean_Hino_135_2ns_stack_1->SetBinContent(8,-0.1084052); hmean_Hino_135_2ns_stack_1->SetBinContent(9,2.048727); hmean_Hino_135_2ns_stack_1->SetBinContent(10,2.292045); hmean_Hino_135_2ns_stack_1->SetBinContent(11,0.01488074); hmean_Hino_135_2ns_stack_1->SetBinError(1,2.084757); hmean_Hino_135_2ns_stack_1->SetBinError(2,1.412809); hmean_Hino_135_2ns_stack_1->SetBinError(3,1.259277); hmean_Hino_135_2ns_stack_1->SetBinError(4,1.282313); hmean_Hino_135_2ns_stack_1->SetBinError(5,1.296729); hmean_Hino_135_2ns_stack_1->SetBinError(6,1.396339); hmean_Hino_135_2ns_stack_1->SetBinError(7,1.101432); hmean_Hino_135_2ns_stack_1->SetBinError(8,1.166466); hmean_Hino_135_2ns_stack_1->SetBinError(9,1.271662); hmean_Hino_135_2ns_stack_1->SetBinError(10,1.077853); hmean_Hino_135_2ns_stack_1->SetBinError(11,0.9819726); hmean_Hino_135_2ns_stack_1->SetEntries(11); hmean_Hino_135_2ns_stack_1->SetStats(0); ci = TColor::GetColor("#00ff00"); hmean_Hino_135_2ns_stack_1->SetLineColor(ci); ci = TColor::GetColor("#00ff00"); hmean_Hino_135_2ns_stack_1->SetMarkerColor(ci); hmean_Hino_135_2ns_stack_1->SetMarkerStyle(20); hmean_Hino_135_2ns_stack_1->SetMarkerSize(2); hmean_Hino_135_2ns_stack_1->GetXaxis()->SetLabelFont(42); hmean_Hino_135_2ns_stack_1->GetXaxis()->SetTitleOffset(1); hmean_Hino_135_2ns_stack_1->GetXaxis()->SetTitleFont(42); hmean_Hino_135_2ns_stack_1->GetYaxis()->SetLabelFont(42); hmean_Hino_135_2ns_stack_1->GetYaxis()->SetTitleFont(42); hmean_Hino_135_2ns_stack_1->GetZaxis()->SetLabelFont(42); hmean_Hino_135_2ns_stack_1->GetZaxis()->SetTitleOffset(1); hmean_Hino_135_2ns_stack_1->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_135_2ns_stack_1,""); Double_t xAxis48[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hmean_Hino_525_Zee_stack_2 = new TH1F("hmean_Hino_525_Zee_stack_2","",11, xAxis48); hmean_Hino_525_Zee_stack_2->SetBinContent(1,-1.612911); hmean_Hino_525_Zee_stack_2->SetBinContent(2,2.982988); hmean_Hino_525_Zee_stack_2->SetBinContent(3,2.746484); hmean_Hino_525_Zee_stack_2->SetBinContent(4,0.04398147); hmean_Hino_525_Zee_stack_2->SetBinContent(5,0.368618); hmean_Hino_525_Zee_stack_2->SetBinContent(6,0.2976211); hmean_Hino_525_Zee_stack_2->SetBinContent(7,-3.508537); hmean_Hino_525_Zee_stack_2->SetBinContent(8,2.594087); hmean_Hino_525_Zee_stack_2->SetBinContent(9,0.3478184); hmean_Hino_525_Zee_stack_2->SetBinContent(10,2.693423); hmean_Hino_525_Zee_stack_2->SetBinContent(11,-0.7419218); hmean_Hino_525_Zee_stack_2->SetBinError(1,3.348078); hmean_Hino_525_Zee_stack_2->SetBinError(2,1.851633); hmean_Hino_525_Zee_stack_2->SetBinError(3,1.643793); hmean_Hino_525_Zee_stack_2->SetBinError(4,1.686327); hmean_Hino_525_Zee_stack_2->SetBinError(5,1.600821); hmean_Hino_525_Zee_stack_2->SetBinError(6,1.661884); hmean_Hino_525_Zee_stack_2->SetBinError(7,1.176174); hmean_Hino_525_Zee_stack_2->SetBinError(8,1.337773); hmean_Hino_525_Zee_stack_2->SetBinError(9,1.496151); hmean_Hino_525_Zee_stack_2->SetBinError(10,1.356382); hmean_Hino_525_Zee_stack_2->SetBinError(11,1.416644); hmean_Hino_525_Zee_stack_2->SetEntries(11); ci = TColor::GetColor("#ffcc00"); hmean_Hino_525_Zee_stack_2->SetLineColor(ci); ci = TColor::GetColor("#ffcc00"); hmean_Hino_525_Zee_stack_2->SetMarkerColor(ci); hmean_Hino_525_Zee_stack_2->SetMarkerStyle(20); hmean_Hino_525_Zee_stack_2->SetMarkerSize(2); hmean_Hino_525_Zee_stack_2->GetXaxis()->SetLabelFont(42); hmean_Hino_525_Zee_stack_2->GetXaxis()->SetTitleOffset(1); hmean_Hino_525_Zee_stack_2->GetXaxis()->SetTitleFont(42); hmean_Hino_525_Zee_stack_2->GetYaxis()->SetLabelFont(42); hmean_Hino_525_Zee_stack_2->GetYaxis()->SetTitleFont(42); hmean_Hino_525_Zee_stack_2->GetZaxis()->SetLabelFont(42); hmean_Hino_525_Zee_stack_2->GetZaxis()->SetTitleOffset(1); hmean_Hino_525_Zee_stack_2->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_525_Zee_stack_2,""); Double_t xAxis49[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hmean_Hino_925_Zee_stack_3 = new TH1F("hmean_Hino_925_Zee_stack_3","",11, xAxis49); hmean_Hino_925_Zee_stack_3->SetBinContent(1,12.81256); hmean_Hino_925_Zee_stack_3->SetBinContent(2,-1.25865); hmean_Hino_925_Zee_stack_3->SetBinContent(3,-0.447783); hmean_Hino_925_Zee_stack_3->SetBinContent(4,-1.12595); hmean_Hino_925_Zee_stack_3->SetBinContent(5,6.047687); hmean_Hino_925_Zee_stack_3->SetBinContent(6,-6.037447); hmean_Hino_925_Zee_stack_3->SetBinContent(7,-3.395479); hmean_Hino_925_Zee_stack_3->SetBinContent(8,-5.240692); hmean_Hino_925_Zee_stack_3->SetBinContent(9,-5.401091); hmean_Hino_925_Zee_stack_3->SetBinContent(10,-2.65281); hmean_Hino_925_Zee_stack_3->SetBinContent(11,4.216515); hmean_Hino_925_Zee_stack_3->SetBinError(1,6.379063); hmean_Hino_925_Zee_stack_3->SetBinError(2,3.101091); hmean_Hino_925_Zee_stack_3->SetBinError(3,3.276522); hmean_Hino_925_Zee_stack_3->SetBinError(4,3.846763); hmean_Hino_925_Zee_stack_3->SetBinError(5,3.610716); hmean_Hino_925_Zee_stack_3->SetBinError(6,4.610864); hmean_Hino_925_Zee_stack_3->SetBinError(7,3.067221); hmean_Hino_925_Zee_stack_3->SetBinError(8,3.645108); hmean_Hino_925_Zee_stack_3->SetBinError(9,4.451777); hmean_Hino_925_Zee_stack_3->SetBinError(10,4.156663); hmean_Hino_925_Zee_stack_3->SetBinError(11,3.702761); hmean_Hino_925_Zee_stack_3->SetEntries(11); ci = TColor::GetColor("#ff0000"); hmean_Hino_925_Zee_stack_3->SetLineColor(ci); ci = TColor::GetColor("#ff0000"); hmean_Hino_925_Zee_stack_3->SetMarkerColor(ci); hmean_Hino_925_Zee_stack_3->SetMarkerStyle(20); hmean_Hino_925_Zee_stack_3->SetMarkerSize(2); hmean_Hino_925_Zee_stack_3->GetXaxis()->SetLabelFont(42); hmean_Hino_925_Zee_stack_3->GetXaxis()->SetTitleOffset(1); hmean_Hino_925_Zee_stack_3->GetXaxis()->SetTitleFont(42); hmean_Hino_925_Zee_stack_3->GetYaxis()->SetLabelFont(42); hmean_Hino_925_Zee_stack_3->GetYaxis()->SetTitleFont(42); hmean_Hino_925_Zee_stack_3->GetZaxis()->SetLabelFont(42); hmean_Hino_925_Zee_stack_3->GetZaxis()->SetTitleOffset(1); hmean_Hino_925_Zee_stack_3->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_925_Zee_stack_3,""); Double_t xAxis50[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hmean_Zee_stack_4 = new TH1F("hmean_Zee_stack_4","",11, xAxis50); hmean_Zee_stack_4->SetBinContent(1,1.208492); hmean_Zee_stack_4->SetBinContent(2,1.591686); hmean_Zee_stack_4->SetBinContent(3,1.850136); hmean_Zee_stack_4->SetBinContent(4,1.762501); hmean_Zee_stack_4->SetBinContent(5,0.108841); hmean_Zee_stack_4->SetBinContent(6,-1.108553); hmean_Zee_stack_4->SetBinContent(7,-4.479308); hmean_Zee_stack_4->SetBinError(1,0.06386499); hmean_Zee_stack_4->SetBinError(2,0.1108315); hmean_Zee_stack_4->SetBinError(3,0.1797838); hmean_Zee_stack_4->SetBinError(4,0.3599027); hmean_Zee_stack_4->SetBinError(5,1.000471); hmean_Zee_stack_4->SetBinError(6,2.887466); hmean_Zee_stack_4->SetBinError(7,11.69842); hmean_Zee_stack_4->SetEntries(11); hmean_Zee_stack_4->SetMarkerStyle(20); hmean_Zee_stack_4->SetMarkerSize(2); hmean_Zee_stack_4->GetXaxis()->SetLabelFont(42); hmean_Zee_stack_4->GetXaxis()->SetTitleOffset(1); hmean_Zee_stack_4->GetXaxis()->SetTitleFont(42); hmean_Zee_stack_4->GetYaxis()->SetLabelFont(42); hmean_Zee_stack_4->GetYaxis()->SetTitleFont(42); hmean_Zee_stack_4->GetZaxis()->SetLabelFont(42); hmean_Zee_stack_4->GetZaxis()->SetTitleOffset(1); hmean_Zee_stack_4->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Zee_stack_4,""); hs_m->Draw("nostack p"); TLegend *leg = new TLegend(0.65,0.7,0.82,0.88,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.03); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("hmean_Hino_135_2ns_stack_1","Hino_135_2ns","lpf"); entry->SetFillStyle(1001); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#00ff00"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(20); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("hmean_Hino_525_Zee_stack_2","Hino_525_Zee","lpf"); entry->SetFillStyle(1001); ci = TColor::GetColor("#ffcc00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#ffcc00"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(20); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("hmean_Hino_925_Zee_stack_3","Hino_925_Zee","lpf"); entry->SetFillStyle(1001); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#ff0000"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(20); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("hmean_Zee_stack_4","Zee","lpf"); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(20); entry->SetMarkerSize(2); entry->SetTextFont(42); leg->Draw(); TLatex * tex = new TLatex(0.14,0.84,"ATLAS"); tex->SetNDC(); tex->SetTextFont(72); tex->SetTextSize(0.045); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.25,0.84,"Internal"); tex->SetNDC(); tex->SetTextFont(42); tex->SetTextSize(0.045); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.14,0.8,"#sqrt{s} = 13 TeV"); tex->SetNDC(); tex->SetTextFont(42); tex->SetTextSize(0.03375); tex->SetLineWidth(2); tex->Draw(); c_m->Modified(); c_m->cd(); c_m->SetSelected(c_m); }