![]() |
TkN 2.5
Toolkit for Nuclei
|
Represents a dataset of nuclear levels and decays for a given nucleus. More...
Represents a dataset of nuclear levels and decays for a given nucleus.
Stores information on a specific dataset.
A tkdataset corresponds to a single ENSDF or XUNDL dataset entry. It holds the list of levels and gamma decays loaded from the database for that dataset. It is accessed via tklevel_scheme::get_dataset() or by iterating over tklevel_scheme::get_datasets().
The database used for the levels and decays is extracted from the ENSDF database.
For a given nucleus, the database is composed of different validated datasets, corresponding to different ways to produce the nucleus. A global dataset named : "ADOPTED LEVELS, GAMMAS" is used to merge all the different datasets in one. This is the default dataset of any nucleus in TkN.
TkN allows to load the different datasets. For a given nucleus, the datasets and their associated ID can be listed using:
The datasets are displayed in two sections: evaluated ENSDF datasets and non-evaluated XUNDL datasets. The publication date of each dataset (in YYYY-MM format) is shown in brackets when available, e.g. [2024-01].
To display dataset comments alongside the list, pass the "com" option:
The dataset can be selected as follows (using the Coulomb Excitation dataset ids):
The current dataset object can be retrieved and inspected programmatically:
To iterate over all available datasets:
Here are the main methods available on a tkdataset:
| method name | description |
|---|---|
| get_id() | returns the dataset integer ID |
| get_name() | returns the dataset name as a string |
| get_comment() | returns the dataset comment string (can be empty) |
| has_comment() | returns true if a comment is available |
| get_date() | returns the publication date in YYYY-MM format (can be empty) |
| has_date() | returns true if a publication date is available |
| get_source() | returns the source string: "ENSDF" or "XUNDL" |
| is_xundl() | returns true if the dataset comes from XUNDL |
\class tklevel_scheme \brief Collection of levels and decay \details
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 43 of file tklevel_scheme.h.
#include <tklevel_scheme.h>
Public Member Functions | |
| tkdataset ()=default | |
| tkdataset (const tkstring &_nuc, int _zz, int _aa, const tkstring &_name, int _id) | |
| virtual | ~tkdataset ()=default |
| shared_ptr< tkgammadecay > | add_gamma_decay (shared_ptr< tklevel > _lvlfrom, shared_ptr< tklevel > _lvlto, double _ener=0., double _unc=0.) |
| add a new decay between two levels to the dataset | |
| shared_ptr< tklevel > | add_level (double _ener, double _unc, tkstring _unit, tkstring _jpistr) |
| manually add a new level to the dataset | |
| const tkstring & | get_comment () const |
| returns the dataset comment | |
| const tkstring & | get_date () const |
| returns the dataset date (YYYY-MM format) | |
| int | get_id () const |
| returns the dataset ID | |
| const tkstring & | get_name () const |
| returns the dataset name | |
| const tkstring & | get_nucleus_name () const |
| returns the nucleus name associated to this dataset | |
| const tkstring & | get_source () const |
| returns the dataset source ("ENSDF" or "XUNDL") | |
| bool | has_comment () const |
| returns true if the dataset has a comment | |
| bool | has_date () const |
| returns true if the dataset has a date | |
| bool | is_xundl () const |
| returns true if the dataset comes from XUNDL | |
Friends | |
| class | tklevel |
| class | tklevel_scheme |
Definition at line 68 of file tklevel_scheme.h.
|
default |
|
virtualdefault |
| shared_ptr< tkgammadecay > add_gamma_decay | ( | shared_ptr< tklevel > | _lvlfrom, |
| shared_ptr< tklevel > | _lvlto, | ||
| double | _ener = 0., | ||
| double | _unc = 0. ) |
add a new decay between two levels to the dataset
Manually adds a gamma decay between two levels.
| _lvlfrom | parent level (decaying level) |
| _lvlto | daughter level (populated level) |
| _ener | gamma energy in keV (default 0: computed as the energy difference between the two levels) |
| _unc | uncertainty on the gamma energy in keV |
Example:
Definition at line 711 of file tklevel_scheme.cpp.
manually add a new level to the dataset
Manually adds a new level to the dataset.
| _ener | energy of the level |
| _unc | uncertainty on the energy |
| _unit | unit of the energy (e.g. "keV") |
| _jpistr | spin-parity string (e.g. "2+") |
This method allows building a custom dataset programmatically, for example to compute transition probabilities for artificially constructed level schemes. The new level is inserted in the level list sorted by increasing energy and yrast status is updated accordingly.
Definition at line 661 of file tklevel_scheme.cpp.
|
inline |
returns the dataset comment
Definition at line 79 of file tklevel_scheme.h.
|
inline |
returns the dataset date (YYYY-MM format)
Definition at line 83 of file tklevel_scheme.h.
|
inline |
returns the dataset ID
Definition at line 73 of file tklevel_scheme.h.
|
inline |
returns the dataset name
Definition at line 75 of file tklevel_scheme.h.
|
inline |
returns the nucleus name associated to this dataset
Definition at line 77 of file tklevel_scheme.h.
|
inline |
returns the dataset source ("ENSDF" or "XUNDL")
Definition at line 87 of file tklevel_scheme.h.
|
inline |
returns true if the dataset has a comment
Definition at line 81 of file tklevel_scheme.h.
|
inline |
returns true if the dataset has a date
Definition at line 85 of file tklevel_scheme.h.
|
inline |
returns true if the dataset comes from XUNDL
Definition at line 89 of file tklevel_scheme.h.
|
friend |
Definition at line 45 of file tklevel_scheme.h.
|
friend |
Definition at line 46 of file tklevel_scheme.h.