118 static const G4double a = 20.0 ,
b = 230.0 ,
c = 440.0;
128 G4double p1Z = Z*(d1 + e1*Z + f1*Z*
Z), p2Z = Z*(d2 + e2*Z + f2*Z*Z),
129 p3Z = Z*(d3 + e3*Z + f3*Z*
Z), p4Z = Z*(d4 + e4*Z + f4*Z*Z);
132 if (Z < 1.5) { T0 = 40.0*
keV; }
135 xSection = p1Z*
G4Log(1.+2.*X)/X
136 + (p2Z + p3Z*X + p4Z*X*
X)/(1. + a*X +
b*X*X +
c*X*X*X);
140 if (gammaEnergy < T0) {
143 + (p2Z + p3Z*X + p4Z*X*
X)/(1. + a*X +
b*X*X +
c*X*X*X);
144 G4double c1 = -T0*(sigma-xSection)/(xSection*dT0);
146 if (Z > 1.5) { c2 = 0.375-0.0556*
G4Log(Z); }
148 xSection *=
G4Exp(-y*(c1+c2*y));
151 if(xSection < 0.0) { xSection = 0.0; }
160 std::vector<G4DynamicParticle*>* fvect,
182 for(i=0; i<nShells; ++i) {
207 for(i=0; i<nShells; ++i) {
if(xprob <=
fProbabilities[i]) {
break; } }
210 lv1.
set(0.0,0.0,energy,energy);
218 eKinEnergy = bindingEnergy*
x;
219 ePotEnergy = bindingEnergy*(1.0 +
x);
225 G4double sintet = sqrt((1 - costet)*(1 + costet));
226 lv2.
set(eTotMomentum*sintet*cos(phi),eTotMomentum*sintet*sin(phi),
231 gamEnergy0 =
lv1.
e();
249 G4double alpha2 = alpha1 + 0.5*(1 - epsilon0sq);
254 if(nloop > nlooplim) {
return; }
259 if ( alpha1 > alpha2*rndm[0] ) {
260 epsilon =
G4Exp(-alpha1*rndm[1]);
264 epsilonsq = epsilon0sq + (1.- epsilon0sq)*rndm[1];
265 epsilon = sqrt(epsilonsq);
268 onecost = (1.-
epsilon)/(epsilon*E0_m);
269 sint2 = onecost*(2.-onecost);
270 greject = 1. - epsilon*sint2/(1.+ epsilonsq);
273 }
while (greject < rndm[2]);
274 gamEnergy1 = epsilon*gamEnergy0;
283 if(sint2 < 0.0) { sint2 = 0.0; }
284 costet = 1. - onecost;
285 sintet = sqrt(sint2);
286 phi = twopi * rndmEngineMod->
flat();
294 lv1.
set(gamEnergy1*v.
x(),gamEnergy1*v.
y(),gamEnergy1*v.
z(),gamEnergy1);
303 }
while ( eKinEnergy < 0.0 );
310 gamEnergy1 =
lv1.
e();
330 fvect->push_back(dp);
331 }
else { eKinEnergy = 0.0; }
344 G4int nbefore = fvect->size();
346 G4int nafter = fvect->size();
348 for (
G4int j=nbefore; j<nafter; ++j) {
349 G4double e = ((*fvect)[j])->GetKineticEnergy();
350 if(esec + e > edep) {
353 ((*fvect)[j])->SetKineticEnergy(e);
366 for (
G4int jj=nafter-1; jj>j; --jj) {
377 if(
std::abs(energy - gamEnergy1 - eKinEnergy - esec - edep) >
eV) {
378 G4cout <<
"### G4KleinNishinaModel dE(eV)= "
379 << (energy - gamEnergy1 - eKinEnergy - esec -
edep)/
eV
381 <<
" E(keV)= " << energy/
keV
382 <<
" Ebind(keV)= " << bindingEnergy/
keV
383 <<
" Eg(keV)= " << gamEnergy1/
keV
384 <<
" Ee(keV)= " << eKinEnergy/
keV
385 <<
" Esec(keV)= " << esec/
keV
386 <<
" Edep(keV)= " << edep/
keV