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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 10.3.p3)


  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                           << 
 27 //                                                 26 //
 28 // Class description:                          <<  27 // $Id: G4IsotopeProperty.hh 96314 2016-04-06 07:21:51Z gcosmo $
 29 //                                                 28 //
 30 // G4IsotopeProperty contains properties of an <<  29 // 
                                                   >>  30 // ------------------------------------------------------------
                                                   >>  31 //  GEANT 4 class header file 
                                                   >>  32 //
                                                   >>  33 // ------------------------------------------------------------
                                                   >>  34 //      New design using G4VIsotopeTable          5 Oct. 99 H.Kurashige
                                                   >>  35 //      Add Magnetic Moment                      14 Mar  07 H.Kurashige
                                                   >>  36 //      Add isomer level              30 Apr. H.Kurashige
 31                                                    37 
 32 // Author: H.Kurashige, 5 October 1999         << 
 33 // ------------------------------------------- << 
 34 #ifndef G4IsotopeProperty_hh                   << 
 35 #define G4IsotopeProperty_hh 1                 << 
 36                                                    38 
 37 #include "G4Ions.hh"                           <<  39 #ifndef G4IsotopeProperty_h
 38 #include "globals.hh"                          <<  40 #define G4IsotopeProperty_h 1
 39                                                    41 
                                                   >>  42 #include "globals.hh"
 40 class G4DecayTable;                                43 class G4DecayTable;
                                                   >>  44 #include "G4Ions.hh"
 41 class G4IsotopeProperty                            45 class G4IsotopeProperty
 42 {                                                  46 {
 43   public:                                      <<  47  // Class Description
 44     // Constructor & destructor                <<  48  //   G4IsotopeProperty contains properties of an isotope
 45     G4IsotopeProperty() = default;             <<  49  //
 46     virtual ~G4IsotopeProperty();              <<  50 
 47                                                <<  51  public:
 48     G4IsotopeProperty(const G4IsotopeProperty& <<  52   G4IsotopeProperty();
 49     G4IsotopeProperty& operator=(G4IsotopeProp <<  53 
 50                                                <<  54   // copy construictor  
 51     // Equality operators                      <<  55   G4IsotopeProperty(const  G4IsotopeProperty& right);
 52     G4bool operator==(const G4IsotopeProperty& <<  56 
 53     G4bool operator!=(const G4IsotopeProperty& <<  57   // Assignment operator
 54                                                <<  58   G4IsotopeProperty & operator=(G4IsotopeProperty& right);
 55     // Set/Get Atomic Number                   <<  59  
 56     inline G4int GetAtomicNumber() const;      <<  60   // equal / unequal operator
 57     inline void SetAtomicNumber(G4int Z);      <<  61   G4int operator==(const G4IsotopeProperty &right) const;
 58                                                <<  62   G4int operator!=(const G4IsotopeProperty &right) const;
 59     // Set/Get Atomic Mass                     <<  63 
 60     inline G4int GetAtomicMass() const;        <<  64   // destructor
 61     inline void SetAtomicMass(G4int A);        <<  65   virtual ~G4IsotopeProperty();
 62                                                <<  66 
 63     // Set/Get spin                            <<  67 
 64     inline G4int GetiSpin() const;             <<  68  public:  // With Description
 65     inline void SetiSpin(G4int J);             <<  69   // Set/Get Atomic Number
 66                                                <<  70   G4int         GetAtomicNumber() const;
 67     // Set/Get Magnetic Moment                 <<  71   void          SetAtomicNumber(G4int Z);
 68     inline G4double GetMagneticMoment() const; <<  72 
 69     inline void SetMagneticMoment(G4double M); <<  73   // Set/Get Atomic Mass
 70                                                <<  74   G4int         GetAtomicMass() const;
 71     // Set/Get Excited Energy                  <<  75   void          SetAtomicMass(G4int A);
 72     inline G4double GetEnergy() const;         <<  76 
 73     inline void SetEnergy(G4double E);         <<  77   // Set/Get spin
 74                                                <<  78   G4int         GetiSpin() const;
 75     // Set/Get isomer level                    <<  79   void          SetiSpin(G4int J);
 76     inline G4int GetIsomerLevel() const;       <<  80 
 77     inline void SetIsomerLevel(G4int level);   <<  81   // Set/Get Magentic Moment
 78                                                <<  82   G4double      GetMagneticMoment() const;
 79     // Set/Get floating level base             <<  83   void          SetMagneticMoment(G4double M);
 80     inline G4Ions::G4FloatLevelBase GetFloatLe <<  84 
 81     inline void SetFloatLevelBase(G4Ions::G4Fl <<  85   // Set/Get Excited Energy
 82     inline void SetFloatLevelBase(G4int flbInd <<  86   G4double      GetEnergy() const;
 83                                                <<  87   void          SetEnergy(G4double  E);
 84     // Set/Get life time                       <<  88 
 85     inline G4double GetLifeTime() const;       <<  89   // Set/Get isomer lervel
 86     inline void SetLifeTime(G4double T);       <<  90   G4int         GetIsomerLevel() const;
 87                                                <<  91   void          SetIsomerLevel(G4int  level);
 88     // Set/Get decay table                     <<  92 
 89     inline G4DecayTable* GetDecayTable() const <<  93   // Set/Get floating level base
 90     inline void SetDecayTable(G4DecayTable* ta <<  94   G4Ions::G4FloatLevelBase GetFloatLevelBase() const;
 91                                                <<  95   void                     SetFloatLevelBase(G4Ions::G4FloatLevelBase flb);
 92     // Dump out information                    <<  96   void                     SetFloatLevelBase(G4int flbIndex);
 93     void DumpInfo() const;                     <<  97 
 94                                                <<  98   // Set/Get life time
 95   private:                                     <<  99   G4double      GetLifeTime() const;
 96     G4int fAtomicNumber = 0;  // number of pro << 100   void          SetLifeTime(G4double  T);
 97     G4int fAtomicMass = 0;  // number of nucle << 101 
 98     G4int fISpin = 0;  // total angular moment << 102   // Set/Get decay table
 99     G4double fEnergy = 0.0;  // excited energy << 103   G4DecayTable* GetDecayTable() const;
100     G4double fLifeTime = -1.0;  // lifeTime    << 104   void          SetDecayTable(G4DecayTable*  table);
101     G4DecayTable* fDecayTable = nullptr;  // d << 105 
102     G4double fMagneticMoment = 0.0;  // magnet << 106   // Dump out information
103     G4int fIsomerLevel = -1;  // isomer level  << 107   void          DumpInfo() const;
104     G4Ions::G4FloatLevelBase fFloatLevelBase{  << 108 
105       G4Ions::G4FloatLevelBase::no_Float};  // << 109  private:
                                                   >> 110   G4int         fAtomicNumber;     // number of proton
                                                   >> 111   G4int         fAtomicMass;       // number of nucleon 
                                                   >> 112   G4int         fISpin;            // total angular momentum (in unit of 1/2)
                                                   >> 113   G4double      fEnergy;           // excited energy
                                                   >> 114   G4double      fLifeTime;         // lifeTime 
                                                   >> 115   G4DecayTable* fDecayTable;       // decay Table
                                                   >> 116   G4double      fMagneticMoment;   // magnetic moment 
                                                   >> 117   G4int         fIsomerLevel;      // isomer level 
                                                   >> 118   G4Ions::G4FloatLevelBase fFloatLevelBase; // floating level base
106 };                                                119 };
107                                                   120 
108 // ------------------------                    << 121 inline 
109 // Inline methods                              << 122  G4int G4IsotopeProperty::GetAtomicNumber() const
110 // ------------------------                    << 
111                                                << 
112 inline G4int G4IsotopeProperty::GetAtomicNumbe << 
113 {                                                 123 {
114   return fAtomicNumber;                           124   return fAtomicNumber;
115 }                                                 125 }
116                                                   126 
117 inline void G4IsotopeProperty::SetAtomicNumber << 127 inline 
                                                   >> 128  void G4IsotopeProperty::SetAtomicNumber(G4int Z)
118 {                                                 129 {
119   fAtomicNumber = Z;                           << 130     fAtomicNumber = Z;
120 }                                                 131 }
121                                                   132 
122 inline G4int G4IsotopeProperty::GetAtomicMass( << 133 inline 
                                                   >> 134  G4int G4IsotopeProperty::GetAtomicMass() const
123 {                                                 135 {
124   return fAtomicMass;                             136   return fAtomicMass;
125 }                                                 137 }
126                                                   138 
127 inline void G4IsotopeProperty::SetAtomicMass(G << 139 inline 
                                                   >> 140  void G4IsotopeProperty::SetAtomicMass(G4int A)
128 {                                                 141 {
129   fAtomicMass = A;                             << 142     fAtomicMass = A;
130 }                                                 143 }
131                                                   144 
132 inline G4int G4IsotopeProperty::GetiSpin() con << 145 inline 
                                                   >> 146  G4int G4IsotopeProperty::GetiSpin() const
133 {                                                 147 {
134   return fISpin;                                  148   return fISpin;
135 }                                                 149 }
136                                                   150 
137 inline void G4IsotopeProperty::SetiSpin(G4int  << 151 inline 
                                                   >> 152  void G4IsotopeProperty::SetiSpin(G4int J)
138 {                                                 153 {
139   fISpin = J;                                  << 154     fISpin = J;
140 }                                                 155 }
141                                                   156 
142 inline G4double G4IsotopeProperty::GetMagnetic << 157 inline
                                                   >> 158   G4double  G4IsotopeProperty::GetMagneticMoment() const
143 {                                                 159 {
144   return fMagneticMoment;                         160   return fMagneticMoment;
145 }                                                 161 }
146                                                   162 
147 inline void G4IsotopeProperty::SetMagneticMome << 163 inline
                                                   >> 164   void     G4IsotopeProperty::SetMagneticMoment(G4double M)
148 {                                                 165 {
149   fMagneticMoment = M;                            166   fMagneticMoment = M;
150 }                                                 167 }
151                                                   168 
152 inline G4double G4IsotopeProperty::GetEnergy() << 169 inline 
                                                   >> 170  G4double G4IsotopeProperty::GetEnergy() const
153 {                                                 171 {
154   return fEnergy;                                 172   return fEnergy;
155 }                                                 173 }
156                                                   174 
157 inline void G4IsotopeProperty::SetEnergy(G4dou << 175 inline 
                                                   >> 176  void G4IsotopeProperty::SetEnergy(G4double E)
158 {                                                 177 {
159   fEnergy = E;                                 << 178     fEnergy = E;
160 }                                                 179 }
161                                                   180 
162 inline G4int G4IsotopeProperty::GetIsomerLevel << 181 inline  
                                                   >> 182  G4int  G4IsotopeProperty::GetIsomerLevel() const
163 {                                                 183 {
164   return fIsomerLevel;                         << 184   return fIsomerLevel; 
165 }                                                 185 }
166 inline void G4IsotopeProperty::SetIsomerLevel( << 186 inline  
                                                   >> 187  void   G4IsotopeProperty::SetIsomerLevel(G4int  level)
167 {                                                 188 {
168   fIsomerLevel = level;                           189   fIsomerLevel = level;
169 }                                                 190 }
170                                                   191 
171 inline G4double G4IsotopeProperty::GetLifeTime << 192 inline 
                                                   >> 193  G4double G4IsotopeProperty::GetLifeTime() const
172 {                                                 194 {
173   return fLifeTime;                               195   return fLifeTime;
174 }                                                 196 }
175                                                   197 
176 inline void G4IsotopeProperty::SetLifeTime(G4d << 198 inline 
                                                   >> 199  void G4IsotopeProperty::SetLifeTime(G4double T)
177 {                                                 200 {
178   fLifeTime = T;                               << 201     fLifeTime = T;
179 }                                                 202 }
180                                                   203 
181 inline G4DecayTable* G4IsotopeProperty::GetDec << 204 inline 
                                                   >> 205  G4DecayTable* G4IsotopeProperty::GetDecayTable() const
182 {                                                 206 {
183   return fDecayTable;                             207   return fDecayTable;
184 }                                                 208 }
185                                                   209 
186 inline void G4IsotopeProperty::SetDecayTable(G << 210 inline 
                                                   >> 211  void G4IsotopeProperty::SetDecayTable(G4DecayTable* table)
187 {                                                 212 {
188   fDecayTable = table;                         << 213     fDecayTable = table;
189 }                                                 214 }
190                                                   215 
191 inline G4Ions::G4FloatLevelBase G4IsotopePrope << 216 inline 
192 {                                              << 217  G4Ions::G4FloatLevelBase G4IsotopeProperty::GetFloatLevelBase() const
193   return fFloatLevelBase;                      << 218 { 
                                                   >> 219   return fFloatLevelBase; 
194 }                                                 220 }
195                                                   221 
196 inline void G4IsotopeProperty::SetFloatLevelBa << 222 inline 
                                                   >> 223  void G4IsotopeProperty::SetFloatLevelBase(G4Ions::G4FloatLevelBase flb)
197 {                                                 224 {
198   fFloatLevelBase = flb;                          225   fFloatLevelBase = flb;
199 }                                                 226 }
200                                                   227 
201 inline void G4IsotopeProperty::SetFloatLevelBa << 228 inline 
                                                   >> 229  void G4IsotopeProperty::SetFloatLevelBase(G4int flbIndex)
202 {                                                 230 {
203   fFloatLevelBase = G4Ions::FloatLevelBase(flb    231   fFloatLevelBase = G4Ions::FloatLevelBase(flbIndex);
204 }                                                 232 }
205                                                   233 
206 #endif                                            234 #endif
                                                   >> 235 
                                                   >> 236 
                                                   >> 237 
                                                   >> 238 
                                                   >> 239 
                                                   >> 240 
                                                   >> 241 
                                                   >> 242 
207                                                   243