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: G4hZiegler1977Nuclear |
---|
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 | // |
---|
41 | // Class Description: |
---|
42 | // |
---|
43 | // Nuclear stopping power parametrised according to |
---|
44 | // J.F.Ziegler, Helium Stopping Powers and |
---|
45 | // Ranges in All Elemental Matter, Vol.4, Pergamon Press, 1977 |
---|
46 | // |
---|
47 | // Class Description: End |
---|
48 | // |
---|
49 | // ------------------------------------------------------------------- |
---|
50 | // |
---|
51 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
52 | |
---|
53 | #include "G4hZiegler1977Nuclear.hh" |
---|
54 | #include "G4UnitsTable.hh" |
---|
55 | #include "globals.hh" |
---|
56 | #include "Randomize.hh" |
---|
57 | |
---|
58 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
59 | |
---|
60 | G4hZiegler1977Nuclear::G4hZiegler1977Nuclear():G4VhNuclearStoppingPower() |
---|
61 | {;} |
---|
62 | |
---|
63 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
64 | |
---|
65 | G4hZiegler1977Nuclear::~G4hZiegler1977Nuclear() |
---|
66 | {;} |
---|
67 | |
---|
68 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
69 | |
---|
70 | G4double G4hZiegler1977Nuclear::NuclearStoppingPower(G4double kineticEnergy, |
---|
71 | G4double z1, G4double z2, |
---|
72 | G4double m1, G4double m2) const |
---|
73 | { |
---|
74 | G4double energy = kineticEnergy/keV ; // energy in keV |
---|
75 | G4double ionloss ; |
---|
76 | |
---|
77 | G4double rm = (m1 + m2) * std::sqrt( std::pow(z1, 0.667) + std::pow(z2, 0.667) ) ; |
---|
78 | |
---|
79 | G4double er = 32.53 * m2 * energy / ( z1 * z2 * rm ) ; // reduced energy |
---|
80 | |
---|
81 | if ( er < 0.01 ) { |
---|
82 | ionloss = std::sqrt(er) * 1.593 ; |
---|
83 | |
---|
84 | } else if ( er < 10.0 ) { |
---|
85 | ionloss = 1.7 * std::sqrt(er) * std::log(er + std::exp(1.0)) / |
---|
86 | (1.0 + 6.8 * er + 3.4 * std::pow(er, 1.5)) ; |
---|
87 | |
---|
88 | } else { |
---|
89 | ionloss = std::log(0.47 * er) * 0.5 / er ; |
---|
90 | } |
---|
91 | |
---|
92 | // Stragling |
---|
93 | if(lossFlucFlag) { |
---|
94 | G4double sig = 4.0 * m1 * m2 * std::sqrt( (std::pow(z1, 0.23) + std::pow(z2, 0.23)) / |
---|
95 | (std::pow(z1, 0.667) + std::pow(z2, 0.667)) ) |
---|
96 | / ((m1 +m2)*(m1 + m2)* |
---|
97 | (4.0 + 0.197*std::pow(er,-1.6991)+6.584*std::pow(er,-1.0494))) ; |
---|
98 | |
---|
99 | ionloss *= G4RandGauss::shoot(1.0,sig) ; |
---|
100 | } |
---|
101 | |
---|
102 | ionloss *= 8.462 * z1 * z2 * m1 / rm ; // Return to [ev/(10^15 atoms/cm^2] |
---|
103 | |
---|
104 | if ( ionloss < 0.0) ionloss = 0.0 ; |
---|
105 | |
---|
106 | return ionloss; |
---|
107 | } |
---|
108 | |
---|
109 | |
---|
110 | |
---|