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[ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /particles/management/include/G4IsotopeProperty.hh (Version 11.3.0) and /particles/management/include/G4IsotopeProperty.hh (Version 11.0)


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