5 * Revision 1.1.1.1 1995/10/24 10:20:51 cernlib
9 #include "geant321/pilot.h"
10 *CMZ : 3.21/02 29/03/94 15.41.29 by S.Giani
12 SUBROUTINE GLMOTH (IUDET, IUNUM, NLEV, LVOLS, LINDX)
14 C. ******************************************************************
16 C. * Loads the top part of the Volume tree in LVOLS (IVO's), *
17 C. * LINDX (IN indices) for a given volume defined through *
18 C. * its name IUDET and number IUNUM. *
20 C. * The routine stores only upto the last level where JVOLUM *
21 C. * data structure is developed. If there is no development *
22 C. * above the current level, it returns NLEV zero. *
24 C. * Called by : GDRAW, GFIPAR, GFPARA, GLVOLU *
25 C. * Authors : S.Banerjee *
27 C. ******************************************************************
29 #include "geant321/gcbank.inc"
31 DIMENSION LVOLS(*), LINDX(*)
35 C. ------------------------------------------------------------------
40 CALL UCTOH (IUDET, LINAM, 4, 4)
41 IVOS = IUCOMP (LINAM, IQ(JVOLUM+1), IQ(JVOLUM-1))
44 * *** Scan all volumes to check if it could be mother
45 * of the current volume
47 10 IF (IVOS.GT.1) THEN
48 DO 25 IVO = 1, IQ(JVOLUM-1)
49 IF (IVO.EQ.IVOS) GO TO 25
52 IF (NIN.EQ.0) GO TO 25
57 IF (IVOT.NE.IVOS) GO TO 25
69 IF (IVOT.NE.IVOS) GO TO 15
74 IF (MULT.NE.MULTI) GO TO 15
82 IF (NLDV.NE.0) GO TO 30
87 IF (LQ(JVO).NE.0) NLDV = NLEV
92 * *** Now rearrange the order of the volumes
94 30 IF (IVOS.EQ.1) LINDX(NLEV) = 1
108 IF (LQ(LQ(JVOLUM-LVOLS(1))).EQ.0) NLEV = 0