Base class for a nucleus which means its composition. More...
#include <BaseNucleus.h>
Inherits TObject.
Public Member Functions | |
BaseNucleus () | |
Set any components to 0. More... | |
BaseNucleus (Int_t, Int_t, Int_t) | |
Int_t | GetA () const |
Int_t | GetN () const |
Int_t | GetZ () const |
void | SetA (Int_t A) |
bool | SetAZN (Int_t A, Int_t Z) |
bool | SetAZN (const char *s) |
Set A, Z, N from the symbol of the nucleus (see the correspondence table) More... | |
bool | SetAZN (Int_t A, Int_t Z, Int_t N) |
bool | SetAZN (const char *s, Int_t A) |
Set A, Z, N from the symbol of the nucleus (see the correspondence table) and A. More... | |
void | SetN (Int_t N) |
void | SetZ (Int_t Z) |
virtual | ~BaseNucleus () |
Static Public Member Functions | |
static bool | LoadTable (const char *xmlfile="") |
Load the correspondence table between the symbol of the nucleus and Z from a XML file. More... | |
static const char * | WhichFullName (const char *s) |
return the full name corresponding to a symbol if it is found in the correspondence table, else return "" More... | |
static const char * | WhichFullName (Int_t Z) |
return the full name corresponding to the number of proton Z if the nucleus is found in the correspondence table, else return -1 More... | |
static const char * | WhichSymbol (Int_t Z) |
return the symbol corresponding to Z if the nucleus is found in the correspondence table More... | |
static const char * | WhichSymbol (Int_t Z, Int_t A) |
static Int_t | WhichZ (const char *s) |
return the number of protons (Z) corresponding to a symbol if the nucleus is found in the correspondence table, else return -1 More... | |
Protected Attributes | |
Int_t | fA |
Int_t | fN |
Int_t | fZ |
Base class for a nucleus which means its composition.
This class will be used widely to define a nucleus as composed on nucleons. Because it will be extended to strange nucleus,
Definition at line 46 of file BaseNucleus.h.