![]() |
TkN 2.2
Toolkit for Nuclei
|
Nuclear excited state spin. More...
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.
#include <tkspin_parity.h>
Public Member Functions | |
| tkspin () | |
| tkspin (int _n, int _d=1) | |
| virtual | ~tkspin () |
| virtual void | clear () |
| to clear the content More... | |
| tkstring | get_string () |
| returns the spin as a string More... | |
| double | get_value () |
| To get the spin as a double. More... | |
| virtual void | print () |
| print the spin properties More... | |
| virtual void | set (const tkstring &_st) |
| to set some information about this data More... | |
| void | set (double _spin) |
| define the spin value More... | |
| void | set (int n, int d=1) |
| define the spin value More... | |
Public Member Functions inherited from tkproperty | |
| tkproperty () | |
| tkproperty (tkproperty::data_info _info) | |
| virtual | ~tkproperty () |
| void | clear () |
| clear the property More... | |
| data_info | get_info () |
| to get information about this data More... | |
| data_info | get_info_const () const |
| tkstring | get_info_str (bool _showknown=true) const |
| to print in string the data_info More... | |
| tkstring | get_reference () |
| to get the reference of this data More... | |
| bool | is_converted () const |
| to know if the value has been converted More... | |
| bool | is_info (data_info _info) const |
| to get some information about this data More... | |
| bool | is_known () const |
| to get some information about this data More... | |
| void | set_converted (bool _val=true) |
| to define the value as a converted one More... | |
| void | set_info (tkproperty::data_info _info) |
| to set some information about this data More... | |
| void | set_reference (const char *_st) |
| to set the reference of this data More... | |
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. More... | |
|
inline |
Definition at line 56 of file tkspin_parity.h.
| tkspin | ( | int | _n, |
| int | _d = 1 |
||
| ) |
Definition at line 70 of file tkspin_parity.cpp.
|
inlinevirtual |
Definition at line 58 of file tkspin_parity.h.
|
inlinevirtual |
to clear the content
Definition at line 74 of file tkspin_parity.h.
| tkstring get_string | ( | ) |
returns the spin as a string
Definition at line 81 of file tkspin_parity.cpp.
|
inline |
To get the spin as a double.
Definition at line 66 of file tkspin_parity.h.
|
virtual |
print the spin properties
Definition at line 204 of file tkspin_parity.cpp.
|
virtual |
to set some information about this data
Definition at line 103 of file tkspin_parity.cpp.
| void set | ( | double | _spin | ) |
define the spin value
| _spin | spin value as a double (should be integer of half values) |
Definition at line 184 of file tkspin_parity.cpp.
| void set | ( | int | _n, |
| int | _d = 1 |
||
| ) |
define the spin value
| _n | spin numerator |
| _d | spin denominator - should be 1 or 2 |
Definition at line 169 of file tkspin_parity.cpp.