108 for(
G4int i=0; i<= nbins; ++i) {
140 - (gam+3.)/(sqrt(gam*gam - 1.));
196 if(rndmEngine->
flat()*cs30 < cs3) {
209 if(posiKinEnergy == 0.0) {
211 G4double sint = sqrt((1. - cost)*(1. + cost));
222 pol.
set(-sinphi, cosphi, 0.0);
233 G4double sqgrate = sqrt(tau/tau2)*0.5;
239 G4double epsilqot = epsilmax/epsilmin;
248 greject = 1. - epsil + (2.*gam*epsil-1.)/(epsil*tau2*tau2);
250 }
while( greject < rndmEngine->
flat());
256 G4double cost = (epsil*tau2-1.)/(epsil*sqg2m1);
258 G4cout <<
"### G4eplusTo2GammaOKVIModel WARNING cost= " << cost
259 <<
" positron Ekin(MeV)= " << posiKinEnergy
260 <<
" gamma epsil= " << epsil
262 if(cost > 1.0) cost = 1.0;
265 G4double sint = sqrt((1.+cost)*(1.-cost));
273 G4double phot1Energy = epsil*TotalAvailableEnergy;
275 G4ThreeVector phot1Direction(sint*cos(phi), sint*sin(phi), cost);
276 phot1Direction.
rotateUz(posiDirection);
285 G4double phot2Energy =(1.-epsil)*TotalAvailableEnergy;
294 pol.
set(-sinphi, cosphi, 0.0);
296 cost = pol*phot2Direction;
297 pol -= cost*phot2Direction;
310 vdp->push_back(aGamma1);
311 vdp->push_back(aGamma2);