I am new to root and I have been trying to do a fit using Birks’ function which contains an integral. I know how to define my own function for the fit but I don’t know how to include the integral in it. If someone knows a simple example to understand or a solution I would really appreciate it. Thank you in advance. Note that the parameters are the S and kB circled in blue.