![]() |
TkN 2.1
Toolkit for Nuclei
|
Collection of levels and decay. More...
Collection of levels and decay.
For all the nuclei with known data on the ENSDF or XUNDL databases, it is possible to access to a tkn::tklevel_scheme object.
The level scheme is determined for a given dataset see tkn::tkdataset documentation.
For one dataset, the level scheme gives access to the nuclear levels and decay information. Refer to the tkn::tklevel or tkn::tkdecay documentation.
Definition at line 109 of file tklevel_scheme.h.
#include <tklevel_scheme.h>
Public Member Functions | |
tklevel_scheme (const tkstring &_nuc, int _zz, int _aa) | |
virtual | ~tklevel_scheme ()=default |
const shared_ptr< tkdataset > & | get_dataset () |
returns the current dataset More... | |
const std::map< int, shared_ptr< tkdataset > > | get_datasets () |
returns the list of available datasets More... | |
template<typename T > | |
const shared_ptr< T > | get_decay (const tkstring &_name, bool _exact=true) |
Template method to get the decay of type T (ex: tkgammadecay) corresponding to the given name. More... | |
template<typename T > | |
const shared_ptr< T > | get_decay (double _energy) |
Template method to get the decay of type T (ex: tkgammadecay) corresponding to the closest energy. More... | |
const std::vector< shared_ptr< tkdecay > > & | get_decays () |
get the vector containing all the decays More... | |
template<typename T > | |
const std::vector< shared_ptr< T > > | get_decays () |
Template method to get the vector containing all the decays of type T (ex: tkgammadecay) More... | |
template<typename T > | |
const std::vector< shared_ptr< T > > | get_decays (const std::function< bool(shared_ptr< T >)> &_selection) |
Template method to get the vector containing all the decays of type T (ex: tkgammadecay) filtered by the selection fonction. More... | |
std::vector< shared_ptr< tkdecay > > | get_decays (std::function< bool(shared_ptr< tkdecay >)>const &_selection) |
get the vector containing decays filtered by the selection fonction More... | |
shared_ptr< tklevel > | get_level (const tkstring &_name, bool _exact=true) |
get the level corresponding to the given name More... | |
shared_ptr< tklevel > | get_level (double _energy, tkstring _offset="") |
get the level corresponding to the given energy More... | |
const std::vector< shared_ptr< tklevel > > & | get_levels () |
get the vector containing all the levels More... | |
std::vector< shared_ptr< tklevel > > | get_levels (std::function< bool(shared_ptr< tklevel >)>const &_selection) |
get the vector containing all the levels filtered by the selection fonction More... | |
void | print (const tkstring &_data="", const tkstring &_option="") |
print the level scheme information More... | |
bool | select_dataset (const tkstring &_dataset_name) |
select a dataset using its name More... | |
bool | select_dataset (int _dataset_id=0) |
select a dataset using its id More... | |
tklevel_scheme | ( | const tkstring & | _nuc, |
int | _zz, | ||
int | _aa | ||
) |
Definition at line 70 of file tklevel_scheme.cpp.
|
virtualdefault |
|
inline |
returns the current dataset
Definition at line 133 of file tklevel_scheme.h.
|
inline |
returns the list of available datasets
Definition at line 135 of file tklevel_scheme.h.
|
inline |
Template method to get the decay of type T (ex: tkgammadecay) corresponding to the given name.
_name | string expression of the required level (spin + parity (level from) -> spin + parity (level to)) |
_exact | if set to true, temptative spin assignments will be ignored |
Example:
Definition at line 203 of file tklevel_scheme.h.
|
inline |
Template method to get the decay of type T (ex: tkgammadecay) corresponding to the closest energy.
_energy | approximative decay energy |
Example:
Definition at line 229 of file tklevel_scheme.h.
|
inline |
get the vector containing all the decays
Definition at line 143 of file tklevel_scheme.h.
|
inline |
Template method to get the vector containing all the decays of type T (ex: tkgammadecay)
Example:
Definition at line 154 of file tklevel_scheme.h.
|
inline |
Template method to get the vector containing all the decays of type T (ex: tkgammadecay) filtered by the selection fonction.
Example:
Definition at line 179 of file tklevel_scheme.h.
std::vector< shared_ptr< tkdecay > > get_decays | ( | std::function< bool(shared_ptr< tkdecay >)>const & | _selection | ) |
get the vector containing decays filtered by the selection fonction
_selection | lambda function to filter the list of decays to be returned |
Example:
Definition at line 114 of file tklevel_scheme.cpp.
get the level corresponding to the given name
_name | string expression of the required level (spin + parity) |
_exact | if set to true, temptative spin assignments will be ignored |
Example:
Definition at line 213 of file tklevel_scheme.cpp.
get the level corresponding to the given energy
get the level corresponding to the closest energy
_energy | energy value of the desired level |
_offset | if the level is supposed to be part of a band with unkown bandhead energy, offset of the band (ex: X) |
if offset is set to *, all offset values will be considered. if offset contains "dec", only levels that have known decays will be considered
Definition at line 263 of file tklevel_scheme.cpp.
|
inline |
get the vector containing all the levels
Definition at line 138 of file tklevel_scheme.h.
std::vector< shared_ptr< tklevel > > get_levels | ( | std::function< bool(shared_ptr< tklevel >)>const & | _selection | ) |
get the vector containing all the levels filtered by the selection fonction
_selection | lambda function to filter the list of levels to be returned |
Example:
Definition at line 93 of file tklevel_scheme.cpp.
print the level scheme information
_data | data type to be printed (dataset, level, decay, level-decay, *) |
_option | print option relative to the data type to be printed (see the dedicated print methods in tkn::tklevel::print and tkn::tkdecay::print) |
Details for each _data type:
dataset | list the available datasets for the current nucleus |
level | list the levels by increasing energy order |
decay | list the decays sorted by the emmiting level energy |
level-decay | list the levels by increasing energy order, and its associated decays |
* | list the level and decays for all datasets |
Available _option values:
tab | print data as sorted in a tabular view |
yrast | only confirmed yrast levels will be printed |
yrastt | only confirmed and tentative yrast levels will be printed |
com | print comments |
Definition at line 143 of file tklevel_scheme.cpp.
bool select_dataset | ( | const tkstring & | _dataset_name | ) |
select a dataset using its name
_dataset_name | name of the dataset to be selected |
to list the available datasets, use tkn::tklevel_scheme::print("dataset")
Definition at line 173 of file tklevel_scheme.cpp.
bool select_dataset | ( | int | _dataset_id = 0 | ) |
select a dataset using its id
_dataset_id | id of the dataset to be selected |
to list the available datasets, use tkn::tklevel_scheme::print("dataset")
Definition at line 188 of file tklevel_scheme.cpp.