17#ifdef ROOFIT_MULTIPROCESS
22namespace TestStatistics {
43 std::shared_ptr<WrapperCalculationCleanFlags> calculation_is_clean,
46 : likelihood_(std::move(likelihood)),
47 minimizer_(minimizer),
48 calculation_is_clean_(std::move(calculation_is_clean)),
49 shared_offset_(std::move(
offset))
56 const std::vector<ROOT::Fit::ParameterSettings> ¶meter_settings)
69std::unique_ptr<LikelihoodGradientWrapper>
71 std::shared_ptr<WrapperCalculationCleanFlags> calculationIsClean, std::size_t nDim,
74 switch (likelihoodGradientMode) {
76#ifdef ROOFIT_MULTIPROCESS
77 return std::make_unique<LikelihoodGradientJob>(std::move(likelihood), std::move(calculationIsClean), nDim,
78 minimizer, std::move(
offset));
81 (void)calculationIsClean;
85 throw std::runtime_error(
"MinuitFcnGrad ctor with LikelihoodGradientMode::multiprocess is not available in this "
86 "build without RooFit::Multiprocess!");
91 throw std::logic_error(
"In MinuitFcnGrad constructor: likelihoodGradientMode has an unsupported value!");
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
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...
RooMinimizer * minimizer_
LikelihoodGradientWrapper(std::shared_ptr< RooAbsL > likelihood, std::shared_ptr< WrapperCalculationCleanFlags > calculation_is_clean, std::size_t N_dim, RooMinimizer *minimizer, SharedOffset offset)
virtual void synchronizeParameterSettings(const std::vector< ROOT::Fit::ParameterSettings > ¶meter_settings)
static std::unique_ptr< LikelihoodGradientWrapper > create(LikelihoodGradientMode likelihoodGradientMode, std::shared_ptr< RooAbsL > likelihood, std::shared_ptr< WrapperCalculationCleanFlags > calculationIsClean, std::size_t nDim, RooMinimizer *minimizer, SharedOffset offset)
Factory method.
virtual void updateMinuitExternalParameterValues(const std::vector< double > &minuit_external_x)
Wrapper class around ROOT::Fit:Fitter that provides a seamless interface between the minimizer functi...
ROOT::Math::IMultiGenFunction * getMultiGenFcn() const
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...