source: trunk/source/processes/electromagnetic/lowenergy/src/G4FinalStateElasticScreenedRutherford.cc@ 1057

Last change on this file since 1057 was 1055, checked in by garnier, 17 years ago

maj sur la beta de geant 4.9.3

File size: 5.6 KB
Line 
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// $Id: G4FinalStateElasticScreenedRutherford.cc,v 1.5 2009/05/02 15:07:47 sincerti Exp $
27// GEANT4 tag $Name: geant4-09-03-beta-cand-01 $
28
29#include "G4FinalStateElasticScreenedRutherford.hh"
30
31//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32
33G4FinalStateElasticScreenedRutherford::G4FinalStateElasticScreenedRutherford()
34{
35 lowEnergyLimit = 200 * eV;
36 highEnergyLimit = 10 * MeV;
37
38 G4cout << G4endl;
39 G4cout << "*******************************************************************************" << G4endl;
40 G4cout << "*******************************************************************************" << G4endl;
41 G4cout << " The class G4FinalStateElasticScreenedRutherford is NOT SUPPORTED ANYMORE. " << G4endl;
42 G4cout << " It will be REMOVED with the next major release of Geant4. " << G4endl;
43 G4cout << " Please consult: https://twiki.cern.ch/twiki/bin/view/Geant4/LoweProcesses" << G4endl;
44 G4cout << "*******************************************************************************" << G4endl;
45 G4cout << "*******************************************************************************" << G4endl;
46 G4cout << G4endl;
47}
48
49//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
50
51G4FinalStateElasticScreenedRutherford::~G4FinalStateElasticScreenedRutherford()
52{}
53
54//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
55
56const G4FinalStateProduct& G4FinalStateElasticScreenedRutherford::GenerateFinalState(const G4Track& track, const G4Step& )
57{
58 product.Clear();
59
60 G4double k = track.GetDynamicParticle()->GetKineticEnergy();
61
62 const G4int z = 10;
63
64 G4double cosTheta = RandomizeCosTheta(k, z);
65
66 G4double phi = 2. * pi * G4UniformRand();
67
68 G4ThreeVector zVers = track.GetDynamicParticle()->GetMomentumDirection();
69 G4ThreeVector xVers = zVers.orthogonal();
70 G4ThreeVector yVers = zVers.cross(xVers);
71
72 G4double xDir = std::sqrt(1. - cosTheta*cosTheta);
73 G4double yDir = xDir;
74 xDir *= std::cos(phi);
75 yDir *= std::sin(phi);
76
77 G4ThreeVector zPrimeVers((xDir*xVers + yDir*yVers + cosTheta*zVers));
78
79 product.ModifyPrimaryParticle(zPrimeVers,k);
80
81 return product;
82}
83
84//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
85
86G4double G4FinalStateElasticScreenedRutherford::RandomizeCosTheta(G4double k, G4int z) const
87{
88
89 // d sigma_el sigma_Ruth(K)
90 // ------------ (K) ~ -----------------------------
91 // d Omega (1 + 2 n(K) - cos(theta))^2
92 //
93 // We extract cos(theta) distributed as (1 + 2 n(K) - cos(theta))^-2
94 //
95 // Maximum is for theta=0: 1/(4 n(K)^2) (When n(K) is positive, that is always satisfied within the validity of the process)
96 //
97 // Phys. Med. Biol. 45 (2000) 3171-3194
98
99 G4double n = ScreeningFactor(k, z);
100
101 G4double oneOverMax = (4. * n*n);
102
103 G4double cosTheta;
104 G4double fCosTheta;
105
106 do
107 {
108 cosTheta = 2. * G4UniformRand() - 1.;
109 fCosTheta = (1 + 2.*n - cosTheta);
110 fCosTheta = oneOverMax / (fCosTheta*fCosTheta);
111 }
112 while (fCosTheta < G4UniformRand());
113
114 return cosTheta;
115}
116
117//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
118
119G4double G4FinalStateElasticScreenedRutherford::ScreeningFactor(G4double k, G4int z) const
120{
121 //
122 // alpha_1 + beta_1 ln(K/eV) constK Z^(2/3)
123 // n(T) = -------------------------- -----------------
124 // K/(m_e c^2) 2 + K/(m_e c^2)
125 //
126 // Where K is the electron non-relativistic kinetic energy
127 //
128 // n(T) > 0 for T < ~ 400 MeV
129 //
130 // Nucl. Instr. Meth. 155 (1978) 145-156
131
132 const G4double alpha_1 = 1.64;
133 const G4double beta_1 = -0.0825;
134 const G4double constK = 1.7E-5;
135
136 G4double numerator = (alpha_1 + beta_1 * std::log(k/eV)) * constK * std::pow(static_cast<double>(z), 2./3.);
137
138 k /= electron_mass_c2;
139
140 G4double denominator;
141 denominator = k * (2 + k);
142
143 G4double result = 0.;
144 if (denominator != 0.)
145 {
146 result = numerator / denominator;
147 }
148 else
149 {
150 G4Exception("G4FinalStateElasticScreenedRutherford::ScreeningFactor - denominator = 0");
151 }
152 return result;
153}
Note: See TracBrowser for help on using the repository browser.