MURE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
NuclearChart.hxx
Go to the documentation of this file.
1 #ifndef _NuclearChart_
2 #define _NuclearChart_
3 
9 #include <math.h>
10 #include <vector>
11 #include <iostream>
12 #include <string>
13 #include <map>
14 #include <fstream>
15 #include <iomanip>
16 
17 using namespace std;
18 
20 
33 {
34 public:
36  NuclearChart(string Name="test", int maxN=170, int maxZ=120);
37  ~NuclearChart();
38 
44  void setval(int inpN, int inpZ, float val) {if ((inpN < fMaxN) && (inpZ <fMaxZ)) {fMendeleiev[inpN][inpZ]=val;}}
46 
50  float getval(int inpN, int inpZ) {if ((inpN < fMaxN) && (inpZ <fMaxZ)) {return fMendeleiev[inpN][inpZ];} else {return (-1);}}
51  void DumpChart();
52  void DumpDriplines();
53 
54 private:
55  string fName;
56  map<int ,map<int,float> > fMendeleiev;
57  int fMaxZ;
58  int fMaxN;
59  vector<float> fBuffer;
60 
61 };
62 #endif
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 &amp; 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

MURE Project, documentation generated by Doxygen 1.8.5 - Mon Nov 17 2014