TkN 2.1
Toolkit for Nuclei
tkensdf_record Class Reference

Decodding of the ENSDF records. More...

Detailed Description

Decodding of the ENSDF records.

Definition at line 74 of file tkensdf_record.h.

Inheritance diagram for tkensdf_record:
tkensdf_gamma_rec tkensdf_ident_rec tkensdf_level_rec

#include <tkensdf_record.h>

Public Types

enum  record_type {
  kident , khistory , kq_value , kxref ,
  kcomment , kparent , knorm , kprodnorm ,
  klevel , kbeta , kec , kalpha ,
  kparticle , kgamma , kreference , kend ,
  kunknown
}
 

Public Member Functions

 tkensdf_record ()
 
 ~tkensdf_record ()
 
virtual void add_comment_record (const tkstring &_comment_record, bool _is_continuation=false)
 add a continuation record from a string More...
 
virtual void add_continuation_record (const tkstring &_continuation_record)
 add a continuation record from a string More...
 
virtual void analyse_comment_record ()
 analyse the continuation record More...
 
virtual void analyse_continuation_record ()
 analyse the continuation record More...
 
virtual void analyse_record ()
 analyse the record content, to be re implemented in all daughter classes More...
 
void check_record_type ()
 check record type from its string More...
 
virtual void clear ()
 
bool decode_energy (const tkstring &_st)
 decode an anergy record More...
 
bool decode_lifetime (const tkstring &_st, const tkstring &_st_ms)
 decode a lifetime record More...
 
virtual const tkstringget_comment_record () const
 get the continuation record More...
 
virtual tkstring get_continuation_record ()
 get the continuation record More...
 
const tkdb_table::measure_data_structget_energy () const
 
tkstring get_energy_offset ()
 get_energy_offset More...
 
tkstring get_energy_str (const tkstring &_record) const
 extract the energy part More...
 
const tkdb_table::measure_data_structget_lifetime () const
 
tkstring get_lifetime_metastable_str (const tkstring &_record) const
 extract the lifetime part More...
 
tkstring get_lifetime_str (const tkstring &_record) const
 extract the lifetime part More...
 
const tkstringget_record ()
 get record More...
 
record_type get_record_type ()
 get record type More...
 
const tkstringget_uncertain_record () const
 get the record uncertain type More...
 
bool is_comment ()
 to now if the record is a comment More...
 
bool is_continuation_record ()
 to now if the record is a continuation record or not More...
 
bool is_energy_offset ()
 to now if the energy is given with an offset More...
 
bool is_uncertain () const
 check if the record is uncertain More...
 
virtual void print (std::ostream &) const
 
void set_offset (tkstring _offset)
 set_energy_offset More...
 
virtual bool set_record (const tkstring &_record)
 define the record from a string. Option false only checks if the record is an identification record More...
 

Public Attributes

tkstring fglobal_time_unit {}
 

Static Public Attributes

static std::string BLANK = " "
 
static const int RSIZE = 81
 

Member Enumeration Documentation

◆ record_type

Enumerator
kident 
khistory 
kq_value 
kxref 
kcomment 
kparent 
knorm 
kprodnorm 
klevel 
kbeta 
kec 
kalpha 
kparticle 
kgamma 
kreference 
kend 
kunknown 

Definition at line 78 of file tkensdf_record.h.

Constructor & Destructor Documentation

◆ tkensdf_record()

tkensdf_record ( )
inline

Definition at line 106 of file tkensdf_record.h.

◆ ~tkensdf_record()

~tkensdf_record ( )
inline

Definition at line 107 of file tkensdf_record.h.

Member Function Documentation

◆ add_comment_record()

void add_comment_record ( const tkstring _comment_record,
bool  _is_continuation = false 
)
virtual

add a continuation record from a string

Definition at line 80 of file tkensdf_record.cpp.

◆ add_continuation_record()

void add_continuation_record ( const tkstring _continuation_record)
virtual

add a continuation record from a string

Definition at line 71 of file tkensdf_record.cpp.

◆ analyse_comment_record()

virtual void analyse_comment_record ( )
inlinevirtual

analyse the continuation record

Definition at line 131 of file tkensdf_record.h.

◆ analyse_continuation_record()

virtual void analyse_continuation_record ( )
inlinevirtual

analyse the continuation record

Reimplemented in tkensdf_gamma_rec, and tkensdf_level_rec.

Definition at line 122 of file tkensdf_record.h.

