5 * Revision 1.1.1.1 1995/10/24 10:20:47 cernlib
9 #include "geant321/pilot.h"
10 *CMZ : 3.21/02 29/03/94 15.41.32 by S.Giani
12 SUBROUTINE GCKMAT (ITMED,NATMED)
15 * This routine check the material table coming from a Cadd system.
16 * It may help to take default/savety actions.
19 #include "geant321/gcbank.inc"
20 #include "geant321/gcnum.inc"
21 #include "geant321/gcunit.inc"
23 CHARACTER*20 NAME,NATMED
25 * *** check tracking media number
26 JTM = LQ(JTMED - ITMED)
27 IF (ITMED.GT.NTMED.OR.JTM.LE.0) THEN
28 WRITE (CHMAIL,10200) ITMED
31 CALL GSTMED (ITMED,NATMED,IMATE, 0, 0, 1., 10.,
32 + 100., 0.2, 0.005, 0.001, 0, 0)
34 CALL UHTOC (IQ(JTM+1),4,NAME,20)
35 IF (NATMED.NE.NAME) THEN
36 WRITE (CHMAIL,10300) ITMED
41 10000 FORMAT(' *** GCKMAT *** Warning, material number :', I3,
42 + ' does not exist; force by default IMATE = 1' )
44 10100 FORMAT(' *** GCKMAT *** Warning, material number :', I3,
45 + ' maybe not egal to the Geant definition. KEEP the old one')
47 10200 FORMAT(' *** GCKMAT *** Warning, tracking media :', I3,
48 + ' does not exist; It will be created with default parameters')
50 10300 FORMAT(' *** GCKMAT *** Warning, tracking media :', I3,
51 + ' maybe not egal to the Geant definition. KEEP the old one')