From 57a6969de84f0c827176d398297119f3d9eb8449 Mon Sep 17 00:00:00 2001 From: "xiangyu.xie" Date: Mon, 31 Aug 2026 14:24:55 +0200 Subject: [PATCH] Fix the missing sqrt(2) in ERF fitting func. Co-authored-by: Copilot --- src/funcs_postprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/funcs_postprocess.py b/src/funcs_postprocess.py index bc443c1..0dd8eb2 100644 --- a/src/funcs_postprocess.py +++ b/src/funcs_postprocess.py @@ -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