16#include "RConfigure.h"
30#ifndef MATH_NO_PLUGIN_MANAGER
60#ifndef MATH_NO_PLUGIN_MANAGER
68 const char * minim = minimizerType.c_str();
69 const char * algo = algoType.c_str();
73 if (minimizerType ==
"Fumili2" ) {
79 if (minimizerType ==
"TMinuit") {
91 if ((
h =
gROOT->GetPluginManager()->FindHandler(
"ROOT::Math::Minimizer",minim ))) {
92 if (
h->LoadPlugin() == -1) {
94 std::cout <<
"Error Loading ROOT::Math::Minimizer " << minim << std::endl;
103 std::cout <<
"Loaded Minimizer " << minimizerType <<
" " << algoType << std::endl;
105 std::cout <<
"Error creating Minimizer " << minimizerType <<
" " << algoType << std::endl;
127 std::string algo = algoType;
131 if (minimizerType ==
"Minuit2")
133 if (minimizerType ==
"Fumili2")
139 if (minimizerType ==
"Minuit" || minimizerType ==
"TMinuit")
143#ifdef R__HAS_MATHMORE
145 if (minimizerType ==
"GSL")
148 else if (minimizerType ==
"GSL_NLS")
151 else if (minimizerType ==
"GSL_SIMAN")
168#ifdef MATH_NO_PLUGIN_MANAGER
169 MATH_ERROR_MSG(
"Factory::CreateDistSampler",
"ROOT plug-in manager not available");
173 const char * typeName =
type.c_str();
179 assert(pm !=
nullptr);
182 if (
h->LoadPlugin() == -1) {
183 MATH_ERROR_MSG(
"Factory::CreateDistSampler",
"Error loading DistSampler plug-in");
188 assert(smp !=
nullptr);
191 MATH_ERROR_MSGVAL(
"Factory::CreateDistSampler",
"Error finding DistSampler plug-in",typeName);
#define MATH_ERROR_MSGVAL(loc, txt, x)
#define MATH_ERROR_MSG(loc, str)
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 Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
R__EXTERN TVirtualMutex * gROOTMutex
#define R__LOCKGUARD(mutex)
static const std::string & DefaultSampler()
Interface class for generic sampling of a distribution, i.e.
static ROOT::Math::Minimizer * CreateMinimizer(const std::string &minimizerType="", const std::string &algoType="")
static method to create the corresponding Minimizer given the string Supported Minimizers types are: ...
static ROOT::Math::DistSampler * CreateDistSampler(const std::string &samplerType="")
static method to create the distribution sampler class given a string specifying the type Supported s...
GSLNLSMinimizer class for Non Linear Least Square fitting It Uses the Levemberg-Marquardt algorithm f...
GSLSimAnMinimizer class for minimization using simulated annealing using the algorithm from GSL.
static const std::string & DefaultMinimizerType()
Abstract Minimizer class, defining the interface for the various minimizer (like Minuit2,...
Minuit2Minimizer class implementing the ROOT::Math::Minimizer interface for Minuit2 minimization algo...
TMinuitMinimizer class: ROOT::Math::Minimizer implementation based on TMinuit.
This class implements a plugin library manager.
TPluginHandler * FindHandler(const char *base, const char *uri=nullptr)
Returns the handler if there exists a handler for the specified URI.