# Subtract the background normalized

**URL:** <https://root-forum.cern.ch/t/subtract-the-background-normalized/52222>\
**Category:** Newbie\
**Tags:** root\
**Created:** [November 4, 2022, 9:46pm UTC](https://root-forum.cern.ch/t/subtract-the-background-normalized/52222 "2022-11-04T21:46:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amirreza\_Lotfian](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/amirreza_lotfian/32/30041_2.png) [@Amirreza\_Lotfian](https://root-forum.cern.ch/u/Amirreza_Lotfian)\
**Post date:** [November 4, 2022, 9:46pm UTC](https://root-forum.cern.ch/t/subtract-the-background-normalized/52222/1 "2022-11-04T21:46:19Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [November 6, 2022, 3:51am UTC](https://root-forum.cern.ch/t/subtract-the-background-normalized/52222/2 "2022-11-06T03:51:34Z")

</div>

[https://root.cern/doc/master/FittingDemo\_8C.html](https://root.cern/doc/master/FittingDemo_8C.html)  
See also other tutorials on fitting:  
[https://root.cern/doc/master/group\_\_tutorial\_\_fit.html](https://root.cern/doc/master/group __tutorial__ fit.html)
