# TEfficiency error bars too big

**URL:** <https://root-forum.cern.ch/t/tefficiency-error-bars-too-big/54588>\
**Category:** Newbie\
**Tags:** root\
**Created:** [April 23, 2023, 9:30am UTC](https://root-forum.cern.ch/t/tefficiency-error-bars-too-big/54588 "2023-04-23T09:30:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arazquin](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/df788c/32.png) [@arazquin](https://root-forum.cern.ch/u/arazquin)\
**Post date:** [April 23, 2023, 9:30am UTC](https://root-forum.cern.ch/t/tefficiency-error-bars-too-big/54588/1 "2023-04-23T09:30:50Z")

</div>

_ROOT Version:_ 6.18/00  
_Platform:_ Red Hat 8.5.0-16  
_Compiler:_ gcc version 8.5.0

* * *

Hello experts,  
I have a question regarding the TEfficiency plots. I am creating the plots as

```auto
TEfficiency* pEff = new TEfficiency("eff","Seeding acceptance; pT [MeV/c]; Efficiency",30,0,105);
for (range) {
     if (A) {pEff->Fill(true, value);}
     if (B) {pEff->Fill(false, value);}
}

```

and I get this attached plot. Why am I getting the first two huge error bars? What do they stand for?

Thank you in advance!  
 ![acceptance](https://root-forum.cern.ch/uploads/default/original/3X/2/3/230d01d69d207d744c0561ac209b765577a343b0.png)

---

<div class="post-metadata">

**Author:** ![jalopezg](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jalopezg/32/25844_2.png) [@jalopezg](https://root-forum.cern.ch/u/jalopezg)\
**Post date:** [April 24, 2023, 11:01am UTC](https://root-forum.cern.ch/t/tefficiency-error-bars-too-big/54588/2 "2023-04-24T11:01:31Z")

</div>

Hi @arazquin; I am sure @moneta can help here.

Cheers,  
J.

---

<div class="post-metadata">

**Author:** ![arazquin](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/df788c/32.png) [@arazquin](https://root-forum.cern.ch/u/arazquin)\
**Post date:** [May 2, 2023, 4:07am UTC](https://root-forum.cern.ch/t/tefficiency-error-bars-too-big/54588/3 "2023-05-02T04:07:01Z")

</div>

I believe that this was occurring because there were not enough points for these values of pT.
