883 eloss = kineticEnergy -
900 G4double kineticEnergy0 = kineticEnergy;
902 kineticEnergy -= 0.5*eloss;
907 eps0 = eloss/kineticEnergy0;
908 epsm = eloss/kineticEnergy;
910 efEnergy = kineticEnergy * (1. - epsm*epsm*(6.+10.*tau+5.*tau2)/(24.*tau2+48.*tau+72.));
911 G4double dum = 0.166666*(4.+tau*(6.+tau*(7.+tau*(4.+tau))))*
912 (epsm/((tau+1.)*(tau+2.)))*(epsm/((tau+1.)*(tau+2.)));
915 kineticEnergy -= 0.5*eloss;
916 efEnergy = kineticEnergy;
918 eps0= eloss/kineticEnergy0;
919 epsm= eps0/(1.-0.5*eps0);
920 G4double temp = 0.3*(1. - factor*(1. - 0.333333*
factor))*eps0*eps0;
931 if(lambdan<=1.0
e-12) {
940 lambdan = lambdan/(1.+
fScrA);
947 G4double cosTheta1 =1.0,sinTheta1 =0.0, cosTheta2 =1.0, sinTheta2 =0.0;
948 G4double cosPhi1=1.0,sinPhi1=0.0, cosPhi2 =1.0, sinPhi2 =0.0;
949 G4double us=0.0,vs=0.0,ws=1.0,x_coord=0.0,y_coord=0.0,z_coord=1.0;
957 cosTheta1 = 1.-2.*vrand[0];
958 sinTheta1 = std::sqrt((1.-cosTheta1)*(1.+cosTheta1));
959 cosTheta2 = 1.-2.*vrand[1];
960 sinTheta2 = std::sqrt((1.-cosTheta2)*(1.+cosTheta2));
965 if(cosTheta1 + cosTheta2 == 2.) {
976 sinPhi1 = std::sin(phi1);
977 cosPhi1 = std::cos(phi1);
979 sinPhi2 = std::sin(phi2);
980 cosPhi2 = std::cos(phi2);
983 u2 = sinTheta2*cosPhi2;
984 v2 = sinTheta2*sinPhi2;
985 G4double u2p = cosTheta1*u2 + sinTheta1*cosTheta2;
986 us = u2p*cosPhi1 - v2*sinPhi1;
987 vs = u2p*sinPhi1 + v2*cosPhi1;
988 ws = cosTheta1*cosTheta2 - sinTheta1*u2;
1007 if(Qn1<0.7) par = 1.;
1008 else if (Qn1<7.0) par = -0.031376*Qn1+1.01356;
1023 G4double delta = 0.9082483-(0.1020621-0.0263747*gamma)*Qn1;
1027 G4double temp = (2.0+tau*temp1)/((tau+1.0)*temp1);
1029 temp = temp - (tau+1.0)/((tau+2.0)*(loga*(1.0+
fScrA)-1.0));
1032 delta = delta + 0.40824829*(eps0*(tau+1.0)/((tau+2.0)*
1033 (loga*(1.0+
fScrA)-1.0)*(loga*(1.0+2.0*
fScrA)-2.0)) - 0.25*temp*temp);
1040 G4double ut = b*sinTheta1*cosPhi1 + c*(cosPhi1*u2 - sinPhi1*w1v2) + eta1*us*temp1;
1041 G4double vt = b*sinTheta1*sinPhi1 + c*(sinPhi1*u2 + cosPhi1*w1v2) + eta1*vs*temp1;
1042 G4double wt = eta1*(1+temp) + b*cosTheta1 + c*cosTheta2 + eta1*ws*temp1;
1059 G4double transportDistance = std::sqrt(x_coord*x_coord+y_coord*y_coord+z_coord*z_coord);
1061 if(transportDistance>fTheTrueStepLenght)
1078 zz = 1.0 - Qn1*(0.5 - Qn1*(0.166666667 - 0.041666667*Qn1));
1080 zz = (1.-
G4Exp(-Qn1))/Qn1;
1089 if(rr >= 0.25) rr = 0.25;
1090 G4double rperp = fTheTrueStepLenght*std::sqrt(rr);
1096 G4double transportDistance = std::sqrt(x_coord*x_coord + y_coord*y_coord + z_coord*z_coord);
void set(double x, double y, double z)
static G4bool fgIsUseAccurate
G4bool fIsUsePWATotalXsecData
CLHEP::HepRandomEngine * rndmEngineMod
const G4ParticleDefinition * particle
G4bool fIsNoScatteringInMSC
G4ThreeVector fTheDisplacementVector
G4double fTheTrueStepLenght
G4double currentKinEnergy
G4double GetEnergy(const G4ParticleDefinition *part, G4double range, const G4MaterialCutsCouple *couple)
G4ThreeVector fTheNewDirection
void Sampling(G4double, G4double, G4double, G4double &, G4double &)
static G4GoudsmitSaundersonTable * fgGSTable
G4double G4Log(G4double x)
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
G4bool fIsEverythingWasDone
static const G4double factor
G4double GetTransportMeanFreePath(const G4ParticleDefinition *, G4double)
static const double twopi
virtual void flatArray(const int size, double *vect)=0
const G4MaterialCutsCouple * currentCouple