5 * Revision 1.1.1.1 1995/10/24 10:20:50 cernlib
9 #include "geant321/pilot.h"
10 *CMZ : 3.21/02 29/03/94 15.41.29 by S.Giani
12 SUBROUTINE GGVCHK (JVOM, IN, NVAR, LVAR)
14 C. ******************************************************************
16 C. * SUBR. GGVCHK (JVOM, IN, NVAR*, LVAR*) *
18 C. * Checks volume parameters of IN'th content of mother volume *
19 C. * at address JVOM or, when IN = 0, of mother volume itself. *
20 C. * Returns NVAR = 0, when no variable parameters *
21 C. * or NVAR =-1, when no variable parameters AND not a *
22 C. * possible source of local development *
24 C. * the list LVAR of the NVAR variable parameters positions *
26 C. * Called by : GGDVLP *
27 C. * Author : F.Bruyant *
29 C. ******************************************************************
31 #include "geant321/gcbank.inc"
32 #include "geant321/gcunit.inc"
33 #include "geant321/gcshno.inc"
36 INTEGER LDP(7,12), NDP(12)
39 DATA NDP/ 3, 4, 5, 7, 3, 3, 5, 5, 4, 3, 2, 2 /
40 DATA LDP/ 1, 2, 3, 4*0, 1, 2, 3, 4, 3*0, 1, 2, 3, 4, 5, 2*0,
41 + 1, 4, 5, 6, 8, 9, 10, 1, 2, 3, 4*0, 1, 2, 3, 4*0,
42 + 1, 2, 3, 4, 5, 2*0, 1, 2, 3, 4, 5, 2*0, 1, 2, 3, 4, 3*0,
43 + 1, 2, 3, 4*0, 2, 3, 5*0, 2, 3, 5*0 /
45 C. ------------------------------------------------------------------
53 IF (NIN.LT.0) NVAR = -1
79 JJVO = LQ(JVOLUM-IIVO)
92 * * Volumes other than PGON or PCON
96 IF (Q(JJPAR+IIDP).LT.0.) THEN
102 ELSE IF (IISH.LE.12) THEN
104 * * PGON and PCON volumes
112 IF (Q(JJPAR+IIDP).LT.0.) THEN
127 * Shape 28 will not be supported in the future
128 IF (ISH.EQ.28.OR.ISH.EQ.13.OR.ISH.EQ.NSCTUB.OR.ISH.EQ.14)THEN
138 * * Volumes other PGON or PCON
142 11 LVAR(ID) = LDP(ID,ISH)
143 ELSE IF (ISH.LE.12) THEN
145 * * PGON and PCON volumes
150 12 LVAR(ID) = IPZ + ID
160 * * Volumes other than PGON or PCON
164 IF (Q(JPAR+IDP).GE.0.) GO TO 19
169 ELSE IF (ISH.LE.12) THEN
171 * * PGON and PCON volumes
180 IF (Q(JPAR+IDP).GE.0.) GO TO 28
182 LVAR(NVAR) = INC +IDP
190 IF (NVAR.EQ.0) NVAR = NSP
193 900 WRITE (CHMAIL, 1001) ISH
195 1001 FORMAT (' GGVCHK : No code for shape ISH=',I5)