175 if(posiKinEnergy == 0.0) {
177 G4double sint = sqrt((1. - cost)*(1. + cost));
188 pol.
set(-sinphi, cosphi, 0.0);
202 G4double sqgrate = sqrt(tau/tau2)*0.5;
208 G4double epsilqot = epsilmax/epsilmin;
217 greject = 1. - epsil + (2.*gam*epsil-1.)/(epsil*tau2*tau2);
219 }
while( greject < rndmEngine->
flat());
225 G4double cost = (epsil*tau2-1.)/(epsil*sqg2m1);
227 G4cout <<
"### G4eeToTwoGammaModel WARNING cost= " << cost
228 <<
" positron Ekin(MeV)= " << posiKinEnergy
229 <<
" gamma epsil= " << epsil
231 if(cost > 1.0) cost = 1.0;
234 G4double sint = sqrt((1.+cost)*(1.-cost));
242 G4double phot1Energy = epsil*totalEnergy;
244 G4ThreeVector phot1Direction(sint*cos(phi), sint*sin(phi), cost);
245 phot1Direction.
rotateUz(posiDirection);
254 G4double phot2Energy =(1.-epsil)*totalEnergy;
263 pol.
set(-sinphi, cosphi, 0.0);
265 cost = pol*phot2Direction;
266 pol -= cost*phot2Direction;
279 vdp->push_back(aGamma1);
280 vdp->push_back(aGamma2);