Background subtraction

Hello

I have several root files with energy histograms and I have a separate root file with background data with Gaussian fits.

I need to subtract the background from my histograms.

My question is how can I adjust the background fit to other histograms when the number of events and the peak heights are different in order to properly apply the subtraction.

Thank you in advance

Hanan,

a good strategy could be to adopt as signal+background model a gaussian + a parabola.
You can have a look to the ROOT primer to learn how to implement that: root.cern.ch/root/htmldoc/guide … seudo-data

Cheers,
D

Thank you so much, I will try that.