Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

MJDatabaseIsotope.hh

Go to the documentation of this file.
00001 //---------------------------------------------------------------------------//
00002 //bb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nu//
00003 //                                                                           //
00004 //                         MAJORANA Simulation                               //
00005 //                                                                           //
00006 //      This code implementation is the intellectual property of the         //
00007 //      MAJORANA Collaboration. It is based on Geant4, an intellectual       //
00008 //      property of the RD44 GEANT4 collaboration.                           //
00009 //                                                                           //
00010 //                        *********************                              //
00011 //                                                                           //
00012 //    Neither the authors of this software system, nor their employing       //
00013 //    institutes, nor the agencies providing financial support for this      //
00014 //    work  make  any representation or  warranty, express or implied,       //
00015 //    regarding this software system or assume any liability for its use.    //
00016 //    By copying, distributing or modifying the Program (or any work based   //
00017 //    on on the Program) you indicate your acceptance of this statement,     //
00018 //    and all its terms.                                                     //
00019 //                                                                           //
00020 //bb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nu//
00021 //---------------------------------------------------------------------------//
00032 // Begin description of class here
00039 // End class description
00040 //
00045 // 
00046 // --------------------------------------------------------------------------//
00056 // --------------------------------------------------------------------------//
00057 
00058 #ifndef _MJDATABASEISOTOPE_HH
00059 #define _MJDATABASEISOTOPE_HH
00060 
00061 //---------------------------------------------------------------------------//
00062 #include <string>               
00063 #include <iostream>
00064 using namespace std;
00065 
00066 #include "libpq-fe.h"
00067 
00068 //---------------------------------------------------------------------------//
00069 
00070 class MJDatabaseIsotope 
00071 {
00072 public:
00073 
00074   //default constructor
00075   MJDatabaseIsotope();
00076   MJDatabaseIsotope(string name, string sym, int z, int n, double a);
00077 
00078   //copy constructor
00079   MJDatabaseIsotope(const MJDatabaseIsotope &);
00080 
00081   //destructor
00082   ~MJDatabaseIsotope();
00083 
00084   //public interface
00085   string GetName(){return fName;}
00086   string GetSymbol(){return fSymb;}
00087   int GetZ(){return fz;}
00088   int GetN(){return fn;}
00089   double GetMolarMass(){return fMolarMass;}
00090   string GetPnnlKey() { return fPnnlkey;}
00091   string GetDecay() {return fDecay5;}
00092   string GetComment() {return fComment;}
00093 
00094   MJDatabaseIsotope* createIsotope(PGresult *);
00095 
00096   friend ostream& operator << (ostream& os, MJDatabaseIsotope & );
00097   void print();
00098 
00099   //protected members
00100 protected:
00101 
00102 
00103   //private  members
00104 private:
00105   string fName;
00106   string   fSymb;
00107   int fz;
00108   int fn;
00109   double  fMolarMass;
00110   string fPnnlkey;
00111   string fDecay5;
00112   string fComment;
00113 
00114 
00115 };
00116 #endif

Generated on Mon Nov 29 16:58:49 2004 for Majorana Simulation by  doxygen 1.3.9.1