I’d like to know if there is an easy way to save the results of a fit performed with a TFitterMinuit in a root file. Basically, I want to save simple informations like the parameter names, values, errors, the correlation matrix…
I’ve tried to use the function Write() in a TFile, but it doesn’t work.
thanks a lot in advance for your help
you can store parameter and errors in a TF1 and the correlation matrix in a TMatrix which you can put in a file. Otherwise if you are using the ROOT::Fit::Fitter class you should be able to store the FitResult class which contains all the information of the result of the fit.
thank you for your answer.
I can of course store the parameters, etc in a root object that I can save in a file, but it’s exactly what I wanted to avoid.
I was just wondering if there was an “easy” way to do it (something already coded). It seems that it is not the case, so I will code it by mymelf.