Bayeux  3.4.1
Core Foundation library for SuperNEMO
Public Types | Public Member Functions | Protected Member Functions | List of all members
genbb::nuclear_decay_manager Class Reference

A nuclear decay manager. More...

#include <bayeux/genbb_help/nuclear_decay_manager.h>

Inheritance diagram for genbb::nuclear_decay_manager:
datatools::i_tree_dumpable

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_typeget_levels () const
 Return levels. More...
 
const decay_dict_typeget_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_)
 

Detailed Description

A nuclear decay manager.

Member Typedef Documentation

◆ decay_dict_type

Dictionary of nuclear decays.

◆ level_dict_type

Dictionary of nuclear levels.

Constructor & Destructor Documentation

◆ nuclear_decay_manager()

genbb::nuclear_decay_manager::nuclear_decay_manager ( )

Default constructor.

◆ ~nuclear_decay_manager()

virtual genbb::nuclear_decay_manager::~nuclear_decay_manager ( )
virtual

Destructor.

Member Function Documentation

◆ _install_decay_tables()

void genbb::nuclear_decay_manager::_install_decay_tables ( )
protected

Install decay tables associated to nuclear levels.

◆ get_decays()

const decay_dict_type& genbb::nuclear_decay_manager::get_decays ( ) const

Return decays.

◆ get_levels()

const level_dict_type& genbb::nuclear_decay_manager::get_levels ( ) const

Return levels.

◆ get_logging()

datatools::logger::priority genbb::nuclear_decay_manager::get_logging ( ) const

Return the logging priority threshold.

◆ initialize()

void genbb::nuclear_decay_manager::initialize ( const datatools::properties config_)

Initialization from a list of properties.

◆ initialize_simple()

void genbb::nuclear_decay_manager::initialize_simple ( )

Initialization.

◆ is_initialized()

bool genbb::nuclear_decay_manager::is_initialized ( ) const

Check initialization.

◆ load() [1/2]

void genbb::nuclear_decay_manager::load ( const std::string &  filename_)

Load levels and decays from a configuration file.

◆ load() [2/2]

void genbb::nuclear_decay_manager::load ( const datatools::multi_properties levels_and_decays_config_)

Load levels and decays from a list of multi properties.

◆ load_decay()

void genbb::nuclear_decay_manager::load_decay ( const std::string &  decay_name_,
const datatools::properties decay_config_ 
)

Load a nuclear decay.

◆ load_decay_table()

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.

◆ load_level()

void genbb::nuclear_decay_manager::load_level ( const std::string &  level_name_,
const datatools::properties level_config_ 
)

Load a nuclear level.

◆ reset()

void genbb::nuclear_decay_manager::reset ( )

Reset.

◆ set_logging()

void genbb::nuclear_decay_manager::set_logging ( datatools::logger::priority  )

Set the logging priority threshold.

◆ tree_dump()

virtual void genbb::nuclear_decay_manager::tree_dump ( std::ostream &  out_ = std::clog,
const std::string &  title_ = "",
const std::string &  indent_ = "",
bool  inherit_ = false 
) const
virtual

Smart print.

Reimplemented from datatools::i_tree_dumpable.


The documentation for this class was generated from the following file: