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3 ] [ 10.5 ] [ 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/electromagnetic/lowenergy/src/G4hICRU49Nuclear.cc (Version 11.3.0) and /processes/electromagnetic/lowenergy/src/G4hICRU49Nuclear.cc (Version 9.2.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 //                                                 26 //
 27 // -------------------------------------------     27 // -------------------------------------------------------------------
 28 //                                                 28 //
 29 // GEANT4 Class file                               29 // GEANT4 Class file
 30 //                                                 30 //
 31 //                                                 31 //
 32 // File name:     G4hICRU49Nuclear                 32 // File name:     G4hICRU49Nuclear
 33 //                                                 33 //
 34 // Author:        V.Ivanchenko (Vladimir.Ivanc     34 // Author:        V.Ivanchenko (Vladimir.Ivanchenko@cern.ch)
 35 //                                                 35 // 
 36 // Creation date: 20 July 2000                     36 // Creation date: 20 July 2000
 37 //                                                 37 //
 38 // Modifications:                                  38 // Modifications: 
 39 // 20/07/2000  V.Ivanchenko First implementati     39 // 20/07/2000  V.Ivanchenko First implementation
 40 // 10/05/2001  V.Ivanchenko Clean up againist      40 // 10/05/2001  V.Ivanchenko Clean up againist Linux compilation with -Wall
 41 //                                                 41 //
 42 // Class Description:                              42 // Class Description: 
 43 //                                                 43 //
 44 // Nuclear stopping power parametrised accordi     44 // Nuclear stopping power parametrised according to
 45 // ICRU Report N49, 1993. Moliere model.           45 // ICRU Report N49, 1993. Moliere model.
 46 // G.Moliere "Theorie der Streuung schneller g     46 // G.Moliere "Theorie der Streuung schneller geladener Teilchen I;
 47 // Einzelstreuungam abbgeschirmten Coulomb-Fel     47 // Einzelstreuungam abbgeschirmten Coulomb-Feld" Z. f. Naturforsch, A2,
 48 // 133 (1947).                                     48 // 133 (1947).
 49 //                                                 49 //
 50 // Class Description: End                          50 // Class Description: End 
 51 //                                                 51 //
 52 // -------------------------------------------     52 // -------------------------------------------------------------------
 53 //                                                 53 //
 54 //....oooOO0OOooo........oooOO0OOooo........oo     54 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
 55                                                    55 
 56 #include "G4hICRU49Nuclear.hh"                     56 #include "G4hICRU49Nuclear.hh"
 57                                                << 
 58 #include "globals.hh"                          << 
 59 #include "G4SystemOfUnits.hh"                  << 
 60 #include "G4UnitsTable.hh"                         57 #include "G4UnitsTable.hh"
                                                   >>  58 #include "globals.hh"
 61 #include "Randomize.hh"                            59 #include "Randomize.hh"
 62                                                    60 
 63 //....oooOO0OOooo........oooOO0OOooo........oo     61 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
 64                                                    62 
 65 G4hICRU49Nuclear::G4hICRU49Nuclear():G4VhNucle     63 G4hICRU49Nuclear::G4hICRU49Nuclear():G4VhNuclearStoppingPower()
 66 {;}                                                64 {;}
 67                                                    65 
 68 //....oooOO0OOooo........oooOO0OOooo........oo     66 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
 69                                                    67 
 70 G4hICRU49Nuclear::~G4hICRU49Nuclear()              68 G4hICRU49Nuclear::~G4hICRU49Nuclear() 
 71 {;}                                                69 {;}
 72                                                    70 
 73 //....oooOO0OOooo........oooOO0OOooo........oo     71 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
 74                                                    72 
 75 G4double G4hICRU49Nuclear::NuclearStoppingPowe     73 G4double G4hICRU49Nuclear::NuclearStoppingPower(G4double kineticEnergy,
 76                                 G4double z1, G     74                                 G4double z1, G4double z2, 
 77                                 G4double m1, G <<  75                                 G4double m1, G4double m2) const
 78 {                                                  76 {  
 79   G4double energy = kineticEnergy/keV ;  // en     77   G4double energy = kineticEnergy/keV ;  // energy in keV
 80   G4double ionloss = 0.0;                          78   G4double ionloss = 0.0;
 81                                                    79   
 82   G4double rm = (m1 + m2Local) * ( std::pow(z1 <<  80   G4double rm = (m1 + m2) * ( std::pow(z1, .23) + std::pow(z2, .23) ) ;
 83                                                    81 
 84   G4double er = 32.536 * m2Local * energy / (  <<  82   G4double er = 32.536 * m2 * energy / ( z1 * z2 * rm ) ;  // reduced energy
 85                                                    83 
 86   static const G4double a[104][2] = {          <<  84   static G4double a[104][2] = {
 87   { 1.0E+8, 5.831E-8},                             85   { 1.0E+8, 5.831E-8},
 88   { 8.0E+7, 7.288E-8},                             86   { 8.0E+7, 7.288E-8},
 89   { 6.0E+7, 9.719E-8},                             87   { 6.0E+7, 9.719E-8},
 90   { 5.0E+7, 1.166E-7},                             88   { 5.0E+7, 1.166E-7},
 91   { 4.0E+7, 1.457E-7},                             89   { 4.0E+7, 1.457E-7},
 92   { 3.0E+7, 1.942E-7},                             90   { 3.0E+7, 1.942E-7},
 93   { 2.0E+7, 2.916E-7},                             91   { 2.0E+7, 2.916E-7},
 94   { 1.5E+7, 3.887E-7},                             92   { 1.5E+7, 3.887E-7},
 95                                                    93 
 96   { 1.0E+7, 5.833E-7},                             94   { 1.0E+7, 5.833E-7},
 97   { 8.0E+6, 7.287E-7},                             95   { 8.0E+6, 7.287E-7},
 98   { 6.0E+6, 9.712E-7},                             96   { 6.0E+6, 9.712E-7},
 99   { 5.0E+6, 1.166E-6},                             97   { 5.0E+6, 1.166E-6},
100   { 4.0E+6, 1.457E-6},                             98   { 4.0E+6, 1.457E-6},
101   { 3.0E+6, 1.941E-6},                             99   { 3.0E+6, 1.941E-6},
102   { 2.0E+6, 2.911E-6},                            100   { 2.0E+6, 2.911E-6},
103   { 1.5E+6, 3.878E-6},                            101   { 1.5E+6, 3.878E-6},
104                                                   102 
105   { 1.0E+6, 5.810E-6},                            103   { 1.0E+6, 5.810E-6},
106   { 8.0E+5, 7.262E-6},                            104   { 8.0E+5, 7.262E-6},
107   { 6.0E+5, 9.663E-6},                            105   { 6.0E+5, 9.663E-6},
108   { 5.0E+5, 1.157E-5},                            106   { 5.0E+5, 1.157E-5},
109   { 4.0E+5, 1.442E-5},                            107   { 4.0E+5, 1.442E-5},
110   { 3.0E+5, 1.913E-5},                            108   { 3.0E+5, 1.913E-5},
111   { 2.0E+5, 2.845E-5},                            109   { 2.0E+5, 2.845E-5},
112   { 1.5E+5, 3.762E-5},                            110   { 1.5E+5, 3.762E-5},
113                                                   111 
114   { 1.0E+5, 5.554E-5},                            112   { 1.0E+5, 5.554E-5},
115   { 8.0E+4, 6.866E-5},                            113   { 8.0E+4, 6.866E-5},
116   { 6.0E+4, 9.020E-5},                            114   { 6.0E+4, 9.020E-5},
117   { 5.0E+4, 1.070E-4},                            115   { 5.0E+4, 1.070E-4},
118   { 4.0E+4, 1.319E-4},                            116   { 4.0E+4, 1.319E-4},
119   { 3.0E+4, 1.722E-4},                            117   { 3.0E+4, 1.722E-4},
120   { 2.0E+4, 2.499E-4},                            118   { 2.0E+4, 2.499E-4},
121   { 1.5E+4, 3.248E-4},                            119   { 1.5E+4, 3.248E-4},
122                                                   120 
123   { 1.0E+4, 4.688E-4},                            121   { 1.0E+4, 4.688E-4},
124   { 8.0E+3, 5.729E-4},                            122   { 8.0E+3, 5.729E-4},
125   { 6.0E+3, 7.411E-4},                            123   { 6.0E+3, 7.411E-4},
126   { 5.0E+3, 8.718E-4},                            124   { 5.0E+3, 8.718E-4},
127   { 4.0E+3, 1.063E-3},                            125   { 4.0E+3, 1.063E-3},
128   { 3.0E+3, 1.370E-3},                            126   { 3.0E+3, 1.370E-3},
129   { 2.0E+3, 1.955E-3},                            127   { 2.0E+3, 1.955E-3},
130   { 1.5E+3, 2.511E-3},                            128   { 1.5E+3, 2.511E-3},
131                                                   129 
132   { 1.0E+3, 3.563E-3},                            130   { 1.0E+3, 3.563E-3},
133   { 8.0E+2, 4.314E-3},                            131   { 8.0E+2, 4.314E-3},
134   { 6.0E+2, 5.511E-3},                            132   { 6.0E+2, 5.511E-3},
135   { 5.0E+2, 6.430E-3},                            133   { 5.0E+2, 6.430E-3},
136   { 4.0E+2, 7.756E-3},                            134   { 4.0E+2, 7.756E-3},
137   { 3.0E+2, 9.855E-3},                            135   { 3.0E+2, 9.855E-3},
138   { 2.0E+2, 1.375E-2},                            136   { 2.0E+2, 1.375E-2},
139   { 1.5E+2, 1.736E-2},                            137   { 1.5E+2, 1.736E-2},
140                                                   138 
141   { 1.0E+2, 2.395E-2},                            139   { 1.0E+2, 2.395E-2},
142   { 8.0E+1, 2.850E-2},                            140   { 8.0E+1, 2.850E-2},
143   { 6.0E+1, 3.552E-2},                            141   { 6.0E+1, 3.552E-2},
144   { 5.0E+1, 4.073E-2},                            142   { 5.0E+1, 4.073E-2},
145   { 4.0E+1, 4.802E-2},                            143   { 4.0E+1, 4.802E-2},
146   { 3.0E+1, 5.904E-2},                            144   { 3.0E+1, 5.904E-2},
147   { 1.5E+1, 9.426E-2},                            145   { 1.5E+1, 9.426E-2},
148                                                   146 
149   { 1.0E+1, 1.210E-1},                            147   { 1.0E+1, 1.210E-1},
150   { 8.0E+0, 1.377E-1},                            148   { 8.0E+0, 1.377E-1},
151   { 6.0E+0, 1.611E-1},                            149   { 6.0E+0, 1.611E-1},
152   { 5.0E+0, 1.768E-1},                            150   { 5.0E+0, 1.768E-1},
153   { 4.0E+0, 1.968E-1},                            151   { 4.0E+0, 1.968E-1},
154   { 3.0E+0, 2.235E-1},                            152   { 3.0E+0, 2.235E-1},
155   { 2.0E+0, 2.613E-1},                            153   { 2.0E+0, 2.613E-1},
156   { 1.5E+0, 2.871E-1},                            154   { 1.5E+0, 2.871E-1},
157                                                   155 
158   { 1.0E+0, 3.199E-1},                            156   { 1.0E+0, 3.199E-1},
159   { 8.0E-1, 3.354E-1},                            157   { 8.0E-1, 3.354E-1},
160   { 6.0E-1, 3.523E-1},                            158   { 6.0E-1, 3.523E-1},
161   { 5.0E-1, 3.609E-1},                            159   { 5.0E-1, 3.609E-1},
162   { 4.0E-1, 3.693E-1},                            160   { 4.0E-1, 3.693E-1},
163   { 3.0E-1, 3.766E-1},                            161   { 3.0E-1, 3.766E-1},
164   { 2.0E-1, 3.803E-1},                            162   { 2.0E-1, 3.803E-1},
165   { 1.5E-1, 3.788E-1},                            163   { 1.5E-1, 3.788E-1},
166                                                   164 
167   { 1.0E-1, 3.711E-1},                            165   { 1.0E-1, 3.711E-1},
168   { 8.0E-2, 3.644E-1},                            166   { 8.0E-2, 3.644E-1},
169   { 6.0E-2, 3.530E-1},                            167   { 6.0E-2, 3.530E-1},
170   { 5.0E-2, 3.444E-1},                            168   { 5.0E-2, 3.444E-1},
171   { 4.0E-2, 3.323E-1},                            169   { 4.0E-2, 3.323E-1},
172   { 3.0E-2, 3.144E-1},                            170   { 3.0E-2, 3.144E-1},
173   { 2.0E-2, 2.854E-1},                            171   { 2.0E-2, 2.854E-1},
174   { 1.5E-2, 2.629E-1},                            172   { 1.5E-2, 2.629E-1},
175                                                   173 
176   { 1.0E-2, 2.298E-1},                            174   { 1.0E-2, 2.298E-1},
177   { 8.0E-3, 2.115E-1},                            175   { 8.0E-3, 2.115E-1},
178   { 6.0E-3, 1.883E-1},                            176   { 6.0E-3, 1.883E-1},
179   { 5.0E-3, 1.741E-1},                            177   { 5.0E-3, 1.741E-1},
180   { 4.0E-3, 1.574E-1},                            178   { 4.0E-3, 1.574E-1},
181   { 3.0E-3, 1.372E-1},                            179   { 3.0E-3, 1.372E-1},
182   { 2.0E-3, 1.116E-1},                            180   { 2.0E-3, 1.116E-1},
183   { 1.5E-3, 9.559E-2},                            181   { 1.5E-3, 9.559E-2},
184                                                   182 
185   { 1.0E-3, 7.601E-2},                            183   { 1.0E-3, 7.601E-2},
186   { 8.0E-4, 6.668E-2},                            184   { 8.0E-4, 6.668E-2},
187   { 6.0E-4, 5.605E-2},                            185   { 6.0E-4, 5.605E-2},
188   { 5.0E-4, 5.008E-2},                            186   { 5.0E-4, 5.008E-2},
189   { 4.0E-4, 4.352E-2},                            187   { 4.0E-4, 4.352E-2},
190   { 3.0E-4, 3.617E-2},                            188   { 3.0E-4, 3.617E-2},
191   { 2.0E-4, 2.768E-2},                            189   { 2.0E-4, 2.768E-2},
192   { 1.5E-4, 2.279E-2},                            190   { 1.5E-4, 2.279E-2},
193                                                   191 
194   { 1.0E-4, 1.723E-2},                            192   { 1.0E-4, 1.723E-2},
195   { 8.0E-5, 1.473E-2},                            193   { 8.0E-5, 1.473E-2},
196   { 6.0E-5, 1.200E-2},                            194   { 6.0E-5, 1.200E-2},
197   { 5.0E-5, 1.052E-2},                            195   { 5.0E-5, 1.052E-2},
198   { 4.0E-5, 8.950E-3},                            196   { 4.0E-5, 8.950E-3},
199   { 3.0E-5, 7.246E-3},                            197   { 3.0E-5, 7.246E-3},
200   { 2.0E-5, 5.358E-3},                            198   { 2.0E-5, 5.358E-3},
201   { 1.5E-5, 4.313E-3},                            199   { 1.5E-5, 4.313E-3},
202   { 0.0, 3.166E-3}                                200   { 0.0, 3.166E-3}
203   };                                              201   };
204                                                   202   
205   for (G4int i=1; i<104; i++)                     203   for (G4int i=1; i<104; i++)
206     {                                             204     {
207       if (er > a[i][0]) {                         205       if (er > a[i][0]) {
208   ionloss =                                       206   ionloss = 
209          (a[i][1]-a[i-1][1])*(er-a[i-1][0])/(a    207          (a[i][1]-a[i-1][1])*(er-a[i-1][0])/(a[i][0]-a[i-1][0])+a[i-1][1];   
210   break;                                          208   break;
211       }                                           209       }
212     }                                             210     }
213                                                   211 
214   // Stragling                                    212   // Stragling
215   if(lossFlucFlag) {                              213   if(lossFlucFlag) {
216     G4double sig = 4.0 * m1 * m2Local / ((m1 + << 214     G4double sig = 4.0 * m1 * m2 / ((m1 + m2)*(m1 + m2)*
217                   (4.0 + 0.197*std::pow(er,-1.    215                   (4.0 + 0.197*std::pow(er,-1.6991)+6.584*std::pow(er,-1.0494))) ;
218                                                   216 
219     ionloss *= G4RandGauss::shoot(1.0,sig) ;      217     ionloss *= G4RandGauss::shoot(1.0,sig) ;
220   }                                               218   } 
221                                                   219    
222   ionloss *= 8.462 * z1 * z2 * m1 / rm ; // Re    220   ionloss *= 8.462 * z1 * z2 * m1 / rm ; // Return to [ev/(10^15 atoms/cm^2]
223                                                   221 
224   if ( ionloss < 0.0) ionloss = 0.0 ;             222   if ( ionloss < 0.0) ionloss = 0.0 ;
225                                                   223   
226   return ionloss;                                 224   return ionloss;
227 }                                                 225 }
228                                                   226 
229                                                   227 
230                                                   228 
231                                                   229 
232                                                   230 
233                                                   231