5 * Revision 1.1.1.1 1995/10/24 10:21:43 cernlib
9 #include "geant321/pilot.h"
10 *CMZ : 3.21/02 29/03/94 15.41.23 by S.Giani
12 SUBROUTINE GSKING (IGK)
14 C. ******************************************************************
16 C. * SUBR. GSKING (IGK) *
18 C. * Stores in stack JSTAK either the IGKth track of /GCKING/, *
19 C. * or the NGKINE tracks when IGK is 0. *
21 C. * Called by : 'User' *
22 C. * Authors : R.Brun, F.Bruyant *
24 C. ******************************************************************
26 #include "geant321/gcunit.inc"
27 #include "geant321/gcbank.inc"
28 #include "geant321/gckine.inc"
29 #include "geant321/gcking.inc"
30 #include "geant321/gcnum.inc"
31 #include "geant321/gctrak.inc"
33 COMMON/VTXKIN/NVTX,ITR
36 C. ------------------------------------------------------------------
38 IF (NGKINE.LE.0) GO TO 999
43 IF (IGK.LT.0.OR.IGK.GT.NGKINE) THEN
44 WRITE(CHMAIL,10000) IGK, NGKINE
45 10000 FORMAT(' GSKING - Abnormal request ',I4,1X,I4)
53 * *** Save original information from /GCKINE/ and /GCTRAK/
62 * *** Store required tracks in stack JSTAK
66 IF (IFLGK(N).LT.0) GO TO 30
67 TOFG = TOFSTO +TOFD(N)
73 IF (IFLGK(N).EQ.1) THEN
86 IFLGK(NGKINE+1) = NVTX
90 * *** Restore original information in /GCKINE/ and /GCTRAK/