12 include
"mcRadCor.inc"
15 real phrad(4),q2true,nutrue,radweight
16 real nu,q2,
phi,yys,xxs
24 call
radgen(mcset_enebeam,q2,nu,yys,xxs,
phi,phrad,q2true,nutrue,
36 mcradcor_xtrue=q2true/(2.0d0*0.938272d0*nutrue)
37 mcradcor_ytrue=nutrue/mcset_enebeam
38 mcradcor_nutrue=nutrue
39 mcradcor_q2true=q2true
40 mcradcor_w2true=amp2 - q2true + 2.*amp*nutrue
45 mcradcor_ebrems=phrad(4)
46 mcradcor_thetabrems=0.
48 + mcradcor_thetabrems = acos(phrad(3)/phrad(4))
50 if (.not.(phrad(1).eq.0..and.phrad(2).eq.0.))
then
51 mcradcor_phibrems = atan2(phrad(2),phrad(1))
52 if (mcradcor_phibrems.lt.0.)
53 + mcradcor_phibrems = mcradcor_phibrems +
twopi
62 mcradcor_sigrad=sigrad
63 mcradcor_sigcor=sigcor
71 mcradcor_redfac=redfac
77 else if (ita.eq.3)
then