37#ifndef tkspin_parity_H
38#define tkspin_parity_H
40#include "tkn_config.h"
41#include "tkproperty.h"
61 void set(
int n,
int d = 1);
63 void set(
double _spin) ;
107 virtual void set(
int _parity);
Nuclear excited state parity.
virtual ~tkparity()=default
virtual short get_value()
returns the parity value as a tkparity::eparity
virtual void set(tkparity::eparity _parity)
define the parity from tkparity::eparity
void print()
print the spin properties
tkparity(tkparity::eparity p)
tkstring get_string()
returns the parity as a string
virtual void clear()
to clear the content
virtual bool is_parity(tkparity::eparity _parity)
test the parity value
virtual void set(const tkstring &_st)
define the parity from a string
Any property (data) with flags.
bool is_known() const
to get some information about this data
void clear()
clear the property
Nuclear excited state spin-parity.
tkspin get_spin()
returns the spin object
void set_from_str(const tkstring &_st)
define the spin parity from a string
void print()
print the spin and parity properties
tkparity get_parity()
returns the parity object
void set_parity(int _parity)
define the parity from an integer
void set_spin(double _spin)
define the spin from a float
virtual bool is_known()
test if the spin and parity are known
const tkstring & get_jpi_str() const
returns the spin and parity string
Nuclear excited state spin.
virtual void print()
print the spin properties
double get_value()
To get the spin as a double.
tkstring get_string()
returns the spin as a string
void set(int n, int d=1)
define the spin value
virtual void clear()
to clear the content
std::string with usefull tricks from TString (ROOT) and KVString (KaliVeda) and more....