71 G4bool IsScatProjToProjCase,
73 {
if (IsScatProjToProjCase)
return ;
102 for (i=0; i<nShells-1; i++){
116 G4double beta = std::sqrt(gamma*gamma-1.)/gamma;
117 G4double b = 0.5*gamma*(gamma-1.)*(gamma-2);
120 if (gamma < 2.) grejsup = gamma*gamma*(1.+b-beta*
b);
121 else grejsup = gamma*gamma*(1.+b+beta*
b);
124 cos_theta = (rndm+beta)/(rndm*beta+1.);
125 term = 1.-beta*cos_theta;
126 greject = (1.-cos_theta*cos_theta)*(1.+b*term)/(term*term);
135 G4double sin_theta = std::sqrt(1.-cos_theta*cos_theta);
137 G4double dirx = sin_theta*std::cos(Phi),diry = sin_theta*std::sin(Phi),dirz = cos_theta;
139 adjoint_gammaDirection.
rotateUz(electronDirection);
181 new_weight*=projectileKinEnergy/adjointPrimKinEnergy;
192 G4bool IsScatProjToProjCase)
196 if (IsScatProjToProjCase)
return 0.;
227 G4bool IsScatProjToProjCase)
239 G4double gammaEnergy = electronEnergy+B0;
242 if (CS >0) adjointCS += CS/gammaEnergy;
244 for (i=1;i<nShells;i++){
249 if (electronEnergy <Bi_-Bi) {
250 gammaEnergy = electronEnergy+Bi;
253 if (CS>0) adjointCS +=CS/gammaEnergy;
258 adjointCS*=electronEnergy;