Fix the missing sqrt(2) in ERF fitting func.

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-08-31 14:24:55 +02:00
co-authored by Copilot
parent 3686b3e8c4
commit 57a6969de8
+1 -1
View File
@@ -252,7 +252,7 @@ def get_graph_fitting(xPreSampled, zPreSampled, xErrors, zErrors):
gr_oversampled.SetTitle(';X Position Aligned [#mum]; Relative Intensity')
gr_oversampled.Draw('APL')
erf_func = TF1('erf_func', '[0]*0.5*(1 + TMath::Erf((x - [1])/[2])) + [3]')
erf_func = TF1('erf_func', '[0]*0.5*(1 + TMath::Erf((x - [1])/(TMath::Sqrt(2)*[2]))) + [3]')
erf_func.SetLineColor(kRed+1)
erf_func.SetParLimits(0, 0.2, 1.2) # amplitude
erf_func.SetParLimits(1, -5*2.5, 5*2.5) # midpoint