5 * Revision 1.1.1.1 1995/10/24 10:21:21 cernlib
9 #include "geant321/pilot.h"
10 *CMZ : 3.21/02 29/03/94 15.41.21 by S.Giani
14 C. ******************************************************************
16 C. * Generates positron annihilation at rest *
17 C. * (alias of GANNIR , directly called from GPAIRG) *
19 C. * ==>Called by : GPAIRG,GPAIRM *
20 C. * Author M.Maire ********* *
22 C. ******************************************************************
24 #include "geant321/gcphys.inc"
25 #include "geant321/gctrak.inc"
26 #include "geant321/gcking.inc"
27 #include "geant321/gccuts.inc"
28 #include "geant321/gconsp.inc"
32 IF((IANNI.NE.1).OR.(EMASS.LE.CUTGAM)) THEN
33 DESTEP = DESTEP + 2*EMASS
38 ST=SQRT((1.-CT)*(1.+CT))
41 GKIN(1,NGKINE)=EMASS*ST*COS(PHI)
42 GKIN(2,NGKINE)=EMASS*ST*SIN(PHI)
43 GKIN(3,NGKINE)=EMASS*CT
47 GPOS(1,NGKINE) = VECT(1)
48 GPOS(2,NGKINE) = VECT(2)
49 GPOS(3,NGKINE) = VECT(3)
52 10 GKIN(J,NGKINE)=-GKIN(J,NGKINE-1)
56 GPOS(1,NGKINE) = VECT(1)
57 GPOS(2,NGKINE) = VECT(2)
58 GPOS(3,NGKINE) = VECT(3)