I’m trying to get the error of the final value of the fitting parameter from a saved RooFitResult.
I can get the final value as follows (I’m not sure if it’s the best way, though).
Is there any way to retrieve the value of the error of the final value (HiError and LoError)?
Thank you in advance for your help.
I think you could obtain them more easily.
RooRealVar *par1 = new RooRealVar(…);
// after the fitting
you can find more on
Thank you for your comment.
I may have something misunderstood, but my question is something different.
I have a file only with a saved RooFitResult.
I wanted to know how to get the value from the RooFitResult in the file instead of from the RooRealVar.
Sorry, I really misunderstood your former question. In this case I also want to know the answer.
The RooRealVars stored in RooFitResult::floatParsFinal()
do contain all errors, so you can do
RooRealVar* par1_fitresult = (RooRealVar*) fitresult->floatParsFinal()->find(“par1”)
par1_fitresult->GetAsymErrorHi() ; // etc…