Fix the missing sqrt(2) in ERF fitting func.
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user