4 #include "KVExcitedState.h"
39 cout <<
Form(
"%15s", fJPi.Data()) <<
" _____ "
41 <<
Form(
"%15s", fGamma.Data())
62 fJPi =
Form(
"%d%s", fSpin, ((fParity > 0) ?
"+" :
"-"));
63 fGamma =
Form(
"%.2lf keV", ww);
95 if (jpi.
Index(
"+") < jpi.
Index(
"-")) fParity = 1;
98 else if (jpi.
Contains(
"-")) fParity = -1;
119 jpi = jpi(0, jpi.
Index(
"/"));
155 if (ugam.
EqualTo(
"EV")) fWidth *= 1
e-3;
156 else if (ugam.
EqualTo(
"KEV")) fWidth *= 1;
157 else if (ugam.
EqualTo(
"MEV")) fWidth *= 1e3;
158 else if (ugam.
Contains(
"S")) fWidth *= 1
e-6;
165 if (gam == 0.) fGamma =
Form(
"%.1f %3s", gam, ugam.
Data());
166 else fGamma =
Form(
"%.1f %3s", gam, ugam.
Data());
177 if (fIsOdd) JJ *= 0.5;
178 double yy = (2.*JJ + 1.) * fWidth / ((xx - fEnergy) * (xx - fEnergy) + 0.25 * fWidth * fWidth);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t np
char * Form(const char *fmt,...)
Excited state of atomic nucleus.
void set(Double_t ee, Double_t ww, Double_t jj, Int_t pi)
virtual ~KVExcitedState()
Destructor.
Double_t eval(Double_t excit)
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
void Begin(TString delim) const
void RemoveAllExtraWhiteSpace()
KVString Next(Bool_t strip_whitespace=kFALSE) const
Int_t GetNValues(TString delim) const
const char * Data() const
Bool_t EqualTo(const char *cs, ECaseCompare cmp=kExact) const
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
TString & ReplaceAll(const char *s1, const char *s2)
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const