| 1 | //
|
|---|
| 2 | // ********************************************************************
|
|---|
| 3 | // * License and Disclaimer *
|
|---|
| 4 | // * *
|
|---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of *
|
|---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and *
|
|---|
| 7 | // * conditions of the Geant4 Software License, included in the file *
|
|---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These *
|
|---|
| 9 | // * include a list of copyright holders. *
|
|---|
| 10 | // * *
|
|---|
| 11 | // * Neither the authors of this software system, nor their employing *
|
|---|
| 12 | // * institutes,nor the agencies providing financial support for this *
|
|---|
| 13 | // * work make any representation or warranty, express or implied, *
|
|---|
| 14 | // * regarding this software system or assume any liability for its *
|
|---|
| 15 | // * use. Please see the license in the file LICENSE and URL above *
|
|---|
| 16 | // * for the full disclaimer and the limitation of liability. *
|
|---|
| 17 | // * *
|
|---|
| 18 | // * This code implementation is the result of the scientific and *
|
|---|
| 19 | // * technical work of the GEANT4 collaboration. *
|
|---|
| 20 | // * By using, copying, modifying or distributing the software (or *
|
|---|
| 21 | // * any work based on the software) you agree to acknowledge its *
|
|---|
| 22 | // * use in resulting scientific publications, and indicate your *
|
|---|
| 23 | // * acceptance of all terms of the Geant4 Software license. *
|
|---|
| 24 | // ********************************************************************
|
|---|
| 25 | //
|
|---|
| 26 | #ifndef G4IsotopeMagneticMomentTable_h
|
|---|
| 27 | #define G4IsotopeMagneticMomentTable_h 1
|
|---|
| 28 | // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|---|
| 29 | //
|
|---|
| 30 | // MODULE: G4IsotopeMagneticMomentTable.hh
|
|---|
| 31 | //
|
|---|
| 32 | // Date: 16/03/07
|
|---|
| 33 | // Author: H.Kurashige
|
|---|
| 34 | //
|
|---|
| 35 | // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|---|
| 36 | //
|
|---|
| 37 | // HISTORY
|
|---|
| 38 | ////////////////////////////////////////////////////////////////////////////////
|
|---|
| 39 | //
|
|---|
| 40 | #include "globals.hh"
|
|---|
| 41 | #include "G4IsotopeProperty.hh"
|
|---|
| 42 | #include "G4VIsotopeTable.hh"
|
|---|
| 43 | #include "G4Ions.hh"
|
|---|
| 44 | #include "G4ParticleTable.hh"
|
|---|
| 45 | #include "G4IonTable.hh"
|
|---|
| 46 | #include "G4DecayTable.hh"
|
|---|
| 47 |
|
|---|
| 48 | #include <vector>
|
|---|
| 49 |
|
|---|
| 50 | ////////////////////////////////////////////////////////////////////////////////
|
|---|
| 51 | //
|
|---|
| 52 | class G4IsotopeMagneticMomentTable : public G4VIsotopeTable
|
|---|
| 53 | {
|
|---|
| 54 | // class description
|
|---|
| 55 | // G4IsotopeMagneticMomentTable is the table of pointers to G4IsotopeProperty,
|
|---|
| 56 | // which has magnetic moment and spin.
|
|---|
| 57 | // Data File name is given by G4IONMAGNETICMOMENT
|
|---|
| 58 | //
|
|---|
| 59 | public:
|
|---|
| 60 | //
|
|---|
| 61 | typedef std::vector<G4IsotopeProperty*> G4IsotopeList;
|
|---|
| 62 | typedef std::vector<G4String> G4IsotopeNameList;
|
|---|
| 63 |
|
|---|
| 64 | public:
|
|---|
| 65 | // constructor
|
|---|
| 66 | //
|
|---|
| 67 | G4IsotopeMagneticMomentTable ();
|
|---|
| 68 |
|
|---|
| 69 | protected:
|
|---|
| 70 | // hide copy construictor as protected
|
|---|
| 71 | G4IsotopeMagneticMomentTable(const G4IsotopeMagneticMomentTable &right);
|
|---|
| 72 |
|
|---|
| 73 | public:
|
|---|
| 74 | // destructor
|
|---|
| 75 | virtual ~G4IsotopeMagneticMomentTable();
|
|---|
| 76 |
|
|---|
| 77 | public:
|
|---|
| 78 | // with description
|
|---|
| 79 | //
|
|---|
| 80 | virtual G4bool FindIsotope(G4IsotopeProperty* property);
|
|---|
| 81 | // The FindIsotope function will replace the pure virtual one defined in the
|
|---|
| 82 | // abstract base class G4VIstopeTable. We don't use this fuction in this
|
|---|
| 83 | // implementation, instead we use the next function.
|
|---|
| 84 | //
|
|---|
| 85 | virtual G4IsotopeProperty* GetIsotope(G4int Z, G4int A, G4double E);
|
|---|
| 86 | //
|
|---|
| 87 | // again it will replace the pure virtual one in the abstract base class.
|
|---|
| 88 | //
|
|---|
| 89 | // Z: Atomic Number
|
|---|
| 90 | // A: Atomic Mass
|
|---|
| 91 | // E: Excitaion energy
|
|---|
| 92 |
|
|---|
| 93 | private:
|
|---|
| 94 | G4int GetVerboseLevel() const;
|
|---|
| 95 | // get Verbose Level defined in G4ParticleTable
|
|---|
| 96 |
|
|---|
| 97 | private:
|
|---|
| 98 |
|
|---|
| 99 | G4IsotopeList fIsotopeList;
|
|---|
| 100 |
|
|---|
| 101 | static const G4double levelTolerance;
|
|---|
| 102 | static const G4double nuclearMagneton;
|
|---|
| 103 | };
|
|---|
| 104 |
|
|---|
| 105 |
|
|---|
| 106 | inline
|
|---|
| 107 | G4int G4IsotopeMagneticMomentTable::GetVerboseLevel() const
|
|---|
| 108 | {
|
|---|
| 109 | return G4ParticleTable::GetParticleTable()->GetVerboseLevel();
|
|---|
| 110 | }
|
|---|
| 111 |
|
|---|
| 112 | #endif
|
|---|
| 113 |
|
|---|
| 114 |
|
|---|
| 115 |
|
|---|
| 116 |
|
|---|
| 117 |
|
|---|
| 118 |
|
|---|