Re: TGraphAsymmErrors::Divide -> SetBinContent leads to wrong results

From: Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch>
Date: Tue, 8 Feb 2011 22:54:35 +0100


Hi Alexander,

 Which version of ROOT are you using ? In 5.28 we have re-implemented this method using the new TEfficiency class,  see http://root.cern.ch/root/htmldoc/TEfficiency.html

It should not give an error when a bin in both histogram have zero content  

 Cheers, Lorenzo
On Feb 8, 2011, at 5:57 PM, Alexander Mann wrote:

>
> Hi,
>
> I am using TGraphAsymmErrors::BayesDivide to calculate cut efficiencies.
>
> Under certain circumstances I'd like to mask out some bins of my histogram by setting both enumerator and denominator to zero using SetBinContent.
>
> This breaks TGraphAsymmErrors::(Bayes)Divide, because then the built-in flag bEffective is (I guess) set to true leading to error messages, wrong results etc. Unfortunately, there is no way of steering bEffective from outside the function.
>
> Is there a way to amend this?
>
> Thanks,
> Alexander
>
Received on Tue Feb 08 2011 - 22:55:12 CET

This archive was generated by hypermail 2.2.0 : Tue Feb 08 2011 - 23:50:01 CET