◆ analyse_record()

virtual void analyse_record ( )
inlinevirtual

analyse the record content, to be re implemented in all daughter classes

Reimplemented in tkensdf_gamma_rec, tkensdf_ident_rec, and tkensdf_level_rec.

Definition at line 113 of file tkensdf_record.h.

◆ check_record_type()

void check_record_type ( )

check record type from its string

the order of the checks are done relatively to their probabily to happen

Definition at line 90 of file tkensdf_record.cpp.

◆ clear()

void clear ( )
virtual

Reimplemented in tkensdf_gamma_rec, tkensdf_ident_rec, and tkensdf_level_rec.

Definition at line 347 of file tkensdf_record.cpp.

◆ decode_energy()

bool decode_energy ( const tkstring _st)

decode an anergy record

Definition at line 194 of file tkensdf_record.cpp.

◆ decode_lifetime()

bool decode_lifetime ( const tkstring _st,
const tkstring _st_ms 
)

decode a lifetime record

Definition at line 269 of file tkensdf_record.cpp.

◆ get_comment_record()

virtual const tkstring & get_comment_record ( ) const
inlinevirtual

get the continuation record

Definition at line 128 of file tkensdf_record.h.

◆ get_continuation_record()

virtual tkstring get_continuation_record ( )
inlinevirtual

get the continuation record

Definition at line 119 of file tkensdf_record.h.

◆ get_energy()

const tkdb_table::measure_data_struct & get_energy ( ) const
inline

Definition at line 187 of file tkensdf_record.h.

◆ get_energy_offset()

tkstring get_energy_offset ( )
inline

get_energy_offset

Definition at line 176 of file tkensdf_record.h.

◆ get_energy_str()

tkstring get_energy_str ( const tkstring _record) const
inline

extract the energy part

Definition at line 149 of file tkensdf_record.h.

◆ get_lifetime()

const tkdb_table::measure_data_struct & get_lifetime ( ) const
inline

Definition at line 186 of file tkensdf_record.h.

◆ get_lifetime_metastable_str()

tkstring get_lifetime_metastable_str ( const tkstring _record) const
inline

extract the lifetime part

Definition at line 155 of file tkensdf_record.h.

◆ get_lifetime_str()

tkstring get_lifetime_str ( const tkstring _record) const
inline

extract the lifetime part

Definition at line 152 of file tkensdf_record.h.

◆ get_record()

const tkstring & get_record ( )
inline

get record

Definition at line 137 of file tkensdf_record.h.

◆ get_record_type()

record_type get_record_type ( )
inline

get record type

Definition at line 140 of file tkensdf_record.h.

◆ get_uncertain_record()

const tkstring & get_uncertain_record ( ) const
inline

get the record uncertain type

Definition at line 167 of file tkensdf_record.h.

◆ is_comment()

bool is_comment ( )
inline

to now if the record is a comment

Definition at line 146 of file tkensdf_record.h.

◆ is_continuation_record()

bool is_continuation_record ( )
inline

to now if the record is a continuation record or not

Definition at line 143 of file tkensdf_record.h.

◆ is_energy_offset()

bool is_energy_offset ( )
inline

to now if the energy is given with an offset

Definition at line 173 of file tkensdf_record.h.

◆ is_uncertain()

bool is_uncertain ( ) const
inline

check if the record is uncertain

Definition at line 164 of file tkensdf_record.h.

◆ print()

void print ( std::ostream &  out) const
virtual

Reimplemented in tkensdf_gamma_rec, tkensdf_ident_rec, and tkensdf_level_rec.

Definition at line 364 of file tkensdf_record.cpp.

◆ set_offset()

void set_offset ( tkstring  _offset)
inline

set_energy_offset

Definition at line 170 of file tkensdf_record.h.

◆ set_record()

bool set_record ( const tkstring _record)
virtual

define the record from a string. Option false only checks if the record is an identification record

Reimplemented in tkensdf_gamma_rec, tkensdf_ident_rec, and tkensdf_level_rec.

Definition at line 54 of file tkensdf_record.cpp.

Member Data Documentation

◆ BLANK

std::string BLANK = " "
static

Definition at line 81 of file tkensdf_record.h.

◆ fglobal_time_unit

tkstring fglobal_time_unit {}

Definition at line 83 of file tkensdf_record.h.

◆ RSIZE

const int RSIZE = 81
static

Definition at line 80 of file tkensdf_record.h.


The documentation for this class was generated from the following files: