# How calculate net area in root

**URL:** <https://root-forum.cern.ch/t/how-calculate-net-area-in-root/43119>\
**Category:** Newbie\
**Tags:** tree, graphics, hist, roofit, root\
**Created:** [January 15, 2021, 6:00pm UTC](https://root-forum.cern.ch/t/how-calculate-net-area-in-root/43119 "2021-01-15T18:00:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![oumaima\_ben\_chamakh](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oumaima_ben_chamakh/32/24593_2.png) [@oumaima\_ben\_chamakh](https://root-forum.cern.ch/u/oumaima_ben_chamakh)\
**Post date:** [January 15, 2021, 6:00pm UTC](https://root-forum.cern.ch/t/how-calculate-net-area-in-root/43119/1 "2021-01-15T18:00:48Z")

</div>

Hello , please can anyone explain me how calculate net area in root ?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 15, 2021, 6:12pm UTC](https://root-forum.cern.ch/t/how-calculate-net-area-in-root/43119/2 "2021-01-15T18:12:03Z")

</div>

Net area ? what do you mean ?

---

<div class="post-metadata">

**Author:** ![oumaima\_ben\_chamakh](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oumaima_ben_chamakh/32/24593_2.png) [@oumaima\_ben\_chamakh](https://root-forum.cern.ch/u/oumaima_ben_chamakh)\
**Post date:** [January 19, 2021, 3:41pm UTC](https://root-forum.cern.ch/t/how-calculate-net-area-in-root/43119/3 "2021-01-19T15:41:07Z")

</div>

i need to calculate detector efficiency and the expression of this is  
 ![efficacité detecteur](https://root-forum.cern.ch/uploads/default/original/3X/4/7/471f69e469e810ce0ccaac948808061adfd8059f.png)  
with N IS is the net area at the interest peak energy

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 21, 2021, 1:00pm UTC](https://root-forum.cern.ch/t/how-calculate-net-area-in-root/43119/4 "2021-01-21T13:00:41Z")

</div>

I am not sure there is a predefined function in ROOT to compute such formulae.  
May be @moneta has an idea about it.

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [January 25, 2021, 9:42am UTC](https://root-forum.cern.ch/t/how-calculate-net-area-in-root/43119/5 "2021-01-25T09:42:32Z")

</div>

I suppose that’s the integral? You can use [`TF1::Integral()`](https://root.cern/doc/master/classTF1.html#a596e02742b00f1e265cc2dbe4daf20fe) if it’s coming from a fit. We’ll need a bit more context to be able to help, as is I might just reply "You want to divide N by A times Ptc? Use `/` and `*`" 😉
