Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ionEffectiveCharge Class Reference

#include <G4ionEffectiveCharge.hh>

Public Member Functions

 G4ionEffectiveCharge ()
 
virtual ~G4ionEffectiveCharge ()
 
G4double EffectiveChargeSquareRatio (const G4ParticleDefinition *p, const G4Material *material, G4double kineticEnergy)
 
G4double EffectiveCharge (const G4ParticleDefinition *p, const G4Material *material, G4double kineticEnergy)
 

Detailed Description

Definition at line 62 of file G4ionEffectiveCharge.hh.

Constructor & Destructor Documentation

◆ G4ionEffectiveCharge()

G4ionEffectiveCharge::G4ionEffectiveCharge ( )

Definition at line 62 of file G4ionEffectiveCharge.cc.

63{
64 chargeCorrection = 1.0;
65 energyHighLimit = 20.0*MeV;
66 energyLowLimit = 1.0*keV;
67 energyBohr = 25.*keV;
68 massFactor = amu_c2/(proton_mass_c2*keV);
69 minCharge = 1.0;
70 lastPart = 0;
71 lastMat = 0;
72 lastKinEnergy = 0.0;
73 effCharge = eplus;
75}
static G4NistManager * Instance()

◆ ~G4ionEffectiveCharge()

G4ionEffectiveCharge::~G4ionEffectiveCharge ( )
virtual

Definition at line 79 of file G4ionEffectiveCharge.cc.

80{}

Member Function Documentation

◆ EffectiveCharge()

G4double G4ionEffectiveCharge::EffectiveCharge ( const G4ParticleDefinition p,
const G4Material material,
G4double  kineticEnergy 
)

Definition at line 84 of file G4ionEffectiveCharge.cc.

