|
Reactions
0.1.1
Handling reaction trees and decays
|
An element based on the NuBase database. More...


Public Types | |
| using | base_type = nubase_element_base |
| Base class. More... | |
| using | fields_type = nubase_element_fields |
| Fields of the element. More... | |
Public Member Functions | |
| nubase_element ()=delete | |
| nubase_element (nubase_element const &)=default | |
| nubase_element (nubase_element &&)=default | |
| nubase_element & | operator= (nubase_element const &)=default |
| template<class... Args> | |
| nubase_element (Args &&... args) | |
| Construct the element from an initializer list. More... | |
| nubase_element (base_type &&other) | |
| Construct the element from the contents. More... | |
| bool | operator== (nubase_element const &other) const |
| Compare the ID of the two particles. More... | |
| bool | operator!= (nubase_element const &other) const |
| Compare the ID of the two particles. More... | |
| template<class Field , class... Subfield> | |
| units::return_type_t< Field, Subfield... > | get () const |
| Get an element using an accessor. More... | |
| template<class Field > | |
| constexpr bool | has () const |
| Check whether the given field information is missing or not. More... | |
| std::string | latex_name () const |
| Representation of the element name as a LaTeX string. More... | |
| std::string const & | name () const |
| Name of the particle. More... | |
| int | nubase_id () const |
| NuBase ID. More... | |
| int | atomic_number () const |
| Atomic number. More... | |
| int | mass_number () const |
| Mass number. More... | |
| bool | is_ground_state () const |
| Whether the element is its own charge-conjugate. More... | |
| double | mass_excess () const |
| bool | has_mass_excess () const |
| Whether the mass and its errors are defined or not. More... | |
| double | mass_excess_error () const |
| Lower mass error. More... | |
| bool | mass_excess_from_systematics () const |
| Whether the mass excess has been calculated from systematics. More... | |
| double | half_life () const |
| Get the width of the element. More... | |
| bool | has_half_life () const |
| Whether the width and its errors are defined or not. More... | |
| double | half_life_error () const |
| Get the lower width error. More... | |
| bool | half_life_from_systematics () const |
| Whether the half-life has been calculated from systematics. More... | |
| bool | is_stable () const |
| Whether the element is its own charge-conjugate. More... | |
Static Public Attributes | |
| static const size_t | number_of_fields = std::tuple_size_v<base_type> |
| Number of data fields. More... | |
| static constexpr auto | line_size |
| Size of the line (in characters) associated to this class. More... | |
An element based on the NuBase database.
Base class.
Fields of the element.
|
delete |
|
explicitdefault |
|
explicitdefault |
|
inline |
Construct the element from an initializer list.
|
inlineexplicit |
Construct the element from the contents.
|
inline |
Atomic number.
|
inline |
Get an element using an accessor.
For fields of std::optional type, the validity of the content must be checked before calling this function using the nubase_element::has member function. Otherwise the reactions::missing_fields_error exception is thrown, if missing.
The return type is a constant reference for values without units and a value for those with units.
|
inline |
Get the width of the element.
You must check whether the width is defined or not before calling this member function, otherwise a reactions::missing_fields_error is thrown.
|
inline |
Get the lower width error.
You must check whether the width is defined or not before calling this member function, otherwise a reactions::missing_fields_error is thrown.
|
inline |
Whether the half-life has been calculated from systematics.
|
inline |
Check whether the given field information is missing or not.
|
inline |
Whether the width and its errors are defined or not.
|
inline |
Whether the mass and its errors are defined or not.
|
inline |
Whether the element is its own charge-conjugate.
|
inline |
Whether the element is its own charge-conjugate.
|
inline |
Representation of the element name as a LaTeX string.
|
inline |
Get the mass of the element
You must check whether the mass is defined or not before calling this member function, otherwise a reactions::missing_fields_error is thrown.
|
inline |
Lower mass error.
You must check whether the mass is defined or not before calling this member function, otherwise a reactions::missing_fields_error is thrown.
|
inline |
Whether the mass excess has been calculated from systematics.
|
inline |
Mass number.
|
inline |
Name of the particle.
|
inline |
NuBase ID.
|
inline |
Compare the ID of the two particles.
| other | element to compare with |
|
default |
|
inline |
Compare the ID of the two particles.
| other | element to compare with |
|
static |
Size of the line (in characters) associated to this class.
|
static |
Number of data fields.
1.8.13