Subtract the background normalized

Hi, I have a histogram. I find its peak, and find the best Gaussian distribution which fit to the shape of the peak ( with tools-> fit panel). I use IntegralAndError(interval,error) to find the area under the curve. Now I want to subtract the background normalized. Could somebody help me please what I should do?
Thanks,

https://root.cern/doc/master/FittingDemo_8C.html
See also other tutorials on fitting:
https://root.cern/doc/master/group__tutorial__fit.html

1 Like