# Area under gaussian peak without exponential background

**URL:** <https://root-forum.cern.ch/t/area-under-gaussian-peak-without-exponential-background/59116>\
**Category:** Newbie\
**Created:** [April 24, 2024, 9:23am UTC](https://root-forum.cern.ch/t/area-under-gaussian-peak-without-exponential-background/59116 "2024-04-24T09:23:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![liz](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/liz/32/36077_2.png) [@liz](https://root-forum.cern.ch/u/liz)\
**Post date:** [April 24, 2024, 9:23am UTC](https://root-forum.cern.ch/t/area-under-gaussian-peak-without-exponential-background/59116/1 "2024-04-24T09:23:26Z")

</div>

Hello, I need to find the area under a gaussian peak. The problem is that the data I’m fitting has an exponential background that I don’t want to consider. Is there a way of calculating just the integral of the area without the exponential?

I attached my code and also a set of data (it should be converted back to .CSV)

[TEK00009.txt](https://root-forum.cern.ch/uploads/short-url/ffWU9fpe8yUuN0tocfgaxMV8OfB.txt) (42.2 KB)

[Haynes.C](https://root-forum.cern.ch/uploads/short-url/rBWJPuQQ6Ee3XwFLqpW3ci9JpMg.C) (6.0 KB)

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [April 24, 2024, 10:09am UTC](https://root-forum.cern.ch/t/area-under-gaussian-peak-without-exponential-background/59116/2 "2024-04-24T10:09:12Z")

</div>

Hi,

I do not understand the question. There is an analytical solution, you can certainly do this starting from the fitted parameter values.  
Please correct me if I miss something.

Best,  
D
