00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053 #include "G4ionEffectiveCharge.hh"
00054 #include "G4PhysicalConstants.hh"
00055 #include "G4SystemOfUnits.hh"
00056 #include "G4UnitsTable.hh"
00057 #include "G4Material.hh"
00058 #include "G4NistManager.hh"
00059
00060
00061
00062 G4ionEffectiveCharge::G4ionEffectiveCharge()
00063 {
00064 chargeCorrection = 1.0;
00065 energyHighLimit = 20.0*MeV;
00066 energyLowLimit = 1.0*keV;
00067 energyBohr = 25.*keV;
00068 massFactor = amu_c2/(proton_mass_c2*keV);
00069 minCharge = 1.0;
00070 lastPart = 0;
00071 lastMat = 0;
00072 lastKinEnergy = 0.0;
00073 effCharge = eplus;
00074 nist = G4NistManager::Instance();
00075 }
00076
00077
00078
00079 G4ionEffectiveCharge::~G4ionEffectiveCharge()
00080 {}
00081
00082
00083
00084 G4double G4ionEffectiveCharge::EffectiveCharge(const G4ParticleDefinition* p,
00085 const G4Material* material,
00086 G4double kineticEnergy)
00087 {
00088 if(p == lastPart && material == lastMat && kineticEnergy == lastKinEnergy)
00089 return effCharge;
00090
00091 lastPart = p;
00092 lastMat = material;
00093 lastKinEnergy = kineticEnergy;
00094
00095 G4double mass = p->GetPDGMass();
00096 G4double charge = p->GetPDGCharge();
00097 G4double Zi = charge/eplus;
00098
00099 chargeCorrection = 1.0;
00100 effCharge = charge;
00101
00102
00103
00104
00105
00106
00107 G4double reducedEnergy = kineticEnergy * proton_mass_c2/mass ;
00108
00109
00110
00111 if( reducedEnergy > Zi*energyHighLimit || Zi < 1.5 || !material) return charge;
00112
00113 G4double z = material->GetIonisation()->GetZeffective();
00114 reducedEnergy = std::max(reducedEnergy,energyLowLimit);
00115
00116
00117 if( Zi < 2.5 ) {
00118
00119 static G4double c[6] = {0.2865, 0.1266, -0.001429,
00120 0.02402,-0.01135, 0.001475} ;
00121
00122 G4double Q = std::max(0.0,std::log(reducedEnergy*massFactor));
00123 G4double x = c[0];
00124 G4double y = 1.0;
00125 for (G4int i=1; i<6; i++) {
00126 y *= Q;
00127 x += y * c[i] ;
00128 }
00129 G4double ex;
00130 if(x < 0.2) ex = x * (1 - 0.5*x);
00131 else ex = 1. - std::exp(-x);
00132
00133 G4double tq = 7.6 - Q;
00134 G4double tq2= tq*tq;
00135 G4double tt = ( 0.007 + 0.00005 * z );
00136 if(tq2 < 0.2) tt *= (1.0 - tq2 + 0.5*tq2*tq2);
00137 else tt *= std::exp(-tq2);
00138
00139 effCharge = charge*(1.0 + tt) * std::sqrt(ex);
00140
00141
00142 } else {
00143
00144 G4double y;
00145
00146
00147 G4double zi13 = nist->GetZ13(Zi);
00148 G4double zi23 = zi13*zi13;
00149
00150
00151
00152
00153 G4double eF = material->GetIonisation()->GetFermiEnergy();
00154 G4double v1sq = reducedEnergy/eF;
00155 G4double vFsq = eF/energyBohr;
00156 G4double vF = std::sqrt(eF/energyBohr);
00157
00158
00159 if ( v1sq > 1.0 ) {
00160 y = vF * std::sqrt(v1sq) * ( 1.0 + 0.2/v1sq ) / zi23 ;
00161
00162
00163 } else {
00164 y = 0.692308 * vF * (1.0 + 0.666666*v1sq + v1sq*v1sq/15.0) / zi23 ;
00165 }
00166
00167 G4double q;
00168 G4double y3 = std::pow(y, 0.3) ;
00169
00170 q = 1.0 - std::exp( 0.803*y3 - 1.3167*y3*y3 - 0.38157*y - 0.008983*y*y ) ;
00171
00172
00173
00174
00175
00176
00177
00178 G4double qmin = minCharge/Zi;
00179 if(q < qmin) q = qmin;
00180
00181 effCharge = q*charge;
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192 G4double tq = 7.6 - std::log(reducedEnergy/keV);
00193 G4double tq2= tq*tq;
00194 G4double sq = ( 0.18 + 0.0015 * z ) / (Zi*Zi);
00195 if(tq2 < 0.2) sq *= (1.0 - tq2 + 0.5*tq2*tq2);
00196 else sq *= std::exp(-tq2);
00197 sq += 1.0;
00198
00199
00200
00201
00202
00203
00204 G4double lambda = 10.0 * vF / (zi13 * (6.0 + q));
00205 if(q < 0.2) lambda *= (1.0 - 0.66666667*q - q*q/9.0);
00206 else lambda *= std::pow(1.0-q, 0.666666);
00207
00208 G4double lambda2 = lambda*lambda;
00209
00210 G4double xx = (0.5/q - 0.5)/vFsq;
00211 if(lambda2 < 0.2) xx *= lambda2*(1.0 - 0.5*lambda2);
00212 else xx *= std::log(1.0 + lambda2);
00213
00214 chargeCorrection = sq * (1.0 + xx);
00215
00216 }
00217
00218
00219
00220 return effCharge;
00221 }
00222
00223
00224
00225