Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
Factory.h
Go to the documentation of this file.
1// @(#)root/mathcore:$Id$
2// Author: L. Moneta Fri Dec 22 14:43:33 2006
3
4/**********************************************************************
5 * *
6 * Copyright (c) 2006 LCG ROOT Math Team, CERN/PH-SFT *
7 * *
8 * *
9 **********************************************************************/
10
11// Header file for class Factory
12
13#ifndef ROOT_Math_Factory
14#define ROOT_Math_Factory
15
16#include <string>
17
18
19namespace ROOT {
20
21 namespace Math {
22
23 class Minimizer;
24 class DistSampler;
25
26//___________________________________________________________________________
27/**
28 Factory class holding static functions to create the interfaces like ROOT::Math::Minimizer
29 via the Plugin Manager
30*/
31class Factory {
32 public:
33
34 /**
35 static method to create the corresponding Minimizer given the string
36 Supported Minimizers types are:
37 Minuit (TMinuit), Minuit2, GSLMultiMin, GSLMultiFit, GSLSimAn, Linear, Fumili, Genetic
38 If no name is given use default values defined in ROOT::Math::MinimizerOptions
39 See also there for the possible options and algorithms available
40 */
41 static ROOT::Math::Minimizer * CreateMinimizer(const std::string & minimizerType = "", const std::string & algoType = "");
42
43 /**
44 static method to create the distribution sampler class given a string specifying the type
45 Supported sampler types are:
46 Unuran, Foam
47 If no name is given use default values defined in DistSamplerOptions
48 */
49 static ROOT::Math::DistSampler * CreateDistSampler(const std::string & samplerType ="");
50
51
52};
53
54 } // end namespace Fit
55
56} // end namespace ROOT
57
58
59#endif /* ROOT_Fit_MinimizerFactory */
Interface class for generic sampling of a distribution, i.e.
Definition DistSampler.h:57
Factory class holding static functions to create the interfaces like ROOT::Math::Minimizer via the Pl...
Definition Factory.h:31
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: ...
Definition Factory.cxx:63
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...
Definition Factory.cxx:167
Abstract Minimizer class, defining the interface for the various minimizer (like Minuit2,...
Definition Minimizer.h:78
RooCmdArg Minimizer(const char *type, const char *alg=nullptr)
Namespace for new Math classes and functions.
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.