23 #ifndef Gw_NuclearLevel
36 NuclearLevel::NuclearLevel():
Level()
58 if ( spin.Contains(
"+") ) {
60 spin.Remove(spin.First(
"+"), 1);
61 }
else if ( spin.Contains(
"-") ) {
63 spin.Remove(spin.First(
"-"), 1);
89 TString opt = o;
string sep1, sep2;
91 if ( opt.Contains(
"header") ) std::cout<<
" Level energy (keV), \t spin (hbar), \t parity, \t half-life (s)" <<
std::endl;
99 cout << sep1 <<
"GROUND STATE" << sep2 <<
"\t\t" <<
fSpin <<
"\t" <<
fParity ;
113 if ( gDebug > 0 ) TLine::ls(o);
virtual Data_T GetError() const
return the error on the measured value
virtual void Set(Data_T data)
set the measure and its error (default err=0)
virtual bool IsData(UShort_t) const
to get some information about this data
void Set(Int_t n, Int_t d=1)
To set the spin.
header file for a NuclearLevel
virtual void ls(Option_t *option="") const
Measure< Float_t > fEnergy
const Char_t * GetString() const
To get the spin as a string.
bool IsParity(Parity::EParity) const
void Set(Parity::EParity)
virtual void SetLabels(const char *l0, const char *l1, const char *l2, const char *l3)
set label titles
ADF::LogMessage & endl(ADF::LogMessage &log)
virtual void SetLabels(const char *l0, const char *l1, const char *l2, const char *l3)
set labels and modify the attributes of this nuclear level
const char * GetLabel0()
overload function for specified used in this class.
Data_T GetValue() const
get the value, cannot be overloaded
Base class describing a general level.