14#ifndef tkspin_parity_H
15#define tkspin_parity_H
17#include "tkn_config.h"
18#include "tkproperty.h"
38 void set(
int n,
int d = 1);
40 void set(
double _spin) ;
54 virtual void print()
const;
58 ClassDefOverride(
tkspin,0);
84 virtual void set(
int _parity);
122 virtual bool is_known()
const {
return (fSpin.is_known() && fParity.is_known());}
Nuclear excited state parity.
virtual short get_value() const
returns the parity value as a tkparity::eparity
virtual void set(tkparity::eparity _parity)
define the parity from tkparity::eparity
tkparity(tkparity::eparity p)
virtual void clear()
to clear the content
void print() const
print the spin properties
virtual void set(const tkstring &_st)
define the parity from a string
virtual ~tkparity() override=default
virtual bool is_parity(tkparity::eparity _parity) const
test the parity value
tkstring get_string() const
returns the parity as a string
void clear()
clear the property
Nuclear excited state spin-parity.
virtual bool is_known() const
test if the spin and parity are known
void set_from_str(const tkstring &_st)
define the spin parity from a string
tkspin get_spin() const
returns the spin object
void set_parity(int _parity)
define the parity from an integer
tkparity get_parity() const
returns the parity object
void set_spin(double _spin)
define the spin from a float
void print() const
print the spin and parity properties
virtual ~tkspin_parity()=default
const tkstring & get_jpi_str() const
returns the spin and parity string
Nuclear excited state spin.
virtual ~tkspin() override=default
double get_value() const
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
virtual void print() const
print the spin properties
tkstring get_string() const
returns the spin as a string
std::string with usefull tricks from TString (ROOT) and KVString (KaliVeda) and more....