Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
A nuclear decay manager. More...
#include <bayeux/genbb_help/nuclear_decay_manager.h>
Public Types | |
typedef std::map< std::string, datatools::handle< nuclear_level > > | level_dict_type |
Dictionary of nuclear levels. More... | |
typedef std::map< std::string, datatools::handle< nuclear_decay > > | decay_dict_type |
Dictionary of nuclear decays. More... | |
Public Types inherited from datatools::i_tree_dumpable | |
enum | ostream_type { OSTREAM_COUT = 1, OSTREAM_CERR = 2, OSTREAM_CLOG = 3 } |
Enumeration for standard output streams. More... | |
Public Member Functions | |
datatools::logger::priority | get_logging () const |
Return the logging priority threshold. More... | |
void | set_logging (datatools::logger::priority) |
Set the logging priority threshold. More... | |
nuclear_decay_manager () | |
Default constructor. More... | |
virtual | ~nuclear_decay_manager () |
Destructor. More... | |
void | load_level (const std::string &level_name_, const datatools::properties &level_config_) |
Load a nuclear level. More... | |
void | load_decay (const std::string &decay_name_, const datatools::properties &decay_config_) |
Load a nuclear decay. More... | |
void | load_decay_table (const std::string &level_name_, const datatools::properties &decay_table_config_) |
Load a decay table for an existing level. More... | |
void | load (const std::string &filename_) |
Load levels and decays from a configuration file. More... | |
void | load (const datatools::multi_properties &levels_and_decays_config_) |
Load levels and decays from a list of multi properties. More... | |
bool | is_initialized () const |
Check initialization. More... | |
void | initialize (const datatools::properties &config_) |
Initialization from a list of properties. More... | |
void | initialize_simple () |
Initialization. More... | |
void | reset () |
Reset. More... | |
const level_dict_type & | get_levels () const |
Return levels. More... | |
const decay_dict_type & | get_decays () const |
Return decays. More... | |
virtual void | tree_dump (std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const |
Smart print. More... | |
Public Member Functions inherited from datatools::i_tree_dumpable | |
i_tree_dumpable () | |
Constructor. More... | |
virtual | ~i_tree_dumpable () |
Destructor. More... | |
virtual void | print_tree (std::ostream &out_=std::clog, const boost::property_tree::ptree &options_=empty_options()) const |
Main new interface method for printing. More... | |
void | print_tree_json (std::ostream &out_=std::clog, const std::string &json_options_="") const |
Printing with jsonized options. More... | |
void | print_tree_json (std::ostream &out_=std::clog, const char *json_options_=nullptr) const |
Printing with jsonized options. More... | |
void | tree_dump_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="", const std::string &indent_="", const bool inherit_=false) const |
void | tree_print_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="") const |
void | smart_print_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="", const std::string &indent_="") const |
Protected Member Functions | |
void | _install_decay_tables () |
Install decay tables associated to nuclear levels. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from datatools::i_tree_dumpable | |
static const boost::property_tree::ptree & | empty_options () |
static boost::property_tree::ptree | make_base_print_options (const std::string &title_, const std::string &indent_="", const bool inherit_=false) |
static std::ostream & | last_skip_tag (std::ostream &out_) |
static std::ostream & | skip_tag (std::ostream &out_) |
static std::ostream & | last_tag (std::ostream &out_) |
static std::ostream & | tag (std::ostream &out_) |
A nuclear decay manager.
typedef std::map<std::string, datatools::handle<nuclear_decay> > genbb::nuclear_decay_manager::decay_dict_type |
Dictionary of nuclear decays.
typedef std::map<std::string, datatools::handle<nuclear_level> > genbb::nuclear_decay_manager::level_dict_type |
Dictionary of nuclear levels.
genbb::nuclear_decay_manager::nuclear_decay_manager | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
protected |
Install decay tables associated to nuclear levels.
const decay_dict_type& genbb::nuclear_decay_manager::get_decays | ( | ) | const |
Return decays.
const level_dict_type& genbb::nuclear_decay_manager::get_levels | ( | ) | const |
Return levels.
datatools::logger::priority genbb::nuclear_decay_manager::get_logging | ( | ) | const |
Return the logging priority threshold.
void genbb::nuclear_decay_manager::initialize | ( | const datatools::properties & | config_ | ) |
Initialization from a list of properties.
void genbb::nuclear_decay_manager::initialize_simple | ( | ) |
Initialization.
bool genbb::nuclear_decay_manager::is_initialized | ( | ) | const |
Check initialization.
void genbb::nuclear_decay_manager::load | ( | const std::string & | filename_ | ) |
Load levels and decays from a configuration file.
void genbb::nuclear_decay_manager::load | ( | const datatools::multi_properties & | levels_and_decays_config_ | ) |
Load levels and decays from a list of multi properties.
void genbb::nuclear_decay_manager::load_decay | ( | const std::string & | decay_name_, |
const datatools::properties & | decay_config_ | ||
) |
Load a nuclear decay.
void genbb::nuclear_decay_manager::load_decay_table | ( | const std::string & | level_name_, |
const datatools::properties & | decay_table_config_ | ||
) |
Load a decay table for an existing level.
void genbb::nuclear_decay_manager::load_level | ( | const std::string & | level_name_, |
const datatools::properties & | level_config_ | ||
) |
Load a nuclear level.
void genbb::nuclear_decay_manager::reset | ( | ) |
Reset.
void genbb::nuclear_decay_manager::set_logging | ( | datatools::logger::priority | ) |
Set the logging priority threshold.
|
virtual |
Smart print.
Reimplemented from datatools::i_tree_dumpable.