TEfficiency with weighted events, error bars

Hi,

I am using TEfficiency with weighted events, using FillWeighted in the event loop.
Everything looks fine except the points where the efficiency is 1. When the efficiency is 1, the low error is okay but the upper error is 1.
Any ideas about how to solve this or what the issue might be?

Cheers,
Ece

Hi,

Do you have an example reproducing the problem ? I think it is due to the fact that with weights Efficiency by default uses the normal approximation of the errors and this gives symmetric errors also for efficiency value = 1.
You might try to use the Bayesian option for the error:
TEfficiency::SetStatisticOption(TEfficiency::kBUNiform);

Best Regards

Lorenzo

Hi,

Thank you for your answer. This fixed my problem but I wanted to continue to use the Normal option.

After all, I changed the ROOT version that I was using to 5.34/22 and it worked very well.
Sorry for the trouble.

Cheers,
Ece