5 * Revision 1.1.1.1 1995/10/24 10:20:11 cernlib
9 #include "geant321/pilot.h"
10 *CMZ : 3.21/02 29/03/94 17.18.27 by S.Giani
14 C. ******************************************************************
16 C. * Routine to initialise GEANT/ZEBRA data structures *
18 C. * ==>Called by : <USER>, UGINIT *
19 C. * Author R.Brun ********* *
21 C. ******************************************************************
23 #include "geant321/gcbank.inc"
24 #include "geant321/gcflag.inc"
25 #include "geant321/gcjloc.inc"
26 #include "geant321/gctime.inc"
27 #include "geant321/gcmzfo.inc"
28 #include "geant321/gcscal.inc"
29 COMMON/GCLOCA/NLOCAL(2),LOCAL(20)
31 C. ------------------------------------------------------------------
33 IF(IFINIT(2).NE.0)RETURN
36 C Create one long range division (reverse)
37 C to store all constants
38 C The event structures are created in division 2
43 CALL MZDIV(IXSTOR,IXCONS,'Constants',MINCON,MAXCON,'LRC')
46 C IXDIV and IXCONS are two self contained divisions.
47 C To gain time we specify that to ZEBRA
49 CALL MZXREF(IXCONS,IXDIV,'C')
50 CALL MZXREF(IXDIV,IXCONS,'C')
52 C Define a default work space of KWWORK words
56 C Create a permanent link area for master pointers
58 CALL MZLINK(IXSTOR,'/GCLINK/',JDIGI,JSKLT,JDIGI)
60 C Create a permanent link area for param. pointers
62 CALL MZLINK(IXSTOR,'/GCSLNK/',LSCAN,LSLAST,LSCAN)
64 C Create temporary link areas
66 CALL MZLINT(IXSTOR,'/GCLOCA/',NLOCAL,LOCAL(1),LOCAL(20))
67 CALL MZLINT(IXSTOR,'/GCJLOC/',NJLOC ,JTM,JRANG)
68 CALL MZLINT(IXSTOR,'/GCJLCK/',NJLCK ,JTCKOV,JTASHO)
70 C Define IO descriptors of GEANT banks
72 CALL MZFORM('MATE','5H -F' ,IOMATE)
73 CALL MZFORM('PART','5H -F' ,IOPART)
74 CALL MZFORM('TMED','5H -F' ,IOTMED)
75 CALL MZFORM('SEJD','10I / 1H 1I',IOSEJD)
76 CALL MZFORM('SJDD','/ 1H 1I' ,IOSJDD)
77 CALL MZFORM('SJDH','/ 1H 1I 2F' ,IOSJDH)
78 CALL MZFORM ('STAK', '3I / 3I 9F',IOSTAK)
79 CALL MZFORM('RUNG','20I 8F 2I' ,IORUNG)
81 C Create RUN header bank
83 CALL MZBOOK(IXCONS,JRUNG,JRUNG,1,'RUNG',1,1,30,IORUNG,0)
87 C Fill header with default date,time,Geant and Zebra
88 C version numbers for the 4 main GEANT data structures
92 IQ(JRUNG+2*I+ 9)=IGDATE
93 IQ(JRUNG+2*I+10)=IGTIME
94 Q(JRUNG+2*I+19)=GVERSN
95 Q(JRUNG+2*I+20)=ZVERSN