source: trunk/examples/extended/electromagnetic/TestEm14/geant3/src/gukine.F@ 1036

Last change on this file since 1036 was 807, checked in by garnier, 17 years ago

update

File size: 1.2 KB
Line 
1
2 SUBROUTINE GUKINE
3*
4* Generates Kinematics for primary track
5*
6* Data card Kine : Itype Ekine
7*
8#include "geant321/gcbank.inc"
9#include "geant321/gcflag.inc"
10#include "geant321/gckine.inc"
11*
12#include "detector.inc"
13*
14 DIMENSION vertex(3),Plab(3)
15 dimension rndm(2)
16*
17 DATA vertex/3*0./
18 DATA Plab /3*0./
19*
20 vertex(1) = -0.5*BoxSize
21*
22* random in YZ
23 beam = 0.4*BoxSize
24 call GRNDM (rndm,2)
25*
26 vertex(2) = (2*rndm(1)-1.)*beam
27 vertex(3) = (2*rndm(2)-1.)*beam
28*
29 CALL GSVERT(vertex,0,0,0,0,NVERT)
30*
31 JPA = LQ(JPART-IKINE)
32 XMASS = Q(JPA+7)
33 Plab(1) = SQRT(PKINE(1)*(PKINE(1)+2*XMASS))
34*
35 CALL GSKINE(Plab,IKINE,NVERT,0,0,NT)
36*
37* *** Kinematics debug
38 IF (IEVENT.EQ.1.OR.IDEBUG.NE.0) CALL GPRINT('KINE',0)
39*
40 END
Note: See TracBrowser for help on using the repository browser.