Geant4 Cross Reference |
>> 1 // This code implementation is the intellectual property of >> 2 // the GEANT4 collaboration. 1 // 3 // 2 // ******************************************* << 4 // By copying, distributing or modifying the Program (or any work 3 // * License and Disclaimer << 5 // based on the Program) you indicate your acceptance of this statement, 4 // * << 6 // and all its terms. 5 // * The Geant4 software is copyright of th << 6 // * the Geant4 Collaboration. It is provided << 7 // * conditions of the Geant4 Software License << 8 // * LICENSE and available at http://cern.ch/ << 9 // * include a list of copyright holders. << 10 // * << 11 // * Neither the authors of this software syst << 12 // * institutes,nor the agencies providing fin << 13 // * work make any representation or warran << 14 // * regarding this software system or assum << 15 // * use. Please see the license in the file << 16 // * for the full disclaimer and the limitatio << 17 // * << 18 // * This code implementation is the result << 19 // * technical work of the GEANT4 collaboratio << 20 // * By using, copying, modifying or distri << 21 // * any work based on the software) you ag << 22 // * use in resulting scientific publicati << 23 // * acceptance of all terms of the Geant4 Sof << 24 // ******************************************* << 25 // 7 // 26 // G4IsotopeProperty << 8 // $Id: G4IsotopeProperty.hh,v 1.2 1999/10/28 23:24:10 kurasige Exp $ >> 9 // GEANT4 tag $Name: geant4-03-00 $ 27 // 10 // 28 // Class description: << 11 // >> 12 // ------------------------------------------------------------ >> 13 // GEANT 4 class header file 29 // 14 // 30 // G4IsotopeProperty contains properties of an << 15 // For information related to this code contact: >> 16 // CERN, IT Division, ASD group >> 17 // ------------------------------------------------------------ >> 18 // New design using G4VIsotopeTable 5 Oct. 99 H.Kurashige 31 19 32 // Author: H.Kurashige, 5 October 1999 << 20 #ifndef G4IsotopeProperty_h 33 // ------------------------------------------- << 21 #define G4IsotopeProperty_h 1 34 #ifndef G4IsotopeProperty_hh << 35 #define G4IsotopeProperty_hh 1 << 36 22 37 #include "G4Ions.hh" << 38 #include "globals.hh" 23 #include "globals.hh" 39 << 24 class G4DecayTable; 40 class G4DecayTable; << 41 class G4IsotopeProperty 25 class G4IsotopeProperty 42 { 26 { 43 public: << 27 // Class Description 44 // Constructor & destructor << 28 // G4IsotopeProperty contains properties of an isotope 45 G4IsotopeProperty() = default; << 29 // 46 virtual ~G4IsotopeProperty(); << 30 47 << 31 public: 48 G4IsotopeProperty(const G4IsotopeProperty& << 32 G4IsotopeProperty(); 49 G4IsotopeProperty& operator=(G4IsotopeProp << 33 50 << 34 // copy construictor 51 // Equality operators << 35 G4IsotopeProperty(const G4IsotopeProperty& right); 52 G4bool operator==(const G4IsotopeProperty& << 36 53 G4bool operator!=(const G4IsotopeProperty& << 37 // Assignment operator 54 << 38 G4IsotopeProperty & operator=(G4IsotopeProperty& right); 55 // Set/Get Atomic Number << 39 56 inline G4int GetAtomicNumber() const; << 40 // equal / unequal operator 57 inline void SetAtomicNumber(G4int Z); << 41 G4int operator==(const G4IsotopeProperty &right) const; 58 << 42 G4int operator!=(const G4IsotopeProperty &right) const; 59 // Set/Get Atomic Mass << 43 60 inline G4int GetAtomicMass() const; << 44 // destructor 61 inline void SetAtomicMass(G4int A); << 45 virtual ~G4IsotopeProperty(); 62 << 46 63 // Set/Get spin << 47 64 inline G4int GetiSpin() const; << 48 public: // With Description 65 inline void SetiSpin(G4int J); << 49 // Set/Get Atomic Number 66 << 50 G4int GetAtomicNumber() const; 67 // Set/Get Magnetic Moment << 51 void SetAtomicNumber(G4int Z); 68 inline G4double GetMagneticMoment() const; << 52 69 inline void SetMagneticMoment(G4double M); << 53 // Set/Get Atomic Mass 70 << 54 G4int GetAtomicMass() const; 71 // Set/Get Excited Energy << 55 void SetAtomicMass(G4int A); 72 inline G4double GetEnergy() const; << 56 73 inline void SetEnergy(G4double E); << 57 // Set/Get spin 74 << 58 G4int GetiSpin() const; 75 // Set/Get isomer level << 59 void SetiSpin(G4int J); 76 inline G4int GetIsomerLevel() const; << 60 77 inline void SetIsomerLevel(G4int level); << 61 // Set/Get Excited Energy 78 << 62 G4double GetEnergy() const; 79 // Set/Get floating level base << 63 void SetEnergy(G4double E); 80 inline G4Ions::G4FloatLevelBase GetFloatLe << 64 81 inline void SetFloatLevelBase(G4Ions::G4Fl << 65 // Set/Get life time 82 inline void SetFloatLevelBase(G4int flbInd << 66 G4double GetLifeTime() const; 83 << 67 void SetLifeTime(G4double T); 84 // Set/Get life time << 68 85 inline G4double GetLifeTime() const; << 69 // Set/Get decay table 86 inline void SetLifeTime(G4double T); << 70 G4DecayTable* GetDecayTable() const; 87 << 71 void SetDecayTable(G4DecayTable* table); 88 // Set/Get decay table << 72 89 inline G4DecayTable* GetDecayTable() const << 73 // Dump out information 90 inline void SetDecayTable(G4DecayTable* ta << 74 void DumpInfo() const; 91 << 75 92 // Dump out information << 76 private: 93 void DumpInfo() const; << 77 G4int fAtomicNumber; // number of proton 94 << 78 G4int fAtomicMass; // number of nucleon 95 private: << 79 G4int fISpin; // total angular momentum (in unit of 1/2) 96 G4int fAtomicNumber = 0; // number of pro << 80 G4double fEnergy; // excited energy 97 G4int fAtomicMass = 0; // number of nucle << 81 G4double fLifeTime; // lifeTime 98 G4int fISpin = 0; // total angular moment << 82 G4DecayTable* fDecayTable; // decay Table 99 G4double fEnergy = 0.0; // excited energy << 100 G4double fLifeTime = -1.0; // lifeTime << 101 G4DecayTable* fDecayTable = nullptr; // d << 102 G4double fMagneticMoment = 0.0; // magnet << 103 G4int fIsomerLevel = -1; // isomer level << 104 G4Ions::G4FloatLevelBase fFloatLevelBase{ << 105 G4Ions::G4FloatLevelBase::no_Float}; // << 106 }; 83 }; 107 84 108 // ------------------------ << 85 inline 109 // Inline methods << 86 G4int G4IsotopeProperty::GetAtomicNumber() const 110 // ------------------------ << 111 << 112 inline G4int G4IsotopeProperty::GetAtomicNumbe << 113 { 87 { 114 return fAtomicNumber; 88 return fAtomicNumber; 115 } 89 } 116 90 117 inline void G4IsotopeProperty::SetAtomicNumber << 91 inline >> 92 void G4IsotopeProperty::SetAtomicNumber(G4int Z) 118 { 93 { 119 fAtomicNumber = Z; << 94 fAtomicNumber = Z; 120 } 95 } 121 96 122 inline G4int G4IsotopeProperty::GetAtomicMass( << 97 inline >> 98 G4int G4IsotopeProperty::GetAtomicMass() const 123 { 99 { 124 return fAtomicMass; 100 return fAtomicMass; 125 } 101 } 126 102 127 inline void G4IsotopeProperty::SetAtomicMass(G << 103 inline >> 104 void G4IsotopeProperty::SetAtomicMass(G4int A) 128 { 105 { 129 fAtomicMass = A; << 106 fAtomicMass = A; 130 } 107 } 131 108 132 inline G4int G4IsotopeProperty::GetiSpin() con << 109 inline >> 110 G4int G4IsotopeProperty::GetiSpin() const 133 { 111 { 134 return fISpin; 112 return fISpin; 135 } 113 } 136 114 137 inline void G4IsotopeProperty::SetiSpin(G4int << 115 inline 138 { << 116 void G4IsotopeProperty::SetiSpin(G4int J) 139 fISpin = J; << 140 } << 141 << 142 inline G4double G4IsotopeProperty::GetMagnetic << 143 { << 144 return fMagneticMoment; << 145 } << 146 << 147 inline void G4IsotopeProperty::SetMagneticMome << 148 { 117 { 149 fMagneticMoment = M; << 118 fISpin = J; 150 } 119 } 151 120 152 inline G4double G4IsotopeProperty::GetEnergy() << 121 inline >> 122 G4double G4IsotopeProperty::GetEnergy() const 153 { 123 { 154 return fEnergy; 124 return fEnergy; 155 } 125 } 156 126 157 inline void G4IsotopeProperty::SetEnergy(G4dou << 127 inline >> 128 void G4IsotopeProperty::SetEnergy(G4double E) 158 { 129 { 159 fEnergy = E; << 130 fEnergy = E; 160 } 131 } 161 132 162 inline G4int G4IsotopeProperty::GetIsomerLevel << 133 inline 163 { << 134 G4double G4IsotopeProperty::GetLifeTime() const 164 return fIsomerLevel; << 165 } << 166 inline void G4IsotopeProperty::SetIsomerLevel( << 167 { << 168 fIsomerLevel = level; << 169 } << 170 << 171 inline G4double G4IsotopeProperty::GetLifeTime << 172 { 135 { 173 return fLifeTime; 136 return fLifeTime; 174 } 137 } 175 138 176 inline void G4IsotopeProperty::SetLifeTime(G4d << 139 inline >> 140 void G4IsotopeProperty::SetLifeTime(G4double T) 177 { 141 { 178 fLifeTime = T; << 142 fLifeTime = T; 179 } 143 } 180 144 181 inline G4DecayTable* G4IsotopeProperty::GetDec << 145 inline >> 146 G4DecayTable* G4IsotopeProperty::GetDecayTable() const 182 { 147 { 183 return fDecayTable; 148 return fDecayTable; 184 } 149 } 185 150 186 inline void G4IsotopeProperty::SetDecayTable(G << 151 inline >> 152 void G4IsotopeProperty::SetDecayTable(G4DecayTable* table) 187 { 153 { 188 fDecayTable = table; << 154 fDecayTable = table; 189 } 155 } >> 156 #endif >> 157 >> 158 >> 159 >> 160 >> 161 >> 162 190 163 191 inline G4Ions::G4FloatLevelBase G4IsotopePrope << 192 { << 193 return fFloatLevelBase; << 194 } << 195 164 196 inline void G4IsotopeProperty::SetFloatLevelBa << 197 { << 198 fFloatLevelBase = flb; << 199 } << 200 165 201 inline void G4IsotopeProperty::SetFloatLevelBa << 202 { << 203 fFloatLevelBase = G4Ions::FloatLevelBase(flb << 204 } << 205 166 206 #endif << 207 167