ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided
Dear Rooters,
I am trying to fit a Gaussian peak so I can calculate the area under the peak.
when I choose the single Gaussian fitting function, it did not fit perfectly (Black, dot-like line), so I choose to fit the single peak with double Gaussian function (red line).
TF1 *gaus= new TF1(“gaus”,"[0]exp(-0.5((x-[1])/[2])**2)",10000,16500);
values of standard deviation less than zero, how could this be??
-How can I estimate the area under the peak (single peak +6 parameters) from such function? DOUBLEGAUSE.pdf (23.3 KB)
I don’t get it, How could the error compensate the value??
and I am confuse about how this function can describe the peak
what these parameters refer to??
if Sigma still the width at Half maximum, it can not be less than zero??
and how I can calculate the area under the peak using these parameters??
Hi,
MINUIT (MIGRAD) does function minimization,
it does not know about gaussians, sigma etc.
In your function P2 and P5 (which y o u call sigma) only appear
squared, so the function does n o t depend on their sign.
If you include sigma in the normalization thats different: