79 twoln10(2.0*log(10.0)),
110 if(isInitialised) {
return; }
112 isInitialised =
true;
128 tmax = std::min(maxEnergy, tmax);
130 if(cutEnergy < tmax) {
132 G4double xmin = cutEnergy/kineticEnergy;
137 G4double beta2 = tau*(tau + 2)/gamma2;
142 G4double gg = (2.0*gam - 1.0)/gamma2;
143 cross = ((xmax - xmin)*(1.0 - gg + 1.0/(xmin*xmax)
144 + 1.0/((1.0-xmin)*(1.0 - xmax)))
145 - gg*log( xmax*(1.0 - xmin)/(xmin*(1.0 - xmax)) ) ) / beta2;
159 cross = (xmax - xmin)*(1.0/(beta2*xmin*xmax) + b2
160 - 0.5*b3*(xmin + xmax)
161 + b4*(xmin*xmin + xmin*xmax + xmax*xmax)/3.0)
227 if (kineticEnergy < th) { tkin = th; }
245 dedx = log(2.0*(tau + 2.0)/eexc2) - 1.0 - beta2
246 + log((tau-d)*d) + tau/(tau-
d)
247 + (0.5*d*d + (2.0*tau + 1.)*log(1. - d/tau))/gamma2;
256 dedx = log(2.0*(tau + 2.0)/eexc2) + log(tau*d)
257 - beta2*(tau + 2.0*d - y*(3.0*d2
258 + y*(d - d3 + y*(d2 - tau*d3 + d4))))/tau;
267 if (dedx < 0.0) { dedx = 0.0; }
271 if (kineticEnergy < th) {
272 x = kineticEnergy/th;
273 if(x > 0.25) { dedx /= sqrt(x); }
274 else { dedx *= 1.4*sqrt(x)/(0.1 +
x); }
294 tmax = 0.5*kineticEnergy;
296 tmax = kineticEnergy;
298 if(maxEnergy < tmax) { tmax = maxEnergy; }
299 if(tmin >= tmax) {
return; }
302 G4double totalMomentum = sqrt(kineticEnergy*(energy + electron_mass_c2));
315 G4double gg = (2.0*gam - 1.0)/gamma2;
317 grej = 1.0 - gg*xmax + xmax*xmax*(1.0 - gg + (1.0 - gg*
y)/(y*y));
321 x = xmin*xmax/(xmin*(1.0 - q) + xmax*q);
323 z = 1.0 - gg*x + x*x*(1.0 - gg + (1.0 - gg*
y)/(y*y));
348 grej = 1.0 + (y*y*b4 - xmin*xmin*xmin*b3 + y*b2 - xmin*b1)*beta2;
351 x = xmin*xmax/(xmin*(1.0 - q) + xmax*q);
353 z = 1.0 + (y*y*b4 - x*y*b3 + y*b2 - x*b1)*beta2;
366 G4double deltaKinEnergy = x * kineticEnergy;
369 sqrt(deltaKinEnergy * (deltaKinEnergy + 2.0*electron_mass_c2));
371 (deltaMomentum * totalMomentum);
372 G4double sint = (1.0 - cost)*(1. + cost);
373 if(sint > 0.0) { sint = sqrt(sint); }
378 G4ThreeVector deltaDirection(sint*cos(phi),sint*sin(phi), cost) ;
382 kineticEnergy -= deltaKinEnergy;
386 direction = dir.
unit();
391 deltaDirection,deltaKinEnergy);
392 vdp->push_back(delta);