where fit2 is my fitting function.
The result for the integral is a value while the result for the error is always 0.
I tried to calculate the integral and the error by root on termina:
Parameters->Integral(val, val)
Parameters->ErrorIntegral(val, val)
In this way the results are different and in particular the ErrorIntegral is non0 value.
My questions are: why are the results so different? There is something wrong?If I need the number of counts under the fit function what I have to do?
Hi,
Can you please post a running macro reproducing this problem. Without knowing what you are doing before, it is difficult to get an answer. Normally TF1::IntegralError needs to be applied after having performed the fit, otherwise you can pass the needed parameters and covariance matrix to the function
BTW. When you post “source code” or “output” here, do remember to enclose them into two lines which contain just three characters ``` (see how your post has been edited above).
I tried adding the WR but the error is always 0. In the post above the range is wrong, I want the error in the same range of the integral and of the fit. Even if it’s correct the range the result is wrong.