How obtain histogram from TEfficiency


Is there a way to obtain a histogram from a TEfficiency plot? For instance, I would like to change the x axis using SetAxisRange or integrate the area under a TEfficiency plot but these operations do not work on a TEfficiency object but they do on a histogram.

Thank You


You can get a TGraphAsymmErrors from TEfficiency after having drawn the class, via the method GetPaintedGraph. Otherwise you can yourself fill an histogram from TEfficiency by setting the content for each bin (via SetBinContent), but there is now way to set an asymmetric error in the TH1 class.
Probably we would need to improve this, we need to think about the right solution,

Best Regards