# TRatioPlot of Two TEfficiency Objects

**URL:** <https://root-forum.cern.ch/t/tratioplot-of-two-tefficiency-objects/25659>\
**Category:** ROOT\
**Created:** [July 22, 2017, 8:08pm UTC](https://root-forum.cern.ch/t/tratioplot-of-two-tefficiency-objects/25659 "2017-07-22T20:08:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![feickert](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/cc9497/32.png) [@feickert](https://root-forum.cern.ch/u/feickert)\
**Post date:** [July 22, 2017, 8:08pm UTC](https://root-forum.cern.ch/t/tratioplot-of-two-tefficiency-objects/25659/1 "2017-07-22T20:08:26Z")

</div>

Hi,

If I want to make a `TRatioPlot` of two `TEfficiency` objects (I want to see how a `TEfficiency` from two different runs compare to each other), is there an easy way to do this?

It seems like for each `TEfficiency` object I would need to use [`TEfficiency::CreateGraph()`](https://root.cern.ch/doc/master/classTEfficiency.html#afdd326cff367c45790b2f0d819f83be4) to get the [`TGraphAsymmErrors`](https://root.cern.ch/doc/master/classTGraphAsymmErrors.html) object, then do [some small routine to copy the information](https://root-forum.cern.ch/t/convert-canvas-into-histogram-in-root/16322/11) in each `TGraphAsymmErrors` object to a `TH1` object, and then from the two resulting `TH1` objects make a [`TRatioPlot`](https://root.cern.ch/doc/v608/classTRatioPlot.html). However, this should fail as “[histograms with asymmetric errors are not supported](https://root.cern.ch/root/roottalk/roottalk02/0249.html)” (as of 2002 at least).

Is there a known (and efficient) way to accomplish this?

---

<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:** [July 25, 2017, 9:12am UTC](https://root-forum.cern.ch/t/tratioplot-of-two-tefficiency-objects/25659/2 "2017-07-25T09:12:53Z")

</div>

[TRatioPlot takes two TH1 as parameters](https://root.cern/doc/master/classTRatioPlot.html). You should make sure have such objects when you create a TRatioPlot.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [August 8, 2017, 9:12am UTC](https://root-forum.cern.ch/t/tratioplot-of-two-tefficiency-objects/25659/3 "2017-08-08T09:12:58Z")

</div>

Closed on August 8, 2017, 9:12am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
