13#ifndef ROOT_ROOFIT_TESTSTATISTICS_LikelihoodGradientWrapper
14#define ROOT_ROOFIT_TESTSTATISTICS_LikelihoodGradientWrapper
27namespace TestStatistics {
31struct WrapperCalculationCleanFlags;
38 std::shared_ptr<WrapperCalculationCleanFlags> calculation_is_clean, std::size_t N_dim,
43 static std::unique_ptr<LikelihoodGradientWrapper>
45 std::shared_ptr<WrapperCalculationCleanFlags> calculationIsClean, std::size_t nDim,
RooMinimizer *minimizer);
55 const std::vector<ROOT::Fit::ParameterSettings> ¶meter_settings) = 0;
Documentation for the abstract class IBaseFunctionMultiDim.
Virtual base class for implementation of likelihood gradient calculation strategies.
virtual bool usesMinuitInternalValues()=0
Implement usesMinuitInternalValues to return true when you want Minuit to send this class Minuit-inte...
virtual bool isCalculating()=0
Reports whether or not the gradient is currently being calculated.
std::shared_ptr< WrapperCalculationCleanFlags > calculation_is_clean_
virtual void synchronizeWithMinimizer(const ROOT::Math::MinimizerOptions &options)
Synchronize minimizer settings with calculators in child classes.
virtual void updateMinuitInternalParameterValues(const std::vector< double > &minuit_internal_x)
Minuit passes in parameter values that may not conform to RooFit internal standards (like applying ra...
virtual void fillGradient(double *grad)=0
std::shared_ptr< RooAbsL > likelihood_
RooMinimizer * minimizer_
virtual void synchronizeParameterSettings(ROOT::Math::IMultiGenFunction *function, const std::vector< ROOT::Fit::ParameterSettings > ¶meter_settings)=0
static std::unique_ptr< LikelihoodGradientWrapper > create(LikelihoodGradientMode likelihoodGradientMode, std::shared_ptr< RooAbsL > likelihood, std::shared_ptr< WrapperCalculationCleanFlags > calculationIsClean, std::size_t nDim, RooMinimizer *minimizer)
Factory method.
virtual void synchronizeParameterSettings(const std::vector< ROOT::Fit::ParameterSettings > ¶meter_settings)
virtual ~LikelihoodGradientWrapper()=default
virtual void fillGradientWithPrevResult(double *grad, double *previous_grad, double *previous_g2, double *previous_gstep)=0
virtual void updateMinuitExternalParameterValues(const std::vector< double > &minuit_external_x)
virtual LikelihoodGradientWrapper * clone() const =0
RooMinimizer is a wrapper class around ROOT::Fit:Fitter that provides a seamless interface between th...
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...