Gambit::Options Class Reference A small wrapper object for 'options' nodes. More...
Detailed DescriptionA small wrapper object for 'options' nodes. These can be extracted from the prior, observable/likelihood and rules sections of the inifile, or set by hand in module standalone mode. Definition at line 50 of file yaml_options.hpp. Constructor & Destructor Documentation◆ Options() [1/3]
Default constructor. Definition at line 56 of file yaml_options.hpp. Referenced by getOptions().
Here is the caller graph for this function:
![]() ◆ Options() [2/3]
◆ Options() [3/3]
Move constructor. Definition at line 62 of file yaml_options.hpp. References find_all_gambit_bits::args. Member Function Documentation◆ begin()
Return begin and end of options. Definition at line 239 of file yaml_options.hpp. References options. ◆ end()
Definition at line 240 of file yaml_options.hpp. References options. Referenced by getNames().
Here is the caller graph for this function:
![]() ◆ getNames() [1/2]
template<typename... args>
Retrieve values from key-value pairs in options node. Works for an arbitrary set of input keys (of any type), and returns all values as strings. Definition at line 165 of file yaml_options.hpp. References end(), Gambit::getVariadicNode(), and options. Referenced by Gambit::ColliderBit::checkOptions_getYAMLCrossSection(), Gambit::Priors::CompositePrior::CompositePrior(), and Gambit::SpecBit::run_FS_spectrum_generator(). const YAML::Node getVariadicNode(const YAML::Node &node) Definition: yaml_variadic_functions.hpp:43
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ getNames() [2/2]
Retrieve values from all key-value pairs in options node. Returns all keys as strings. Definition at line 183 of file yaml_options.hpp. References find_all_gambit_bits::args, end(), and options.
Here is the call graph for this function:
![]() ◆ getNode()
template<typename... args>
Retrieve raw YAML node. Definition at line 212 of file yaml_options.hpp. References find_all_gambit_bits::args, Gambit::getVariadicNode(), LOCAL_INFO, options, Gambit::stringifyVariadic(), and Gambit::utils_error(). Referenced by Gambit::Priors::CompositePrior::CompositePrior(), Gambit::Priors::FixedPrior::FixedPrior(), getVector(), Gambit::Scanner::Scan_Manager::Run(), and Gambit::Scanner::Scan_Manager::Scan_Manager(). 218 os << "No options entry for [" << stringifyVariadic(keys...) << "]\n Node contents: " << options;
const std::string stringifyVariadic() Definition: variadic_functions.hpp:316 const YAML::Node getVariadicNode(const YAML::Node &node) Definition: yaml_variadic_functions.hpp:43
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ getOptions()
template<typename... args>
Recursive options retrieval. Definition at line 197 of file yaml_options.hpp. References find_all_gambit_bits::args, Gambit::getVariadicNode(), Options(), and options. Referenced by Gambit::Priors::CompositePrior::CompositePrior(). const YAML::Node getVariadicNode(const YAML::Node &node) Definition: yaml_variadic_functions.hpp:43
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ getValue()
template<typename TYPE , typename... args>
Definition at line 73 of file yaml_options.hpp. References find_all_gambit_bits::args, Gambit::getVariadicNode(), LOCAL_INFO, options, Gambit::stringifyVariadic(), and Gambit::utils_error(). Referenced by Gambit::Priors::Cauchy::Cauchy(), Gambit::Printers::asciiPrinter::common_constructor(), Gambit::Printers::HDF5Printer::common_constructor(), Gambit::Priors::CompositePrior::CompositePrior(), Gambit::Priors::DoubleLogFlatJoin::DoubleLogFlatJoin(), Gambit::Priors::FixedPrior::FixedPrior(), Gambit::Priors::Gaussian::Gaussian(), Gambit::Printers::HDF5Printer2::get_filename(), Gambit::Priors::DoubleLogFlatJoin::get_option(), Gambit::ColliderBit::getAndReplaceSLHAContent(), Gambit::ColliderBit::getPy8Collider(), Gambit::Printers::HDF5Printer2::HDF5Printer2(), Gambit::Scanner::Plugins::pluginInfo::iniFile(), Gambit::Priors::LogNormal::LogNormal(), main(), Gambit::Priors::MultiPriors::MultiPriors(), Gambit::Printers::PrinterManager::new_stream(), Gambit::Printers::nonePrinter::nonePrinter(), Gambit::functor::notifyOfSubCaps(), Gambit::ColliderBit::operateLHCLoop(), Gambit::Priors::Plugin::Plugin(), Gambit::Priors::RangePrior1D< T >::RangePrior1D(), Gambit::SpecBit::run_FS_spectrum_generator(), Gambit::Scanner::Scan_Manager::Scan_Manager(), Gambit::Printers::SQLitePrinter::SQLitePrinter(), and Gambit::Printers::SQLiteReader::SQLiteReader(). 80 os << "No options entry for [" << stringifyVariadic(keys...) << "]\n Node contents: " << options; 103 << "] as type " << typeid(TYPE).name() << " (template parameter: see below). String form of node value was: "
const std::string stringifyVariadic() Definition: variadic_functions.hpp:316 const YAML::Node getVariadicNode(const YAML::Node &node) Definition: yaml_variadic_functions.hpp:43
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ getValueOrDef()
template<typename TYPE , typename... args>
Definition at line 115 of file yaml_options.hpp. References Gambit::LogTags::def, Gambit::getVariadicNode(), and options. Referenced by Gambit::SpecBit::check_perturb_MDM(), Gambit::Printers::asciiPrinter::common_constructor(), Gambit::Printers::HDF5Printer::common_constructor(), Gambit::Printers::HDF5Printer2::get_buffer_length(), Gambit::Printers::HDF5Printer2::get_groupname(), Gambit::SpecBit::get_ScalarSingletDM_Z3_spectrum(), Gambit::Printers::HDF5Printer2::get_sync(), Gambit::Printers::HDF5Printer2::HDF5Printer2(), Gambit::SpecBit::lnL_highscale_vacuum_decay_single_field(), main(), Gambit::Printers::PrinterManager::new_reader(), Gambit::ColliderBit::operateLHCLoop(), Gambit::SpecBit::run_FS_spectrum_generator(), Gambit::SpecBit::SHD_HiggsMass(), Gambit::Printers::SQLitePrinter::SQLitePrinter(), and Gambit::SpecBit::vevacious_file_location_MSSM(). const YAML::Node getVariadicNode(const YAML::Node &node) Definition: yaml_variadic_functions.hpp:43 Definition: log_tags.hpp:46
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ getVector()
template<typename TYPE >
Get a If the entry is a scalar rather than a vector, try to convert it to a size one Definition at line 149 of file yaml_options.hpp. References find_all_gambit_bits::args, and getNode(). Referenced by Gambit::Priors::Cauchy::Cauchy(), Gambit::Priors::Gaussian::Gaussian(), and Gambit::Priors::LogNormal::LogNormal(). YAML::Node getNode(const args &... keys) const Retrieve raw YAML node. Definition: yaml_options.hpp:212
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ hasKey()
template<typename... args>
Getters for key/value pairs (which is all the options node should contain) Definition at line 67 of file yaml_options.hpp. References find_all_gambit_bits::args, Gambit::getVariadicNode(), and options. Referenced by Gambit::Priors::Cauchy::Cauchy(), Gambit::ColliderBit::checkOptions_getYAMLCrossSection(), Gambit::Printers::asciiPrinter::common_constructor(), Gambit::Printers::HDF5Printer::common_constructor(), Gambit::Priors::CompositePrior::CompositePrior(), Gambit::Priors::DoubleLogFlatJoin::DoubleLogFlatJoin(), Gambit::Priors::FixedPrior::FixedPrior(), Gambit::Priors::Gaussian::Gaussian(), Gambit::Printers::HDF5Printer2::get_filename(), Gambit::Priors::DoubleLogFlatJoin::get_option(), Gambit::ColliderBit::getPy8Collider(), Gambit::Priors::LogNormal::LogNormal(), main(), Gambit::Priors::MultiPriors::MultiPriors(), Gambit::functor::notifyOfSubCaps(), Gambit::Priors::Plugin::Plugin(), Gambit::Priors::RangePrior1D< T >::RangePrior1D(), Gambit::Scanner::Scan_Manager::Run(), Gambit::SpecBit::run_FS_spectrum_generator(), Gambit::Scanner::Scan_Manager::Scan_Manager(), and Gambit::Printers::SQLitePrinter::SQLitePrinter(). const YAML::Node getVariadicNode(const YAML::Node &node) Definition: yaml_variadic_functions.hpp:43
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ loadFromFile()
template<typename... args>
Get YAML node from file. Definition at line 226 of file yaml_options.hpp. References Gambit::getVariadicNode(), LOCAL_INFO, options, Gambit::stringifyVariadic(), and Gambit::utils_error(). 232 os << "No options entry for [" << stringifyVariadic(keys...) << "]\n Node contents: " << options;
const std::string stringifyVariadic() Definition: variadic_functions.hpp:316 const YAML::Node getVariadicNode(const YAML::Node &node) Definition: yaml_variadic_functions.hpp:43
Here is the call graph for this function:
![]() ◆ setValue()
template<typename KEYTYPE , typename VALTYPE >
Basic setter, for adding extra options. Definition at line 135 of file yaml_options.hpp. References options. Referenced by Gambit::Printers::PrinterManager::new_stream(), Gambit::functor::notifyOfSubCaps(), Gambit::Printers::PrinterManager::PrinterManager(), Gambit::Printers::SQLitePrinter::resume_reader_options(), Gambit::Printers::HDF5Printer::resume_reader_options(), Gambit::Printers::HDF5Printer2::resume_reader_options(), and scanner_plugin().
Here is the caller graph for this function:
![]() Member Data Documentation◆ options
Definition at line 244 of file yaml_options.hpp. Referenced by begin(), end(), getNames(), getNode(), getOptions(), getValue(), getValueOrDef(), hasKey(), loadFromFile(), and setValue(). The documentation for this class was generated from the following file:
|