25 typedef std::map<std::string, ROOT::Math::GenAlgoOptions >
OptionsMap;
27 namespace GenAlgoOptUtil {
38 std::transform(algoname.begin(), algoname.end(), algoname.begin(), (int(*)(int)) toupper );
40 OptionsMap::iterator pos = gOpts.find(algoname);
41 if (pos != gOpts.end() ) {
42 return &(pos->second);
50 std::string algoname(algo);
57 std::string algoname(algo);
64 opt = &((ret.first)->
second);
71 for ( OptionsMap::const_iterator pos = gOpts.begin();
72 pos != gOpts.end(); ++pos) {
73 os <<
"Default specific options for algorithm " << pos->first <<
" : " << std::endl;
74 (pos->second).
Print(os);
std::map< std::string, ROOT::Math::GenAlgoOptions > OptionsMap
Namespace for new ROOT classes and functions.
static OptionsMap gAlgoOptions
static void PrintAllDefault(std::ostream &os=std::cout)
print all the default options
static constexpr double second
IOptions * DoFindDefault(std::string &algoname, OptionsMap &gOpts)
class implementing generic options for a numerical algorithm Just store the options in a map of strin...
void Print(std::ostream &os, const OptionType &opt)
Namespace for new Math classes and functions.
static IOptions & Default(const char *algoname)
Generic interface for defining configuration options of a numerical algorithm.
static IOptions * FindDefault(const char *algoname)