00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 #ifndef G4IsotopeMagneticMomentTable_h 00027 #define G4IsotopeMagneticMomentTable_h 1 00028 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 00029 // 00030 // MODULE: G4IsotopeMagneticMomentTable.hh 00031 // 00032 // Date: 16/03/07 00033 // Author: H.Kurashige 00034 // 00035 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 00036 // 00037 // HISTORY 00039 // 00040 #include "globals.hh" 00041 #include "G4IsotopeProperty.hh" 00042 #include "G4VIsotopeTable.hh" 00043 #include "G4Ions.hh" 00044 #include "G4ParticleTable.hh" 00045 #include "G4IonTable.hh" 00046 #include "G4DecayTable.hh" 00047 00048 #include <vector> 00049 00051 // 00052 class G4IsotopeMagneticMomentTable : public G4VIsotopeTable 00053 { 00054 // class description 00055 // G4IsotopeMagneticMomentTable is the table of pointers to G4IsotopeProperty, 00056 // which has magnetic moment and spin. 00057 // Data File name is given by G4IONMAGNETICMOMENT 00058 // 00059 public: 00060 // 00061 typedef std::vector<G4IsotopeProperty*> G4IsotopeList; 00062 typedef std::vector<G4String> G4IsotopeNameList; 00063 00064 public: 00065 // constructor 00066 // 00067 G4IsotopeMagneticMomentTable(); 00068 00069 protected: 00070 // hide copy construictor and assignment operator as protected 00071 G4IsotopeMagneticMomentTable(const G4IsotopeMagneticMomentTable &right); 00072 G4IsotopeMagneticMomentTable & operator= (const G4IsotopeMagneticMomentTable &right); 00073 00074 public: 00075 // destructor 00076 virtual ~G4IsotopeMagneticMomentTable(); 00077 00078 public: 00079 // with description 00080 // 00081 virtual G4bool FindIsotope(G4IsotopeProperty* property); 00082 // The FindIsotope function will replace the pure virtual one defined in the 00083 // abstract base class G4VIstopeTable. We don't use this fuction in this 00084 // implementation, instead we use the next function. 00085 // 00086 virtual G4IsotopeProperty* GetIsotope(G4int Z, G4int A, G4double E); 00087 // 00088 // again it will replace the pure virtual one in the abstract base class. 00089 // 00090 // Z: Atomic Number 00091 // A: Atomic Mass 00092 // E: Excitaion energy 00093 00094 private: 00095 G4int GetVerboseLevel() const; 00096 // get Verbose Level defined in G4ParticleTable 00097 00098 private: 00099 00100 G4IsotopeList fIsotopeList; 00101 00102 static const G4double levelTolerance; 00103 static const G4double nuclearMagneton; 00104 }; 00105 00106 00107 inline 00108 G4int G4IsotopeMagneticMomentTable::GetVerboseLevel() const 00109 { 00110 return G4ParticleTable::GetParticleTable()->GetVerboseLevel(); 00111 } 00112 00113 #endif 00114 00115 00116 00117 00118 00119