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

fix: draw fit iff fit

parent 9c64efa7
Branches
No related tags found
2 merge requests!309Irt algo,!293feat: dRICH benchmarks
......@@ -179,7 +179,8 @@ for rad in ["Aerogel", "Gas"]:
resid_dev = hist.GetStdDev()
nsigma = 3
hist.Fit("gaus", "", "", resid_mode - nsigma*resid_dev, resid_mode + nsigma*resid_dev)
hist.GetFunction("gaus").SetLineWidth(5)
if hist.GetFunction("gaus"):
hist.GetFunction("gaus").SetLineWidth(5)
canv.cd(5)
ana_file.Get(f'{pid_name}/highestWeight_dist_{rad}').Draw()
canv.cd(6)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment