8 #include "geant321/gconst.inc"
9 #include "geant321/gcflag.inc"
10 #include "geant321/gckine.inc"
12 dimension vertex(3),plab(3)
18 CALL gsvert(vertex,0,0,0,0,nvert)
21 costheta = 2*
rndm(1) - 1.
22 sintheta =
sqrt(1. - costheta**2)
25 plab(1) = pkine(1)*sintheta*
cos(
phi)
26 plab(2) = pkine(1)*sintheta*
sin(
phi)
27 plab(3) = pkine(1)*costheta
29 CALL gskine(plab,ikine,nvert,0,0,
nt)
32 IF (ievent.EQ.1.OR.idebug.NE.0) CALL gprint(
'KINE',0)
DOUBLE PRECISION function rndm(RDUMMY)
static c2_sqrt_p< float_type > & sqrt()
make a *new object
static c2_cos_p< float_type > & cos()
make a *new object
static c2_sin_p< float_type > & sin()
make a *new object