5 * Revision 1.2 1998/02/10 16:04:19 japost
6 * Comments are correctly redistributed.
8 * Revision 1.1.1.1 1995/10/24 10:21:19 cernlib
12 #include "geant321/pilot.h"
13 *CMZ : 3.21/02 28/03/94 01.30.59 by S.Giani
15 SUBROUTINE GSKINE(PLAB,IPART,NV,BUF,NWBUF,NT)
17 C. ******************************************************************
19 C * Store kinematics of track NT into data structure *
20 C * Track is coming from vertex NV *
25 C. * Stores long life track parameters. *
28 C. * PLAB components of momentum *
29 C. * IPART type of particle (see GSPART) *
30 C. * NV vertex number origin of track *
31 C. * UBUF array of NUBUF floating point user parameters *
35 C. * NT track number (if=0 error). *
37 C. * ==>Called by : <USER>, GUKINE,GUSTEP *
38 C. * Authors R.Brun, F.Carena, M.Hansroul ********* *
40 C. ******************************************************************
42 #include "geant321/gcbank.inc"
43 #include "geant321/gcnum.inc"
44 #include "geant321/gcpush.inc"
45 DIMENSION PLAB(3),BUF(1)
48 C. ------------------------------------------------------------------
51 IF(NV.GT.NVERTX)GO TO 90
57 CALL MZBOOK(IXDIV,JKINE,JKINE,1,'KINE',NCKINE,NCKINE,1,2,0)
60 IF(NT.GT.IQ(JKINE-2)) CALL MZPUSH(IXDIV,JKINE,NPKINE,0,'I')
62 CALL MZBOOK(IXDIV,JK,JKINE,-NT,'KINE',1,1,8,3,0)
64 IF (JPART.LE.0) GO TO 90
65 IF (IPART.GT.IQ(JPART-2)) GO TO 90
66 JPA = LQ(JPART- IPART)
67 IF (JPA.LE.0) GO TO 90
68 P2 = PLAB(1)**2 + PLAB(2)**2 + PLAB(3)**2
70 E = SQRT(P2 + AMASS*AMASS)
72 C Store kinematics in JKINE
84 CALL MZBOOK(IXDIV,JUK,JK,-1,'KINU',0,0,NWBUF,3,0)
93 C Connect track NT to vertex NV
99 IF(NFREE.LE.0)CALL MZPUSH(IXDIV,JV,0,2,'I')