CLASS
1.1
|
00001 #ifndef _ZAI_ 00002 #define _ZAI_ 00003 00014 #include <string> 00015 #include "TObject.h" 00016 00017 using namespace std; 00018 00019 00020 00021 00023 00026 class ZAI : public TObject 00027 { 00028 00029 00030 public: 00032 00037 ZAI(int Z, int A, int I=0); 00038 ZAI(); 00039 ~ZAI(); 00040 00045 int Z()const{return fZ;} 00046 int A()const{return fA;} 00047 int I()const{return fI;} 00048 int N()const{return fA-fZ;} 00049 00050 void SetMass(double m) {fMass=m;} 00051 double GetMass(); 00052 00053 00054 ZAI& operator=(ZAI& IVa); 00055 bool operator <(const ZAI& zai) const {return (fZ != zai.Z())? 00056 (fZ < zai.Z()) : ( (fA != zai.A())? 00057 (fA < zai.A()) : (fI < zai.I()) );} 00059 00060 protected : 00061 00062 string fName; 00063 short fZ; 00064 short fA; 00065 short fI; 00066 double fMass; 00067 ClassDef(ZAI,1); 00068 }; 00069 00070 00071 #endif