I am trying to get a TFitResultPtr from fitting a TEfficiency object.
I am calling
e11_5051->Fit(f2,“S”);
but it returns zero.
Other options (i.e. I or V) seem to have an effect, it’s just S that is not working.
any idea why this is happening?
Tried it in several versions of root, latest is 6.06/02
Well, it’s just this. I have a TEfficiency object e11_5051 ( and as you can guess from the name, many like it). It looks fine, the errors are ok and the fit is correct. It’s just that when I call
e11_5051->Fit(f2,“S”);
It returns zero.
I can make the fit different with “I” option, so some parameters get through.
Just not “S”.
I can send a root file and the .C file that is my function f2, but the problem should be reproducible in one line. Would you like me to do that, nonetheless?
Yes, option S is not yet implemented for TEfficieny. Since it is trivial to add, I will do it now.
If you need, as workaround you can use the TBinomialEfficiencyFitter class which is used inside TEfficiency