37#include "tkensdf_level_rec.h"
39#include "tkproperty.h"
53tkensdf_level_rec::tkensdf_level_rec()
67 fUncertain_record = frecord.substr(79,1);
81 auto tokens = fcontinuation_record.tokenize(
"$");
82 for(
auto &token: tokens) {
84 if(token.begins_with(
"FLAG"))
continue;
85 if(token.begins_with(
"XREF"))
continue;
86 if(token.begins_with(
"BE") || token.begins_with(
"BM")) {
89 else if (token.begins_with(
"B")) {
92 else if(token.begins_with(
"CONF")) {
113 glog <<
info_o <<
"level: E=" << fenergy.value <<
"(" << fenergy.err <<
")" <<
" : JPi=" <<
fJPi_str <<
do_endl;
void print(std::ostream &) const override
void analyse_continuation_record() override
analyse a continuation record
tkstring get_jpi_str(const tkstring &_record) const
extract the JPi part
virtual void analyse_record() override
analyse the record content
virtual bool set_record(const tkstring &_record) override
define the record from a string
bool decode_jpi(const tkstring &_st)
decode the spin parity part
tkspin fSpin
spin parameters
bool decode_lifetime(const tkstring &_st, const tkstring &_st_ms)
decode a lifetime record
bool decode_energy(const tkstring &_st)
decode an anergy record
tkstring get_lifetime_metastable_str(const tkstring &_record) const
extract the lifetime part
tkstring get_energy_str(const tkstring &_record) const
extract the energy part
tkstring get_lifetime_str(const tkstring &_record) const
extract the lifetime part
virtual void clear()
to clear the content
virtual bool is_parity(tkparity::eparity _parity)
test the parity value
virtual void set(const tkstring &_st)
define the parity from a string
data_info get_info()
to get information about this data
double get_value()
To get the spin as a double.
void set(int n, int d=1)
define the spin value
virtual void clear()
to clear the content
std::string with usefull tricks from TString (ROOT) and KVString (KaliVeda) and more....
tkstring substr(size_type __pos=0, size_type __n=npos) const
Inlines.
bool is_alpha() const
Checks whether tkstring is only composed of alphabetic letters.
tkstring & remove_all_extra_white_space()
bool contains(const char *_pat, ECaseCompare _cmp=kExact) const
tkstring & replace_all(const tkstring &_s1, const tkstring &_s2)
tklog & info_o(tklog &log)
tklog & do_endl(tklog &log)