127 G4double Term1 = Beta*a1 - 1.5 + maxea;
128 G4double Term2 = (2.0*Beta*a1-3.0)*std::sqrt(maxea) + 2*maxea;
132 G4double ExpTerm2 = 2.*std::sqrt(maxea) - SystemEntropy;
134 ExpTerm2 =
G4Exp(ExpTerm2);
136 pProbability = GlobalFactor*(Term1*ExpTerm1 + Term2*ExpTerm2);
162 G4double mres = sqrt(m02 + m12 - 2.*pMass*(pEvapMass + K));
166 if(E1 <= 0.0) {
return 0.0; }
221 const G4double ssqr3 = 1.5*std::sqrt(3.0);
224 Rk = 1.0 + (1./RbSqrt)*
G4Log(RandNumber + (1.0-RandNumber)*PEX1);
229 Q1 = 1.0 + Beta/maxKinEnergy;
230 Q2 = Q1*std::sqrt(Q1);
233 FRk = ssqr3 * Rk * (Q1 - Rk*Rk)/Q2;
234 if(nn > nmax) {
break; }
237 }
while (FRk < rndm->
flat());
239 T =
std::max(maxKinEnergy * (1.0-Rk*Rk), 0.0) + minKinEnergy;