![]() |
TkN 2.6
Toolkit for Nuclei
|
Represents a nuclear decay transition between two levels. More...
#include <physics/tkdecay.h>
Public Types | |
| enum | decay_type { kundef , kbeta , kec , kalpha , kparticle , kgamma } |
Public Member Functions | |
| tkdecay (int _id, int _from_id, int _to_id, const tkdb_table::measure_data_struct &_struc, decay_type _type) | |
| virtual | ~tkdecay () override=default |
| const tkstring & | get_comment () const |
| get the level comment string | |
| decay_type | get_decay_type () |
| get the decay type | |
| double | get_energy (const tkunit_manager::units_keys _unit=tkunit_manager::units_keys::keV) |
| returns the energy in keV by default | |
| shared_ptr< tkmeasure > | get_energy_meas () const |
| returns the energy tkmeasure object | |
| shared_ptr< tklevel > | get_level_from () |
| get the parent level | |
| shared_ptr< tklevel > | get_level_to () |
| get the daughter level | |
| bool | has_comment () const |
| check if a comment exists | |
| bool | is_uncertain () const |
| check if the decay is uncertain | |
| void | print (const tkstring &_option="") const |
| print the decay properties | |
Public Member Functions inherited from tkproperty_list | |
| tkproperty_list (tkstring _name) | |
| virtual | ~tkproperty_list ()=default |
| shared_ptr< tkmeasure > | get (const tkstring &_property) const |
| get the property as tkmeasure | |
| vector< shared_ptr< tkmeasure > > | get_data_properties (const tkstring &_opt="*") |
| get a vector of data properties according to a regular expression | |
| const auto & | get_properties () const |
| get the properties map | |
| tkstring | get_property (const tkstring &_property) const |
| get the property value as a string | |
| tkstring | get_property_type (const tkstring &_property) const |
| get the property type as a string | |
| tkstring | get_property_unit (const tkstring &_property) const |
| get the property unnit as a string | |
| bool | has_property (const tkstring &_property) const |
| to check if the property is available | |
| void | list_data_properties (const tkstring &_opt="*") const |
| list the available tkmeasure properties | |
| void | list_properties (const tkstring &_opt="*") const |
| list the available properties | |
Static Public Attributes | |
| static array< tkstring, 6 > | decay_type_str = {"undefined", "beta", "ec", "alpha", "particle", "gamma"} |
Friends | |
| class | tkdataset |
| class | tklevel_scheme |
Represents a nuclear decay transition between two levels.
Stores information on a nuclear decay.
tkdecay is the base class for decay transitions stored in the TkN database. It holds the transition energy, decay type, parent and daughter levels, and optional comment and uncertainty flags.
Currently only gamma decays are stored in the database; they are represented by the derived class tkgammadecay.
Decays are accessed via tklevel_scheme::get_decays() or tklevel_scheme::get_decays<tkgammadecay>().
See the nuclear decays user guide.
| enum decay_type |
| tkdecay | ( | int | _id, |
| int | _from_id, | ||
| int | _to_id, | ||
| const tkdb_table::measure_data_struct & | _struc, | ||
| decay_type | _type ) |
Definition at line 42 of file tkdecay.cpp.
|
overridevirtualdefault |
|
inline |
|
inline |
| double get_energy | ( | const tkunit_manager::units_keys | _unit = tkunit_manager::units_keys::keV | ) |
returns the energy in keV by default
| _unit | unit of the returned result. keV is used by default |
This method returns the level energy in unit of _units.
Definition at line 64 of file tkdecay.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void print | ( | const tkstring & | _option = "" | ) | const |
print the decay properties
| _option | option for the print mode |
If _option contains "tab", print the level properties in a tabular view (usefull for the tklevel_scheme::print("level","tab") ) else, print the level properties with a verboser view.
If _option contains "com", the comments are printed.
If _option contains "quiet", the colored header '[ INFO ]' is not printed
Definition at line 77 of file tkdecay.cpp.
|
friend |
|
static |