1 | // |
---|
2 | // ******************************************************************** |
---|
3 | // * License and Disclaimer * |
---|
4 | // * * |
---|
5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
7 | // * conditions of the Geant4 Software License, included in the file * |
---|
8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
9 | // * include a list of copyright holders. * |
---|
10 | // * * |
---|
11 | // * Neither the authors of this software system, nor their employing * |
---|
12 | // * institutes,nor the agencies providing financial support for this * |
---|
13 | // * work make any representation or warranty, express or implied, * |
---|
14 | // * regarding this software system or assume any liability for its * |
---|
15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
16 | // * for the full disclaimer and the limitation of liability. * |
---|
17 | // * * |
---|
18 | // * This code implementation is the result of the scientific and * |
---|
19 | // * technical work of the GEANT4 collaboration. * |
---|
20 | // * By using, copying, modifying or distributing the software (or * |
---|
21 | // * any work based on the software) you agree to acknowledge its * |
---|
22 | // * use in resulting scientific publications, and indicate your * |
---|
23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
24 | // ******************************************************************** |
---|
25 | // |
---|
26 | // |
---|
27 | // ------------------------------------------------------------------- |
---|
28 | // |
---|
29 | // GEANT4 Class file |
---|
30 | // |
---|
31 | // |
---|
32 | // File name: G4hICRU49Nuclear |
---|
33 | // |
---|
34 | // Author: V.Ivanchenko (Vladimir.Ivanchenko@cern.ch) |
---|
35 | // |
---|
36 | // Creation date: 20 July 2000 |
---|
37 | // |
---|
38 | // Modifications: |
---|
39 | // 20/07/2000 V.Ivanchenko First implementation |
---|
40 | // 10/05/2001 V.Ivanchenko Clean up againist Linux compilation with -Wall |
---|
41 | // |
---|
42 | // Class Description: |
---|
43 | // |
---|
44 | // Nuclear stopping power parametrised according to |
---|
45 | // ICRU Report N49, 1993. Moliere model. |
---|
46 | // G.Moliere "Theorie der Streuung schneller geladener Teilchen I; |
---|
47 | // Einzelstreuungam abbgeschirmten Coulomb-Feld" Z. f. Naturforsch, A2, |
---|
48 | // 133 (1947). |
---|
49 | // |
---|
50 | // Class Description: End |
---|
51 | // |
---|
52 | // ------------------------------------------------------------------- |
---|
53 | // |
---|
54 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
55 | |
---|
56 | #include "G4hICRU49Nuclear.hh" |
---|
57 | #include "G4UnitsTable.hh" |
---|
58 | #include "globals.hh" |
---|
59 | #include "Randomize.hh" |
---|
60 | |
---|
61 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
62 | |
---|
63 | G4hICRU49Nuclear::G4hICRU49Nuclear():G4VhNuclearStoppingPower() |
---|
64 | {;} |
---|
65 | |
---|
66 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
67 | |
---|
68 | G4hICRU49Nuclear::~G4hICRU49Nuclear() |
---|
69 | {;} |
---|
70 | |
---|
71 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
72 | |
---|
73 | G4double G4hICRU49Nuclear::NuclearStoppingPower(G4double kineticEnergy, |
---|
74 | G4double z1, G4double z2, |
---|
75 | G4double m1, G4double m2) const |
---|
76 | { |
---|
77 | G4double energy = kineticEnergy/keV ; // energy in keV |
---|
78 | G4double ionloss = 0.0; |
---|
79 | |
---|
80 | G4double rm = (m1 + m2) * ( std::pow(z1, .23) + std::pow(z2, .23) ) ; |
---|
81 | |
---|
82 | G4double er = 32.536 * m2 * energy / ( z1 * z2 * rm ) ; // reduced energy |
---|
83 | |
---|
84 | static G4double a[104][2] = { |
---|
85 | { 1.0E+8, 5.831E-8}, |
---|
86 | { 8.0E+7, 7.288E-8}, |
---|
87 | { 6.0E+7, 9.719E-8}, |
---|
88 | { 5.0E+7, 1.166E-7}, |
---|
89 | { 4.0E+7, 1.457E-7}, |
---|
90 | { 3.0E+7, 1.942E-7}, |
---|
91 | { 2.0E+7, 2.916E-7}, |
---|
92 | { 1.5E+7, 3.887E-7}, |
---|
93 | |
---|
94 | { 1.0E+7, 5.833E-7}, |
---|
95 | { 8.0E+6, 7.287E-7}, |
---|
96 | { 6.0E+6, 9.712E-7}, |
---|
97 | { 5.0E+6, 1.166E-6}, |
---|
98 | { 4.0E+6, 1.457E-6}, |
---|
99 | { 3.0E+6, 1.941E-6}, |
---|
100 | { 2.0E+6, 2.911E-6}, |
---|
101 | { 1.5E+6, 3.878E-6}, |
---|
102 | |
---|
103 | { 1.0E+6, 5.810E-6}, |
---|
104 | { 8.0E+5, 7.262E-6}, |
---|
105 | { 6.0E+5, 9.663E-6}, |
---|
106 | { 5.0E+5, 1.157E-5}, |
---|
107 | { 4.0E+5, 1.442E-5}, |
---|
108 | { 3.0E+5, 1.913E-5}, |
---|
109 | { 2.0E+5, 2.845E-5}, |
---|
110 | { 1.5E+5, 3.762E-5}, |
---|
111 | |
---|
112 | { 1.0E+5, 5.554E-5}, |
---|
113 | { 8.0E+4, 6.866E-5}, |
---|
114 | { 6.0E+4, 9.020E-5}, |
---|
115 | { 5.0E+4, 1.070E-4}, |
---|
116 | { 4.0E+4, 1.319E-4}, |
---|
117 | { 3.0E+4, 1.722E-4}, |
---|
118 | { 2.0E+4, 2.499E-4}, |
---|
119 | { 1.5E+4, 3.248E-4}, |
---|
120 | |
---|
121 | { 1.0E+4, 4.688E-4}, |
---|
122 | { 8.0E+3, 5.729E-4}, |
---|
123 | { 6.0E+3, 7.411E-4}, |
---|
124 | { 5.0E+3, 8.718E-4}, |
---|
125 | { 4.0E+3, 1.063E-3}, |
---|
126 | { 3.0E+3, 1.370E-3}, |
---|
127 | { 2.0E+3, 1.955E-3}, |
---|
128 | { 1.5E+3, 2.511E-3}, |
---|
129 | |
---|
130 | { 1.0E+3, 3.563E-3}, |
---|
131 | { 8.0E+2, 4.314E-3}, |
---|
132 | { 6.0E+2, 5.511E-3}, |
---|
133 | { 5.0E+2, 6.430E-3}, |
---|
134 | { 4.0E+2, 7.756E-3}, |
---|
135 | { 3.0E+2, 9.855E-3}, |
---|
136 | { 2.0E+2, 1.375E-2}, |
---|
137 | { 1.5E+2, 1.736E-2}, |
---|
138 | |
---|
139 | { 1.0E+2, 2.395E-2}, |
---|
140 | { 8.0E+1, 2.850E-2}, |
---|
141 | { 6.0E+1, 3.552E-2}, |
---|
142 | { 5.0E+1, 4.073E-2}, |
---|
143 | { 4.0E+1, 4.802E-2}, |
---|
144 | { 3.0E+1, 5.904E-2}, |
---|
145 | { 1.5E+1, 9.426E-2}, |
---|
146 | |
---|
147 | { 1.0E+1, 1.210E-1}, |
---|
148 | { 8.0E+0, 1.377E-1}, |
---|
149 | { 6.0E+0, 1.611E-1}, |
---|
150 | { 5.0E+0, 1.768E-1}, |
---|
151 | { 4.0E+0, 1.968E-1}, |
---|
152 | { 3.0E+0, 2.235E-1}, |
---|
153 | { 2.0E+0, 2.613E-1}, |
---|
154 | { 1.5E+0, 2.871E-1}, |
---|
155 | |
---|
156 | { 1.0E+0, 3.199E-1}, |
---|
157 | { 8.0E-1, 3.354E-1}, |
---|
158 | { 6.0E-1, 3.523E-1}, |
---|
159 | { 5.0E-1, 3.609E-1}, |
---|
160 | { 4.0E-1, 3.693E-1}, |
---|
161 | { 3.0E-1, 3.766E-1}, |
---|
162 | { 2.0E-1, 3.803E-1}, |
---|
163 | { 1.5E-1, 3.788E-1}, |
---|
164 | |
---|
165 | { 1.0E-1, 3.711E-1}, |
---|
166 | { 8.0E-2, 3.644E-1}, |
---|
167 | { 6.0E-2, 3.530E-1}, |
---|
168 | { 5.0E-2, 3.444E-1}, |
---|
169 | { 4.0E-2, 3.323E-1}, |
---|
170 | { 3.0E-2, 3.144E-1}, |
---|
171 | { 2.0E-2, 2.854E-1}, |
---|
172 | { 1.5E-2, 2.629E-1}, |
---|
173 | |
---|
174 | { 1.0E-2, 2.298E-1}, |
---|
175 | { 8.0E-3, 2.115E-1}, |
---|
176 | { 6.0E-3, 1.883E-1}, |
---|
177 | { 5.0E-3, 1.741E-1}, |
---|
178 | { 4.0E-3, 1.574E-1}, |
---|
179 | { 3.0E-3, 1.372E-1}, |
---|
180 | { 2.0E-3, 1.116E-1}, |
---|
181 | { 1.5E-3, 9.559E-2}, |
---|
182 | |
---|
183 | { 1.0E-3, 7.601E-2}, |
---|
184 | { 8.0E-4, 6.668E-2}, |
---|
185 | { 6.0E-4, 5.605E-2}, |
---|
186 | { 5.0E-4, 5.008E-2}, |
---|
187 | { 4.0E-4, 4.352E-2}, |
---|
188 | { 3.0E-4, 3.617E-2}, |
---|
189 | { 2.0E-4, 2.768E-2}, |
---|
190 | { 1.5E-4, 2.279E-2}, |
---|
191 | |
---|
192 | { 1.0E-4, 1.723E-2}, |
---|
193 | { 8.0E-5, 1.473E-2}, |
---|
194 | { 6.0E-5, 1.200E-2}, |
---|
195 | { 5.0E-5, 1.052E-2}, |
---|
196 | { 4.0E-5, 8.950E-3}, |
---|
197 | { 3.0E-5, 7.246E-3}, |
---|
198 | { 2.0E-5, 5.358E-3}, |
---|
199 | { 1.5E-5, 4.313E-3}, |
---|
200 | { 0.0, 3.166E-3} |
---|
201 | }; |
---|
202 | |
---|
203 | for (G4int i=1; i<104; i++) |
---|
204 | { |
---|
205 | if (er > a[i][0]) { |
---|
206 | ionloss = |
---|
207 | (a[i][1]-a[i-1][1])*(er-a[i-1][0])/(a[i][0]-a[i-1][0])+a[i-1][1]; |
---|
208 | break; |
---|
209 | } |
---|
210 | } |
---|
211 | |
---|
212 | // Stragling |
---|
213 | if(lossFlucFlag) { |
---|
214 | G4double sig = 4.0 * m1 * m2 / ((m1 + m2)*(m1 + m2)* |
---|
215 | (4.0 + 0.197*std::pow(er,-1.6991)+6.584*std::pow(er,-1.0494))) ; |
---|
216 | |
---|
217 | ionloss *= G4RandGauss::shoot(1.0,sig) ; |
---|
218 | } |
---|
219 | |
---|
220 | ionloss *= 8.462 * z1 * z2 * m1 / rm ; // Return to [ev/(10^15 atoms/cm^2] |
---|
221 | |
---|
222 | if ( ionloss < 0.0) ionloss = 0.0 ; |
---|
223 | |
---|
224 | return ionloss; |
---|
225 | } |
---|
226 | |
---|
227 | |
---|
228 | |
---|
229 | |
---|
230 | |
---|