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 15.41.19 by S.Giani
12 SUBROUTINE GSHEAD (NWBUF,UBUF,IADR)
14 C. ******************************************************************
16 C * Stores User's informations in HEADER user bank. *
17 C * IADR is the stating location in the bank *
19 C * on output IADR is the new starting location *
21 C. * ==>Called by : <USER> *
24 C. ******************************************************************
26 #include "geant321/gcbank.inc"
27 #include "geant321/gcunit.inc"
28 #include "geant321/gcflag.inc"
35 IF (LQ(JHEAD-1).EQ.0) THEN
36 CALL MZBOOK (IXDIV,JHU,JHEAD,-1,'HEDU',0,0,NDATA,3,0)
39 NFREE = IQ(JHU-1) - NDATA
40 IF (NFREE.LT.0) CALL MZPUSH (IXDIV,JHU,0,-NFREE,'I')
44 Q(JHU+IADR+I) = UBUF(I)
51 WRITE(CHMAIL,1000) IEVENT
55 1000 FORMAT(' **** GSHEAD: No Header bank in memory for ievent:',I7)