CLASS  5.1
Fuel Cycle Simulator
ZAI.hxx
Go to the documentation of this file.
1 #ifndef _ZAI_
2 #define _ZAI_
3 
9 #include <string>
10 #include "TObject.h"
11 #include <iostream>
12 
13 using namespace std;
14 
15 //-----------------------------------------------------------------------------//
17 
29 //________________________________________________________________________
30 
31 
32 
33 class ZAI : public TObject
34 {
35 public:
36 
37 
38 //********* Constructor/Destructor Method *********//
39 
44 
45  ZAI();
46 
47  //{
49 
54  ZAI(int Z, int A, int I = 0);
55  //}
56 
57 
58  ~ZAI();
59 
60 
61 //********* ZAI main attributes Method *********//
62 
67  int Z() const { return fZ; }
68  int A() const { return fA; }
69  int I() const { return fI; }
70  int N() const { return fA-fZ; }
71 
73 
74 
75 
76  ZAI operator = (ZAI IVa);
77  bool operator <(const ZAI& zai) const { return (fZ != zai.Z())?
78  (fZ < zai.Z()) : ( (fA != zai.A())?
79  (fA < zai.A()) : (fI < zai.I()) ); }
80 
81  bool operator != (const ZAI& zai) const { return ( fZ != zai.Z() ) || ( fA != zai.A() ) || ( fI != zai.I() ); }
82  bool operator == (const ZAI& zai) const { return ( fZ == zai.Z() && fA == zai.A() && fI == zai.I()); }
83  void Print() const { cout << fZ << " " << fA << " " << fI << endl;}
84 
85 
86 protected :
87 
88  short fZ;
89  short fA;
90  short fI;
91 
92  ClassDef(ZAI,1);
93 };
94 
95 
96 #endif
short fI
Isomeric state.
Definition: ZAI.hxx:90
int I() const
returns the Isomeric State
Definition: ZAI.hxx:69
Definition: CLASSBackEndDict.cxx:37
Defines a nucleus.
Definition: ZAI.hxx:33
int Z() const
returns the number of protons
Definition: ZAI.hxx:67
int N() const
returns the number of neutrons
Definition: ZAI.hxx:70
short fA
number of nucleons (A = 0 means natural isotopes)
Definition: ZAI.hxx:89
void Print() const
Print in standard output : Z A I.
Definition: ZAI.hxx:83
int A() const
returns the number of nucleons
Definition: ZAI.hxx:68
short fZ
number of protons
Definition: ZAI.hxx:88