source: trunk/source/processes/electromagnetic/lowenergy/src/G4CrossSectionExcitationEmfietzoglouPartial.cc@ 900

Last change on this file since 900 was 819, checked in by garnier, 18 years ago

import all except CVS

File size: 5.7 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//
27// $Id: G4CrossSectionExcitationEmfietzoglouPartial.cc,v 1.2 2007/12/10 16:31:26 gunter Exp $
28// GEANT4 tag $Name: $
29//
30// Contact Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
31//
32// Reference: TNS Geant4-DNA paper
33// Reference for implementation model: NIM. 155, pp. 145-156, 1978
34
35// History:
36// -----------
37// Date Name Modification
38// 28 Apr 2007 M.G. Pia Created in compliance with design described in TNS paper
39//
40// -------------------------------------------------------------------
41
42// Class description:
43// Geant4-DNA Cross total cross section for electron elastic scattering in water
44// Reference: TNS Geant4-DNA paper
45// S. Chauvie et al., Geant4 physics processes for microdosimetry simulation:
46// design foundation and implementation of the first set of models,
47// IEEE Trans. Nucl. Sci., vol. 54, no. 6, Dec. 2007.
48// Further documentation available from http://www.ge.infn.it/geant4/dna
49
50// -------------------------------------------------------------------
51
52
53#include "G4CrossSectionExcitationEmfietzoglouPartial.hh"
54#include "G4Track.hh"
55#include "G4DynamicParticle.hh"
56#include "G4ParticleDefinition.hh"
57#include "G4Electron.hh"
58
59#include "Randomize.hh"
60
61#include <deque>
62
63G4CrossSectionExcitationEmfietzoglouPartial::G4CrossSectionExcitationEmfietzoglouPartial()
64{
65
66 nLevels = waterExcitation.NumberOfLevels();
67 //G4cout << "Water excitation energy: number of levels = " << nLevels << G4endl;
68}
69
70
71G4CrossSectionExcitationEmfietzoglouPartial::~G4CrossSectionExcitationEmfietzoglouPartial()
72{ }
73
74G4double G4CrossSectionExcitationEmfietzoglouPartial::CrossSection(G4double t, G4int level)
75{
76 // Aj T
77 // Sigma(T) = ------------- (Bj / T) ln(Cj ---) [1 - Bj / T]^Pj
78 // 2 pi alpha0 R
79 //
80 // Sigma is the macroscopic cross section = N sigma, where N = number of target particles per unit volume
81 // and sigma is the microscopic cross section
82 // T is the incoming electron kinetic energy
83 // alpha0 is the Bohr Radius (Bohr_radius)
84 // Aj, Bj, Cj & Pj are parameters that can be found in Emfietzoglou's papers
85 //
86 //
87 // From Phys. Med. Biol. 48 (2003) 2355-2371, D.Emfietzoglou,
88 // Monte Carlo Simulation of the energy loss of low energy electrons in liquid Water
89
90 // Scaling for macroscopic cross section: number of water moleculs per unit volume
91 // (capra) const G4double sigma0 = (10. / 3.343e22) * cm2;
92 const G4double density = 3.34192e+19 * mm3;
93
94 const G4double aj[]={0.0205, 0.0209, 0.0130, 0.0026, 0.0025};
95 const G4double cj[]={4.9801, 3.3850, 2.8095, 1.9242, 3.4624};
96 const G4double pj[]={0.4757, 0.3483, 0.4443, 0.3429, 0.4379};
97 const G4double r = 13.6 * eV;
98
99 G4double sigma = 0.;
100
101 G4double exc = waterExcitation.ExcitationEnergy(level);
102 // G4cout << "Water excitation energy " << exc/keV << " level = " << level << G4endl;
103
104 if (t >= exc)
105 {
106 G4double excitationSigma = ( aj[level] / (2.*pi*Bohr_radius))
107 * (exc / t)
108 * std::log(cj[level]*(t/r))
109 * std::pow((1.- (exc/t)), pj[level]);
110 sigma = excitationSigma / density;
111 }
112 return sigma;
113}
114
115G4int G4CrossSectionExcitationEmfietzoglouPartial::RandomSelect(G4double k)
116{
117 G4int i = nLevels;
118 G4double value = 0.;
119 std::deque<double> values;
120
121 // ---- MGP ---- The following algorithm is wrong: it works is the cross section
122 // is a monotone increasing function.
123 // The algorithm should be corrected by building the cumulative function
124 // of the cross section and comparing a random number in the range 0-1 against
125 // the cumulative value at each bin
126
127 while (i > 0)
128 {
129 i--;
130 G4double partial = CrossSection(k,i);
131 values.push_front(partial);
132 value += partial;
133 }
134
135 value *= G4UniformRand();
136
137 i = nLevels;
138
139 while (i > 0)
140 {
141 i--;
142 if (values[i] > value) return i;
143 value -= values[i];
144 }
145
146 return 0;
147}
148
149G4double G4CrossSectionExcitationEmfietzoglouPartial::Sum(G4double k)
150{
151 G4double totalCrossSection = 0.;
152
153 for (G4int i=0; i<nLevels; i++)
154 {
155 totalCrossSection += CrossSection(k,i);
156 }
157 return totalCrossSection;
158}
Note: See TracBrowser for help on using the repository browser.