36 NuclearChart(
string Name=
"test",
int maxN=170,
int maxZ=120);
44 void setval(
int inpN,
int inpZ,
float val) {
if ((inpN < fMaxN) && (inpZ <fMaxZ)) {fMendeleiev[inpN][inpZ]=val;}}
50 float getval(
int inpN,
int inpZ) {
if ((inpN < fMaxN) && (inpZ <fMaxZ)) {
return fMendeleiev[inpN][inpZ];}
else {
return (-1);}}
int fMaxZ
Maximum Z value of the matrix.
Definition: NuclearChart.hxx:57
string fName
file name where to write
Definition: NuclearChart.hxx:55
A NuclearChart is a 2 dimensional array of nuclei up to maximum N & Z.
Definition: NuclearChart.hxx:32
int fMaxN
Maximum N value of the matrix.
Definition: NuclearChart.hxx:58
void setval(int inpN, int inpZ, float val)
Give a value to the Mendeleiev Matrix.
Definition: NuclearChart.hxx:44
vector< float > fBuffer
a buffer to write
Definition: NuclearChart.hxx:59
float getval(int inpN, int inpZ)
returns the value of the Medelev Matrix
Definition: NuclearChart.hxx:50
map< int,map< int, float > > fMendeleiev
matrix of all nuclei
Definition: NuclearChart.hxx:56