# Ratio of two TEfficiency objects

**URL:** <https://root-forum.cern.ch/t/ratio-of-two-tefficiency-objects/63027>\
**Category:** Newbie\
**Tags:** root\
**Created:** [February 26, 2025, 2:22pm UTC](https://root-forum.cern.ch/t/ratio-of-two-tefficiency-objects/63027 "2025-02-26T14:22:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![smeriano](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/8dc957/32.png) [@smeriano](https://root-forum.cern.ch/u/smeriano)\
**Post date:** [February 26, 2025, 2:22pm UTC](https://root-forum.cern.ch/t/ratio-of-two-tefficiency-objects/63027/1 "2025-02-26T14:22:26Z")

</div>

Hello experts,

This question has been asked in the past (See Refs [[1]](https://root-forum.cern.ch/t/taking-ratio-of-tefficiency-distributions/25806/4) , [[2]](https://root-forum.cern.ch/t/tratioplot-of-two-tefficiency-objects/25659), [[3]](https://root-forum.cern.ch/t/draw-ratio-between-2-tefficiency-object/47514/2)) but since some years passed I want to make sure we understand the correct way of dividing two TEfficiency objects.

Assuming we have two uncorrelated TEfficiency objects, A\_eff and B\_eff , should we

1. convert them to TH1 objects
2. use TH1::Divide with the Option “B” (Binomial)

Thanks a lot for your time.

~ Spyros

---

<div class="post-metadata">

**Author:** ![mczurylo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mczurylo/32/33269_2.png) [@mczurylo](https://root-forum.cern.ch/u/mczurylo)\
**Post date:** [February 27, 2025, 8:41am UTC](https://root-forum.cern.ch/t/ratio-of-two-tefficiency-objects/63027/2 "2025-02-27T08:41:19Z")

</div>

Hi @smeriano,

I believe the answers to the previous ROOT questions are still valid even though a few years have passed. We also keep our documentation up to date, so I believe you can also follow what is written [here](https://root.cern/doc/master/classTEfficiency.html). Nonetheless, let me tag @moneta for some more detailed insights.

Cheers,  
Marta

---

<div class="post-metadata">

**Author:** ![smeriano](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/8dc957/32.png) [@smeriano](https://root-forum.cern.ch/u/smeriano)\
**Post date:** [February 27, 2025, 11:35am UTC](https://root-forum.cern.ch/t/ratio-of-two-tefficiency-objects/63027/3 "2025-02-27T11:35:37Z")

</div>

Hi @mczurylo ,

Thanks a lot for the quick response 🙂 !

I read the documentation of TEfficiency and there is no report of taking the ratio of two such objects. So there needs to be some conversion of them to TH1 or graphs before proceeding with the division. At least that’s what I understand from Reference 3.

As there is not a written example in the forum, I took the liberty of re-opening the issue.

---

<div class="post-metadata">

**Author:** ![smeriano](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/8dc957/32.png) [@smeriano](https://root-forum.cern.ch/u/smeriano)\
**Post date:** [March 3, 2025, 1:46pm UTC](https://root-forum.cern.ch/t/ratio-of-two-tefficiency-objects/63027/4 "2025-03-03T13:46:11Z")

</div>

Hello! Do we have any updates on this issue?

Thanks a lot!!

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [March 4, 2025, 4:43pm UTC](https://root-forum.cern.ch/t/ratio-of-two-tefficiency-objects/63027/5 "2025-03-04T16:43:05Z")

</div>

Hi,

My answer post few years ago, [Taking Ratio of TEfficiency Distributions - #4 by awisecar](https://root-forum.cern.ch/t/taking-ratio-of-tefficiency-distributions/25806/4) , it is still valid.  
We don’t have way to compute correct uncertainty in ROOT for this case. You can maybe use an approximation, which will be more or less valid depending on your data values.

Lorenzo

---

<div class="post-metadata">

**Author:** ![smeriano](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/8dc957/32.png) [@smeriano](https://root-forum.cern.ch/u/smeriano)\
**Post date:** [March 4, 2025, 4:45pm UTC](https://root-forum.cern.ch/t/ratio-of-two-tefficiency-objects/63027/6 "2025-03-04T16:45:55Z")

</div>

Thanks for your answer @moneta ! Have a good day.
