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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 /processes/hadronic/util/include/G4Nucleus.hh (Version 11.3.0) and /processes/hadronic/util/include/G4Nucleus.hh (Version 9.5)


  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 // original by H.P. Wellisch                   <<  26 //
 27 // modified by J.L. Chuma, TRIUMF, 19-Nov-1996 <<  27 //
 28 // last modified: 27-Mar-1997                  <<  28  // original by H.P. Wellisch
 29 // Chr. Volcker, 10-Nov-1997: new methods and  <<  29  // modified by J.L. Chuma, TRIUMF, 19-Nov-1996
 30 // M.G. Pia, 2 Oct 1998: modified GetFermiMome <<  30  // last modified: 27-Mar-1997
 31 //                       the source of memory  <<  31  // Chr. Volcker, 10-Nov-1997: new methods and class variables.
 32 // G.Folger, spring 2010:  add integer A/Z int <<  32  // M.G. Pia, 2 Oct 1998: modified GetFermiMomentum (original design was
 33 // A. Ribon, autumn 2021:  extended to hypernu <<  33  //                       the source of memory leaks)
 34                                                <<  34  // G.Folger, spring 2010:  add integer A/Z interface
                                                   >>  35  
 35 #ifndef G4Nucleus_h                                36 #ifndef G4Nucleus_h
 36 #define G4Nucleus_h 1                              37 #define G4Nucleus_h 1
 37 // Class Description                               38 // Class Description
 38 // This class knows how to describe a nucleus;     39 // This class knows how to describe a nucleus; 
 39 // to be used in your physics implementation (     40 // to be used in your physics implementation (not physics list) in case you need this physics.
 40 // Class Description - End                         41 // Class Description - End
 41                                                    42 
 42                                                    43  
 43 #include "globals.hh"                              44 #include "globals.hh"
 44 #include "G4ThreeVector.hh"                        45 #include "G4ThreeVector.hh"
 45 #include "G4ParticleTypes.hh"                      46 #include "G4ParticleTypes.hh"
 46 #include "G4ReactionProduct.hh"                    47 #include "G4ReactionProduct.hh"
 47 #include "G4DynamicParticle.hh"                    48 #include "G4DynamicParticle.hh"
 48 #include "G4ReactionProductVector.hh"              49 #include "G4ReactionProductVector.hh"
 49 #include "Randomize.hh"                            50 #include "Randomize.hh"
 50                                                    51  
 51 class G4Nucleus                                <<  52  class G4Nucleus 
 52 {                                              <<  53  {
 53   public:                                      <<  54  public:
 54                                                    55     
 55     G4Nucleus();                                   56     G4Nucleus();
 56     G4Nucleus(const G4double A, const G4double <<  57     
 57     G4Nucleus(const G4int A, const G4int Z, co <<  58     G4Nucleus( const G4double A, const G4double Z );
 58     G4Nucleus(const G4Material* aMaterial);    <<  59 
                                                   >>  60     G4Nucleus( const G4int A, const G4int Z );
                                                   >>  61 
                                                   >>  62     G4Nucleus( const G4Material *aMaterial );
 59                                                    63     
 60     ~G4Nucleus();                                  64     ~G4Nucleus();
 61                                                    65     
 62     inline G4Nucleus( const G4Nucleus &right )     66     inline G4Nucleus( const G4Nucleus &right )
 63     { *this = right; }                             67     { *this = right; }
 64                                                    68     
 65     inline G4Nucleus& operator = (const G4Nucl <<  69     inline G4Nucleus & operator=( const G4Nucleus &right )
 66     {                                          <<  70      {
 67       if (this != &right) {                    <<  71        if( this != &right )
 68         theA=right.theA;                       <<  72        {
 69         theZ=right.theZ;                       <<  73          theA=right.theA;  
 70         theL=right.theL;                       <<  74          theZ=right.theZ;  
 71         aEff=right.aEff;                       <<  75          aEff=right.aEff;  
 72         zEff=right.zEff;                       <<  76          zEff=right.zEff;  
 73         fIsotope = right.fIsotope;             <<  77          pnBlackTrackEnergy=right.pnBlackTrackEnergy; 
 74         pnBlackTrackEnergy=right.pnBlackTrackE <<  78          dtaBlackTrackEnergy=right.dtaBlackTrackEnergy;
 75         dtaBlackTrackEnergy=right.dtaBlackTrac <<  79          pnBlackTrackEnergyfromAnnihilation =
 76         pnBlackTrackEnergyfromAnnihilation =   <<  80                       right.pnBlackTrackEnergyfromAnnihilation; 
 77                      right.pnBlackTrackEnergyf <<  81          dtaBlackTrackEnergyfromAnnihilation =
 78         dtaBlackTrackEnergyfromAnnihilation =  <<  82                       right.dtaBlackTrackEnergyfromAnnihilation; 
 79                      right.dtaBlackTrackEnergy <<  83          theTemp = right.theTemp;
 80         theTemp = right.theTemp;               <<  84    excitationEnergy = right.excitationEnergy;
 81         excitationEnergy = right.excitationEne <<  85    momentum = right.momentum;
 82         momentum = right.momentum;             <<  86    fermiMomentum = right.fermiMomentum;
 83         fermiMomentum = right.fermiMomentum;   <<  87        }
 84       }                                        <<  88        return *this;
 85       return *this;                            <<  89      }
 86     }                                          << 
 87                                                    90    
 88     inline G4bool operator==( const G4Nucleus      91     inline G4bool operator==( const G4Nucleus &right ) const
 89     { return ( this == (G4Nucleus *) &right );     92     { return ( this == (G4Nucleus *) &right ); }
 90                                                    93     
 91     inline G4bool operator!=( const G4Nucleus      94     inline G4bool operator!=( const G4Nucleus &right ) const
 92     { return ( this != (G4Nucleus *) &right );     95     { return ( this != (G4Nucleus *) &right ); }
 93                                                    96     
 94     void ChooseParameters( const G4Material *a     97     void ChooseParameters( const G4Material *aMaterial );
 95                                                    98 
 96     void SetParameters( const G4double A, cons <<  99     void SetParameters( const G4double A, const G4double Z );
 97     void SetParameters( const G4int A, const G << 100     void SetParameters( const G4int A, const G4int Z );
 98                                                << 101     
                                                   >> 102 #ifndef G4Hadr_Nucleus_IntegerAZ 
                                                   >> 103 //deprecated Jan 2010, GF
                                                   >> 104     inline G4double GetN() const
                                                   >> 105     { return aEff; }
                                                   >> 106     
                                                   >> 107     inline G4double GetZ() const
                                                   >> 108     { return zEff; }
                                                   >> 109 #endif
                                                   >> 110 //to be replaced by new 
 99     inline G4int GetA_asInt() const               111     inline G4int GetA_asInt() const
100     { return theA; }                              112     { return theA; }   
101                                                   113     
102     inline G4int GetN_asInt() const               114     inline G4int GetN_asInt() const
103     { return theA-theZ-theL; }                 << 115     { return theA-theZ; }   
104                                                   116     
105     inline G4int GetZ_asInt() const               117     inline G4int GetZ_asInt() const
106     { return theZ; }                              118     { return theZ; }   
107                                                << 119 //... \GF
108     inline G4int GetL() const  // Number of La << 
109     { return theL; }                           << 
110                                                << 
111     inline const G4Isotope* GetIsotope()       << 
112     { return fIsotope; }                       << 
113                                                << 
114     inline void SetIsotope(const G4Isotope* is << 
115     {                                          << 
116       fIsotope = iso;                          << 
117       if(iso) {                                << 
118   theZ = iso->GetZ();                          << 
119         theA = iso->GetN();                    << 
120   theL = 0;                                    << 
121         aEff = theA;                           << 
122         zEff = theZ;                           << 
123       }                                        << 
124     }                                          << 
125                                                   120 
126     G4DynamicParticle *ReturnTargetParticle()     121     G4DynamicParticle *ReturnTargetParticle() const;
127                                                   122     
128     G4double AtomicMass( const G4double A, con << 123     G4double AtomicMass( const G4double A, const G4double Z ) const;
129     G4double AtomicMass( const G4int A, const  << 124     G4double AtomicMass( const G4int A, const G4int Z ) const;
130                                                << 125     
131     G4double GetThermalPz( const G4double mass    126     G4double GetThermalPz( const G4double mass, const G4double temp ) const;
132                                                   127     
133     G4ReactionProduct GetThermalNucleus(G4doub    128     G4ReactionProduct GetThermalNucleus(G4double aMass, G4double temp=-1) const;
134                                                   129     
135     G4ReactionProduct GetBiasedThermalNucleus(    130     G4ReactionProduct GetBiasedThermalNucleus(G4double aMass, G4ThreeVector aVelocity, G4double temp=-1) const;
136                                                   131 
137     void DoKinematicsOfThermalNucleus(const G4 << 
138                                       G4Reacti << 
139                                                << 
140     G4double Cinema( G4double kineticEnergy );    132     G4double Cinema( G4double kineticEnergy );
141                                                   133     
142     G4double EvaporationEffects( G4double kine    134     G4double EvaporationEffects( G4double kineticEnergy );
143                                                   135 
144     G4double AnnihilationEvaporationEffects(G4    136     G4double AnnihilationEvaporationEffects(G4double kineticEnergy, G4double ekOrg);
145                                                   137     
146     inline G4double GetPNBlackTrackEnergy() co    138     inline G4double GetPNBlackTrackEnergy() const
147     { return pnBlackTrackEnergy; }                139     { return pnBlackTrackEnergy; }
148                                                   140     
149     inline G4double GetDTABlackTrackEnergy() c    141     inline G4double GetDTABlackTrackEnergy() const
150     { return dtaBlackTrackEnergy; }               142     { return dtaBlackTrackEnergy; }
151                                                   143     
152     inline G4double GetAnnihilationPNBlackTrac    144     inline G4double GetAnnihilationPNBlackTrackEnergy() const
153     { return pnBlackTrackEnergyfromAnnihilatio    145     { return pnBlackTrackEnergyfromAnnihilation; }
154                                                   146     
155     inline G4double GetAnnihilationDTABlackTra    147     inline G4double GetAnnihilationDTABlackTrackEnergy() const
156     { return dtaBlackTrackEnergyfromAnnihilati    148     { return dtaBlackTrackEnergyfromAnnihilation; }
157                                                   149     
158 // ******************  methods introduced by C    150 // ******************  methods introduced by ChV ***********************    
159    // return fermi momentum                       151    // return fermi momentum
160      G4ThreeVector GetFermiMomentum();            152      G4ThreeVector GetFermiMomentum();
161                                                   153 
162 /*                                                154 /*
163   // return particle to be absorbed.              155   // return particle to be absorbed. 
164      G4DynamicParticle* ReturnAbsorbingParticl    156      G4DynamicParticle* ReturnAbsorbingParticle(G4double weight);
165 */                                                157 */
166                                                   158 
167   //  final nucleus fragmentation. Return List    159   //  final nucleus fragmentation. Return List of particles
168   // which should be used for further tracking    160   // which should be used for further tracking.
169      G4ReactionProductVector* Fragmentate();      161      G4ReactionProductVector* Fragmentate();
170                                                   162      
171                                                   163 
172   // excitation Energy...                         164   // excitation Energy...
173      void AddExcitationEnergy(G4double anEnerg    165      void AddExcitationEnergy(G4double anEnergy);
174                                                   166   
175                                                   167   
176   // momentum of absorbed Particles ..            168   // momentum of absorbed Particles ..
177      void AddMomentum(const G4ThreeVector aMom    169      void AddMomentum(const G4ThreeVector aMomentum);
178                                                   170      
179   // return excitation Energy                     171   // return excitation Energy
180      G4double GetEnergyDeposit() {return excit    172      G4double GetEnergyDeposit() {return excitationEnergy; }
181                                                   173      
182                                                   174 
183                                                   175 
184 // ****************************** end ChV ****    176 // ****************************** end ChV ******************************
185                                                   177 
186                                                   178 
187  private:                                         179  private:
188                                                   180     
189     G4int    theA;                                181     G4int    theA;
190     G4int    theZ;                                182     G4int    theZ;
191     G4int    theL;  // Number of Lambdas (in t << 
192     G4double aEff;  // effective atomic weight    183     G4double aEff;  // effective atomic weight
193     G4double zEff;  // effective atomic number    184     G4double zEff;  // effective atomic number
194                                                << 
195     const G4Isotope* fIsotope;                 << 
196                                                   185     
197     G4double pnBlackTrackEnergy;  // the kinet    186     G4double pnBlackTrackEnergy;  // the kinetic energy available for
198                                   // proton/ne    187                                   // proton/neutron black track particles
199     G4double dtaBlackTrackEnergy; // the kinet    188     G4double dtaBlackTrackEnergy; // the kinetic energy available for
200                                   // deuteron/    189                                   // deuteron/triton/alpha particles
201     G4double pnBlackTrackEnergyfromAnnihilatio    190     G4double pnBlackTrackEnergyfromAnnihilation;
202                      // kinetic energy availab    191                      // kinetic energy available for proton/neutron black 
203                      // track particles based     192                      // track particles based on baryon annihilation 
204     G4double dtaBlackTrackEnergyfromAnnihilati    193     G4double dtaBlackTrackEnergyfromAnnihilation;
205                      // kinetic energy availab    194                      // kinetic energy available for deuteron/triton/alpha 
206                      // black track particles     195                      // black track particles based on baryon annihilation 
207                                                   196 
208                                                   197 
209 // ************************** member variables    198 // ************************** member variables by ChV *******************
210   // Excitation Energy leading to evaporation     199   // Excitation Energy leading to evaporation or deexcitation.
211      G4double  excitationEnergy;                  200      G4double  excitationEnergy;
212                                                   201      
213   // Momentum, accumulated by absorbing Partic    202   // Momentum, accumulated by absorbing Particles
214      G4ThreeVector momentum;                      203      G4ThreeVector momentum;
215                                                   204      
216   // Fermi Gas model: at present, we assume co    205   // Fermi Gas model: at present, we assume constant nucleon density for all 
217   // nuclei. The radius of a nucleon is taken     206   // nuclei. The radius of a nucleon is taken to be 1 fm.
218   // see for example S.Fl"ugge, Encyclopedia o    207   // see for example S.Fl"ugge, Encyclopedia of Physics, Vol XXXIX, 
219   // Structure of Atomic Nuclei (Berlin-Gottin    208   // Structure of Atomic Nuclei (Berlin-Gottingen-Heidelberg, 1957) page 426.
220                                                   209 
221   // maximum momentum possible from fermi gas     210   // maximum momentum possible from fermi gas model:
222      G4double fermiMomentum;                      211      G4double fermiMomentum; 
223      G4double theTemp; // temperature             212      G4double theTemp; // temperature
224 // ****************************** end ChV ****    213 // ****************************** end ChV ******************************
225                                                   214 
226  };                                               215  };
227                                                   216  
228 #endif                                            217 #endif
229                                                   218  
230                                                   219