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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 5.1.p1)


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