Options for saving best-fit values for parameters w/o running Hesse and for loading parameters from a RooArgList #688
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds an option
--saveFitResultWithoutHesse
to save the best fit parameter values to fit_mdf without triggering the Hesse run.After some postprocessing (see PR in summer21 repository) into a RooArgList of fit parameters these can then be loaded to set the initial values of a new fit using
--setParametersFromList <filename.root>
wherefilename.root
should contain a RooArgListfitpars
that will be used to set the parameter values (the creation of this is taken care of by the postprocessing script)The idea is that you can use the best fit values of a fit with a slightly different configuration as a starting point, e.g. the inclusive mu fit from the STXS fit, or the combined fit with the information from the fits of individual channels. The latter was tested in a combination of hgg, hzz, vhbb, tthbb, tthll (ie main STXS channels except hww, which had some problems), where the initial fit time was reduced by 30% by setting the initial NP values from the fit to those obtained from the individual channel fits.