TkN 2.3
Toolkit for Nuclei
Loading...
Searching...
No Matches
tkspin Class Reference

Nuclear excited state spin. More...

Detailed Description

Nuclear excited state spin.

The tkspin class handles the spin value of a nuclear level. It inherits from the tkn::tkproperty class to be associated with possible uncertainties on the spin determination

Definition at line 49 of file tkspin_parity.h.

Inheritance diagram for tkspin:
tkproperty

#include <tkspin_parity.h>

Public Member Functions

 tkspin ()
 
 tkspin (int _n, int _d=1)
 
virtual ~tkspin () override=default
 
virtual void clear ()
 to clear the content
 
tkstring get_string ()
 returns the spin as a string
 
double get_value ()
 To get the spin as a double.
 
virtual void print ()
 print the spin properties
 
virtual void set (const tkstring &_st)
 to set some information about this data
 
void set (double _spin)
 define the spin value
 
void set (int n, int d=1)
 define the spin value
 
- Public Member Functions inherited from tkproperty
 tkproperty ()
 
 tkproperty (tkproperty::data_info _info)
 
virtual ~tkproperty ()
 
void clear ()
 clear the property
 
data_info get_info ()
 to get information about this data
 
data_info get_info_const () const
 
tkstring get_info_str (bool _showknown=true) const
 to print in string the data_info
 
tkstring get_reference ()
 to get the reference of this data
 
bool is_converted () const
 to know if the value has been converted
 
bool is_info (data_info _info) const
 to get some information about this data
 
bool is_known () const
 to get some information about this data
 
void set_converted (bool _val=true)
 to define the value as a converted one
 
void set_info (tkproperty::data_info _info)
 to set some information about this data
 
void set_reference (const char *_st)
 to set the reference of this data
 

Additional Inherited Members

- Public Types inherited from tkproperty
enum  data_info {
  kKnown , kUnknown , kTentative , kTheo ,
  kAbout , kSystematic , kLimit , kUncertain
}
 flags that qualify a given data More...
 
- Static Public Member Functions inherited from tkproperty
static data_info what_is (const tkstring &_st)
 It deduces from a string the kind of data.
 

Constructor & Destructor Documentation

◆ tkspin() [1/2]

tkspin ( )
inline

Definition at line 56 of file tkspin_parity.h.

◆ tkspin() [2/2]

tkspin ( int _n,
int _d = 1 )

Definition at line 70 of file tkspin_parity.cpp.

◆ ~tkspin()

virtual ~tkspin ( )
overridevirtualdefault

Member Function Documentation

◆ clear()

virtual void clear ( )
inlinevirtual

to clear the content

Definition at line 74 of file tkspin_parity.h.

◆ get_string()

tkstring get_string ( )

returns the spin as a string

  • in case the spin is tentative, given in parenthesis. ex: (2+)
  • in case the spin is deduced form calculations, given in hooks. ex: [2+]
  • in case the spin is uncertain, given with ~

Definition at line 81 of file tkspin_parity.cpp.

◆ get_value()

double get_value ( )
inline

To get the spin as a double.

Definition at line 66 of file tkspin_parity.h.

◆ print()

void print ( )
virtual

print the spin properties

Definition at line 204 of file tkspin_parity.cpp.

◆ set() [1/3]

void set ( const tkstring & _st)
virtual

to set some information about this data

Definition at line 103 of file tkspin_parity.cpp.

◆ set() [2/3]

void set ( double _spin)

define the spin value

Parameters
_spinspin value as a double (should be integer of half values)

Definition at line 184 of file tkspin_parity.cpp.

◆ set() [3/3]

void set ( int _n,
int _d = 1 )

define the spin value

Parameters
_nspin numerator
_dspin denominator - should be 1 or 2

Definition at line 169 of file tkspin_parity.cpp.


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