87{
88 if(p == lastPart && material == lastMat && kineticEnergy == lastKinEnergy)
89 return effCharge;
90
91 lastPart = p;
92 lastMat = material;
93 lastKinEnergy = kineticEnergy;
94
95 G4double mass = p->GetPDGMass();
96 G4double charge = p->GetPDGCharge();
97 G4double Zi = charge/eplus;
98
99 chargeCorrection = 1.0;
100 effCharge = charge;
101
102 // The aproximation of ion effective charge from:
103 // J.F.Ziegler, J.P. Biersack, U. Littmark
104 // The Stopping and Range of Ions in Matter,
105 // Vol.1, Pergamon Press, 1985
106 // Fast ions or hadrons
107 G4double reducedEnergy = kineticEnergy * proton_mass_c2/mass ;
108
109 //G4cout << "e= " << reducedEnergy << " Zi= " << Zi << " " << material->GetName() << G4endl;
110
111 if( reducedEnergy > Zi*energyHighLimit || Zi < 1.5 || !material) return charge;
112
113 G4double z = material->GetIonisation()->GetZeffective();
114 reducedEnergy = std::max(reducedEnergy,energyLowLimit);
115
116 // Helium ion case
117 if( Zi < 2.5 ) {
118
119 static G4double c[6] = {0.2865, 0.1266, -0.001429,
120 0.02402,-0.01135, 0.001475} ;
121
122 G4double Q = std::max(0.0,std::log(reducedEnergy*massFactor));
123 G4double x = c[0];
124 G4double y = 1.0;
125 for (G4int i=1; i<6; i++) {
126 y *= Q;
127 x += y * c[i] ;
128 }
129 G4double ex;
130 if(x < 0.2) ex = x * (1 - 0.5*x);
131 else ex = 1. - std::exp(-x);
132
133 G4double tq = 7.6 - Q;
134 G4double tq2= tq*tq;
135 G4double tt = ( 0.007 + 0.00005 * z );
136 if(tq2 < 0.2) tt *= (1.0 - tq2 + 0.5*tq2*tq2);
137 else tt *= std::exp(-tq2);
138
139 effCharge = charge*(1.0 + tt) * std::sqrt(ex);
140
141 // Heavy ion case
142 } else {
143
144 G4double y;
145 // = nist->GetZ13(z);
146 //G4double z23 = y*y;
147 G4double zi13 = nist->GetZ13(Zi);
148 G4double zi23 = zi13*zi13;
149 // G4double e = std::max(reducedEnergy,energyBohr/z23);
150 //G4double e = reducedEnergy;
151
152 // v1 is ion velocity in vF unit
153 G4double eF = material->GetIonisation()->GetFermiEnergy();
154 G4double v1sq = reducedEnergy/eF;
155 G4double vFsq = eF/energyBohr;
156 G4double vF = std::sqrt(eF/energyBohr);
157
158 // Faster than Fermi velocity
159 if ( v1sq > 1.0 ) {
160 y = vF * std::sqrt(v1sq) * ( 1.0 + 0.2/v1sq ) / zi23 ;
161
162 // Slower than Fermi velocity
163 } else {
164 y = 0.692308 * vF * (1.0 + 0.666666*v1sq + v1sq*v1sq/15.0) / zi23 ;
165 }
166
167 G4double q;
168 G4double y3 = std::pow(y, 0.3) ;
169 // G4cout<<"y= "<<y<<" y3= "<<y3<<" v1= "<<v1<<" vF= "<<vF<<G4endl;
170 q = 1.0 - std::exp( 0.803*y3 - 1.3167*y3*y3 - 0.38157*y - 0.008983*y*y ) ;
171
172 //y *= 0.77;
173 //y *= (0.75 + 0.52/Zi);
174
175 //if( y < 0.2 ) q = y*(1.0 - 0.5*y);
176 //else q = 1.0 - std::exp(-y);
177
178 G4double qmin = minCharge/Zi;
179 if(q < qmin) q = qmin;
180
181 effCharge = q*charge;
182
183 /*
184 G4double x1 = 1.0*effCharge*(1.0 - 0.132*std::log(y))/(y*std::sqrt(z));
185 G4double x2 = 0.1*effCharge*effCharge*energyBohr/reducedEnergy;
186
187 chargeCorrection = 1.0 + x1 - x2;
188
189 G4cout << "x1= "<<x1<<" x2= "<< x2<<" corr= "<<chargeCorrection<<G4endl;
190 */
191
192 G4double tq = 7.6 - std::log(reducedEnergy/keV);
193 G4double tq2= tq*tq;
194 G4double sq = ( 0.18 + 0.0015 * z ) / (Zi*Zi);
195 if(tq2 < 0.2) sq *= (1.0 - tq2 + 0.5*tq2*tq2);
196 else sq *= std::exp(-tq2);
197 sq += 1.0;
198 // G4cout << "sq= " << sq << G4endl;
199
200 // Screen length according to
201 // J.F.Ziegler and J.M.Manoyan, The stopping of ions in compaunds,
202 // Nucl. Inst. & Meth. in Phys. Res. B35 (1988) 215-228.
203
204 G4double lambda = 10.0 * vF / (zi13 * (6.0 + q));
205 if(q < 0.2) lambda *= (1.0 - 0.66666667*q - q*q/9.0);
206 else lambda *= std::pow(1.0-q, 0.666666);
207
208 G4double lambda2 = lambda*lambda;
209
210 G4double xx = (0.5/q - 0.5)/vFsq;
211 if(lambda2 < 0.2) xx *= lambda2*(1.0 - 0.5*lambda2);
212 else xx *= std::log(1.0 + lambda2);
213
214 chargeCorrection = sq * (1.0 + xx);
215
216 }
217 // G4cout << "G4ionEffectiveCharge: charge= " << charge << " q= " << q
218 // << " chargeCor= " << chargeCorrection
219 // << " e(MeV)= " << kineticEnergy/MeV << G4endl;
220 return effCharge;
221}
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
G4double GetZeffective() const
G4double GetFermiEnergy() const
G4IonisParamMat * GetIonisation() const
Definition: G4Material.hh:225
G4double GetZ13(G4double Z)
G4double GetPDGCharge() const

Referenced by G4MuElecInelasticModel::CrossSectionPerVolume(), EffectiveChargeSquareRatio(), and G4EmCorrections::GetParticleCharge().

◆ EffectiveChargeSquareRatio()

G4double G4ionEffectiveCharge::EffectiveChargeSquareRatio ( const G4ParticleDefinition p,
const G4Material material,
G4double  kineticEnergy 
)
inline

Definition at line 105 of file G4ionEffectiveCharge.hh.

109{
110 G4double charge = effCharge;
111 if( kineticEnergy != lastKinEnergy || material != lastMat || p != lastPart) {
112 charge = EffectiveCharge(p,material,kineticEnergy);
113 }
114 charge *= chargeCorrection/CLHEP::eplus;
115
116 return charge*charge;
117}
G4double EffectiveCharge(const G4ParticleDefinition *p, const G4Material *material, G4double kineticEnergy)

Referenced by G4EmCorrections::EffectiveChargeSquareRatio().


The documentation for this class was generated from the following files: