This class builds a nucleus and sets all the basic information (mass, Z, symbol, radius, etc.)
Definition at line 27 of file TNucleus.h.
Public Member Functions | |
TNucleus () | |
TNucleus (const char *name) | |
TNucleus (int charge, int neutrons, double mass, const char *symbol) | |
TNucleus (int charge, int neutrons, const char *MassFile=nullptr) | |
~TNucleus () override | |
void | AddTransition (Double_t energy, Double_t intensity, Double_t energy_uncertainty=0.0, Double_t intensity_uncertainty=0.0) |
void | AddTransition (TTransition *tran) |
int | GetA () const |
double | GetBetaFromEnergy (double energy_MeV) |
double | GetEnergyFromBeta (double beta) |
double | GetMass () const |
double | GetMassExcess () const |
int | GetN () const |
Int_t | GetNTransitions () const |
double | GetRadius () const |
const char * | GetSymbol () const |
TTransition * | GetTransition (Int_t idx) |
const TList * | GetTransitionList () const |
int | GetZ () const |
int | GetZfromSymbol (char *) |
Int_t | NTransitions () const |
bool | operator!= (const TNucleus &rhs) const |
bool | operator== (const TNucleus &rhs) const |
void | Print (Option_t *opt="") const override |
void | SetMass (double) |
void | SetMass () |
void | SetMassExcess (double) |
void | SetN (int) |
void | SetSymbol (const char *) |
void | SetZ (int) |
void | WriteSourceFile (const std::string &outfilename="") |
Static Public Member Functions | |
static std::string | SortName (const char *name) |
Private Member Functions | |
bool | LoadTransitionFile () |
void | SetName (const char *c="") override |
Static Private Member Functions | |
static std::string & | massfile () |
Private Attributes | |
int | fA {0} |
double | fMass {0.} |
double | fMassExcess {0.} |
int | fN {0} |
std::string | fSymbol |
TList | fTransitionList |
int | fZ {0} |
Static Private Attributes | |
static const char * | grsipath |
#include <TNucleus.h>
|
inline |
Definition at line 36 of file TNucleus.h.
TNucleus::TNucleus | ( | const char * | name | ) |
Definition at line 25 of file TNucleus.cxx.
References LoadTransitionFile(), massfile(), SetMass(), SetMassExcess(), SetN(), SetName(), SetSymbol(), and SetZ().
TNucleus::TNucleus | ( | int | charge, |
int | neutrons, | ||
double | mass, | ||
const char * | symbol | ||
) |
Definition at line 113 of file TNucleus.cxx.
References fMass, fN, fSymbol, fZ, LoadTransitionFile(), and SetName().
TNucleus::TNucleus | ( | int | charge, |
int | neutrons, | ||
const char * | MassFile = nullptr |
||
) |
Definition at line 124 of file TNucleus.cxx.
References fMassExcess, fN, fSymbol, fZ, LoadTransitionFile(), massfile(), SetMass(), SetName(), and SetSymbol().
|
override |
Definition at line 174 of file TNucleus.cxx.
References fTransitionList.
void TNucleus::AddTransition | ( | Double_t | energy, |
Double_t | intensity, | ||
Double_t | energy_uncertainty = 0.0 , |
||
Double_t | intensity_uncertainty = 0.0 |
||
) |
Definition at line 299 of file TNucleus.cxx.
Referenced by LoadTransitionFile().
void TNucleus::AddTransition | ( | TTransition * | tran | ) |
Definition at line 311 of file TNucleus.cxx.
References fTransitionList.
|
inline |
Definition at line 65 of file TNucleus.h.
Referenced by GetRadius(), LoadTransitionFile(), TReaction::Print(), SetMass(), and SetName().
double TNucleus::GetBetaFromEnergy | ( | double | energy_MeV | ) |
Definition at line 411 of file TNucleus.cxx.
References fMass.
double TNucleus::GetEnergyFromBeta | ( | double | beta | ) |
Definition at line 405 of file TNucleus.cxx.
References fMass.
|
inline |
Definition at line 67 of file TNucleus.h.
References fMass.
Referenced by TKinematics::FinalCm(), TKinematics::GetExcEnergy(), and TKinematics::TKinematics().
|
inline |
|
inline |
Definition at line 64 of file TNucleus.h.
References fN.
|
inline |
Definition at line 78 of file TNucleus.h.
References fTransitionList.
double TNucleus::GetRadius | ( | ) | const |
Definition at line 292 of file TNucleus.cxx.
References GetA().
|
inline |
Definition at line 68 of file TNucleus.h.
References fSymbol.
Referenced by LoadTransitionFile(), and SetName().
TTransition * TNucleus::GetTransition | ( | Int_t | idx | ) |
Definition at line 316 of file TNucleus.cxx.
References fTransitionList.
|
inline |
Definition at line 87 of file TNucleus.h.
References fTransitionList.
Referenced by TCalibrator::AddData(), TSourceList::SetNucleus(), and TSourceCalibration::SetSource().
|
inline |
Definition at line 63 of file TNucleus.h.
References fZ.
Referenced by TReaction::Print(), and TKinematics::Rutherford().
int TNucleus::GetZfromSymbol | ( | char * | symbol | ) |
Definition at line 262 of file TNucleus.cxx.
References SetZ().
|
private |
Definition at line 353 of file TNucleus.cxx.
References AddTransition(), fTransitionList, GetA(), and GetSymbol().
Referenced by TNucleus().
|
staticprivate |
Definition at line 19 of file TNucleus.cxx.
Referenced by TNucleus().
|
inline |
Definition at line 77 of file TNucleus.h.
References fTransitionList.
Referenced by TEnergyCal::SetNucleus().
|
inline |
Definition at line 90 of file TNucleus.h.
|
inline |
Definition at line 89 of file TNucleus.h.
|
override |
Definition at line 326 of file TNucleus.cxx.
References fTransitionList.
void TNucleus::SetMass | ( | double | mass | ) |
Definition at line 244 of file TNucleus.cxx.
References fMass.
void TNucleus::SetMass | ( | ) |
Definition at line 250 of file TNucleus.cxx.
References amu, fMass, GetA(), and GetMassExcess().
Referenced by TNucleus().
void TNucleus::SetMassExcess | ( | double | mass_ex | ) |
void TNucleus::SetN | ( | int | neutrons | ) |
|
overrideprivate |
Definition at line 167 of file TNucleus.cxx.
References GetA(), and GetSymbol().
Referenced by TNucleus().
void TNucleus::SetSymbol | ( | const char * | symbol | ) |
void TNucleus::SetZ | ( | int | charge | ) |
Definition at line 228 of file TNucleus.cxx.
References fZ.
Referenced by GetZfromSymbol(), and TNucleus().
|
static |
Definition at line 179 of file TNucleus.cxx.
void TNucleus::WriteSourceFile | ( | const std::string & | outfilename = "" | ) |
Definition at line 338 of file TNucleus.cxx.
References fTransitionList.
|
private |
Definition at line 95 of file TNucleus.h.
Referenced by operator==().
|
private |
Definition at line 98 of file TNucleus.h.
Referenced by GetBetaFromEnergy(), GetEnergyFromBeta(), GetMass(), SetMass(), and TNucleus().
|
private |
Definition at line 99 of file TNucleus.h.
Referenced by GetMassExcess(), SetMassExcess(), and TNucleus().
|
private |
Definition at line 96 of file TNucleus.h.
Referenced by GetA(), GetN(), operator==(), SetN(), and TNucleus().
|
private |
Definition at line 100 of file TNucleus.h.
Referenced by GetSymbol(), SetSymbol(), and TNucleus().
|
private |
Definition at line 102 of file TNucleus.h.
Referenced by AddTransition(), GetNTransitions(), GetTransition(), GetTransitionList(), LoadTransitionFile(), NTransitions(), Print(), WriteSourceFile(), and ~TNucleus().
|
private |
Definition at line 97 of file TNucleus.h.
Referenced by GetA(), GetZ(), operator==(), SetZ(), and TNucleus().
|
staticprivate |
Definition at line 30 of file TNucleus.h.