Skip to content
Snippets Groups Projects
Commit 17f87238 authored by Christopher Dilks's avatar Christopher Dilks
Browse files

fix: zoom on residual vs. p or eta

parent 33c82369
No related branches found
No related tags found
2 merge requests!309Irt algo,!293feat: dRICH benchmarks
...@@ -106,6 +106,8 @@ def draw_profile(hist, rad, style="BOX"): ...@@ -106,6 +106,8 @@ def draw_profile(hist, rad, style="BOX"):
p.GetXaxis().SetRangeUser(0, RADIATORS[rad]['p_max']) p.GetXaxis().SetRangeUser(0, RADIATORS[rad]['p_max'])
if 'rindex_ref' in RADIATORS[rad] and 'theta_vs_p' in hist.GetName(): if 'rindex_ref' in RADIATORS[rad] and 'theta_vs_p' in hist.GetName():
p.GetYaxis().SetRangeUser(0, 1.5*calculate_theta_max(RADIATORS[rad]['rindex_ref'])) p.GetYaxis().SetRangeUser(0, 1.5*calculate_theta_max(RADIATORS[rad]['rindex_ref']))
if 'thetaResid_vs' in hist.GetName():
p.GetYaxis().SetRangeUser(-RESID_MAX, RESID_MAX)
hist_rebinned.Draw(style) hist_rebinned.Draw(style)
prof.Draw("SAME") prof.Draw("SAME")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment