93 if (
this == &opt)
return *
this;
121 os << std::setw(25) <<
"DistSampler Type" <<
" : " << std::setw(15) <<
fSamplerType << std::endl;
122 os << std::setw(25) <<
"DistSampler Algorithm" <<
" : " << std::setw(15) <<
fAlgoType << std::endl;
123 os << std::setw(25) <<
"Print Level" <<
" : " << std::setw(15) <<
fLevel << std::endl;
126 os <<
fSamplerType <<
" specific options :" << std::endl;
143 os <<
"Default DistSampler options " << std::endl;
150 os <<
"Specific default options for " <<
name << std::endl;
DistSamplerOptions & operator=(const DistSamplerOptions &opt)
assignment operators
static void SetDefaultSampler(const char *type)
void SetExtraOptions(const IOptions &opt)
set extra options (in this case pointer is cloned)
static int DefaultPrintLevel()
std::string fSamplerType
DistSampler type (Unuran, Foam, etc...)xs.
static void SetDefaultPrintLevel(int level)
int fLevel
debug print level
static void PrintDefault(const char *name, std::ostream &os=std::cout)
print all the default options for the name given
ROOT::Math::IOptions * fExtraOptions
extra options
static const std::string & DefaultSampler()
const std::string & Sampler() const
type of minimizer
std::string fAlgoType
DistSampler algorithmic specification (for Unuran only).
static void SetDefaultAlgorithmND(const char *algo)
DistSamplerOptions(int dim=0)
IOptions * ExtraOptions() const
return extra options (NULL pointer if they are not present)
static const std::string & DefaultAlgorithmND()
static const std::string & DefaultAlgorithm1D()
static void SetDefaultAlgorithm1D(const char *algo)
static ROOT::Math::IOptions & Default(const char *name)
retrieve extra options - if not existing create a IOptions
static ROOT::Math::IOptions * FindDefault(const char *name)
void CreateExtraOptions()
void Print(std::ostream &os=std::cout) const
print all the options
class implementing generic options for a numerical algorithm Just store the options in a map of strin...
static IOptions & Default(const char *algoname)
static IOptions * FindDefault(const char *algoname)
Generic interface for defining configuration options of a numerical algorithm.
virtual IOptions * Clone() const =0
virtual void Print(std::ostream &=std::cout) const
print options
static std::string gDefaultAlgorithm1D
static std::string gDefaultAlgorithmND
static std::string gDefaultSampler
static int gDefaultPrintLevel