I am trying to move from Minuit to Minuit2, following the example code listed at https://root.cern/doc/master/NumericalMinimization_8C.html. However, it is unclear to me how the ROOT::Math::Minimizer class can be used to call different algorithms after one another. For example, with a TMinuit object, I would want to call a minimization using the Migrad algorithm before then calling another minimization using the Minos algorithm in order to (1) improve the fit and (2) estimate parameter uncertainties. With ROOT::Math::Minimizer, it looks as if you have to create the Minimizer object with a specific algorithm “pre-set,” and then you call the Minimize() function to execute that specific algorithm. How can I use this new minimizer class to call several different algorithms from the same minimizer object? Is this possible?
Thank you in advance.