# Facing an error while running

**URL:** <https://root-forum.cern.ch/t/facing-an-error-while-running/38506>\
**Category:** Newbie\
**Tags:** graphics, root\
**Created:** [March 20, 2020, 2:42pm UTC](https://root-forum.cern.ch/t/facing-an-error-while-running/38506 "2020-03-20T14:42:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertfroast](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/robertfroast/32/21121_2.png) [@robertfroast](https://root-forum.cern.ch/u/robertfroast)\
**Post date:** [March 20, 2020, 2:42pm UTC](https://root-forum.cern.ch/t/facing-an-error-while-running/38506/1 "2020-03-20T14:42:40Z")

</div>

I am getting some kind of error  
Please help me in resolving this error.  
Now, I am getting another error while running my overall code.

```
**error:**  **no member named 'FindFixBin' in 'TGraph'** std::cout << g->Integral(g->FindFixBin(410.), g->FindFixBin(422.)) << std::endl;
```

_ROOT Version:_ 6.14  
_Platform:_ ubuntu  
_Compiler:_

* * *

---

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [March 20, 2020, 2:53pm UTC](https://root-forum.cern.ch/t/facing-an-error-while-running/38506/2 "2020-03-20T14:53:52Z")

</div>

Hi,

You are calling a method `FindFixBin` in `TGraph` but the class does not define that method. Can you double check that this is the method you want to invoke?

---

<div class="post-metadata">

**Author:** ![robertfroast](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/robertfroast/32/21121_2.png) [@robertfroast](https://root-forum.cern.ch/u/robertfroast)\
**Post date:** [March 20, 2020, 2:59pm UTC](https://root-forum.cern.ch/t/facing-an-error-while-running/38506/3 "2020-03-20T14:59:43Z")

</div>

hi @etejedor  
Thanks for responding.  
Actually initially i was calculating the areas under the peak in histogram.  
So, i was taking … bin to … bin  
but now i switch from histogram to graph.  
So, how should i proceed for calculating the area under the peaks.

---

<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:** [March 20, 2020, 3:04pm UTC](https://root-forum.cern.ch/t/facing-an-error-while-running/38506/4 "2020-03-20T15:04:37Z")

</div>

> [@robertfroast](#):
>
> how should i proceed for calculating the area under the peaks

[https://root.cern/doc/master/classTGraph.html#a06b6dfc69d4fe9336ade71a47864f974](https://root.cern/doc/master/classTGraph.html#a06b6dfc69d4fe9336ade71a47864f974)
