Area under histogram subtracting the background?

Hello ROOT experts,

I am trying to get the area under the peak; really, a TH1F histogram from bin Xmin to bin Xmax and not count the area under the background.
Can someone please suggest how to achieve this, or if there is some functionality to achieve this already?

Many thanks for your help!

You could try searching the forum Search results for 'area peak' - ROOT Forum and if you don’t find a proper solution maybe @moneta can give some hints

Thank You for the help.

1 Like