TkN 2.1
Toolkit for Nuclei
tkspin_parity Class Reference

Nuclear excited state spin-parity. More...

Detailed Description

Nuclear excited state spin-parity.

The tkspin_parity class handles the tkn::tkspin and tkn::tkparity values of a nuclear level.

Definition at line 124 of file tkspin_parity.h.

#include <tkspin_parity.h>

Public Member Functions

 tkspin_parity ()
 
virtual ~tkspin_parity ()
 
const tkstringget_jpi_str () const
 returns the spin and parity string More...
 
tkparity get_parity ()
 returns the parity object More...
 
tkspin get_spin ()
 returns the spin object More...
 
virtual bool is_known ()
 test if the spin and parity are known More...
 
void print ()
 print the spin and parity properties More...
 
void set_from_str (const tkstring &_st)
 define the spin parity from a string More...
 
void set_parity (int _parity)
 define the parity from an integer More...
 
void set_spin (double _spin)
 define the spin from a float More...
 

Constructor & Destructor Documentation

◆ tkspin_parity()

tkspin_parity ( )
default

◆ ~tkspin_parity()

virtual ~tkspin_parity ( )
inlinevirtual

Definition at line 133 of file tkspin_parity.h.

Member Function Documentation

◆ get_jpi_str()

const tkstring & get_jpi_str ( ) const

returns the spin and parity string

Definition at line 316 of file tkspin_parity.cpp.

◆ get_parity()

tkparity get_parity ( )
inline

returns the parity object

Definition at line 153 of file tkspin_parity.h.

◆ get_spin()

tkspin get_spin ( )
inline

returns the spin object

Definition at line 151 of file tkspin_parity.h.

◆ is_known()

virtual bool is_known ( )
inlinevirtual

test if the spin and parity are known

Definition at line 145 of file tkspin_parity.h.

◆ print()

void print ( )

print the spin and parity properties

Definition at line 321 of file tkspin_parity.cpp.

◆ set_from_str()

void set_from_str ( const tkstring _st)

define the spin parity from a string

Definition at line 296 of file tkspin_parity.cpp.

◆ set_parity()

void set_parity ( int  _parity)

define the parity from an integer

Definition at line 311 of file tkspin_parity.cpp.

◆ set_spin()

void set_spin ( double  _spin)

define the spin from a float

Definition at line 306 of file tkspin_parity.cpp.


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