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 GSTSET(FNAME,ANAME,INST,SITE,DEPT,RESP)
15 * This subroutine starts a SET file.
17 * It writes the beginning of the file, with a relevant header
18 * A SET data assembly is intialized after the header.
20 #include "geant321/gcsetf.inc"
21 #include "geant321/gcunit.inc"
24 * *** name of the SET-file:
27 * *** name of the data assembly:
30 CHARACTER*24 INST,SITE,DEPT,RESP
32 * *** File name and other general input to be read in by the user **
33 IF(INDEX(FNAME,'.').EQ.0) THEN
38 #if !defined(CERNLIB_IBM)
39 FNAMES=FNAME(1:IT)//'.set'
41 #if defined(CERNLIB_IBM)
42 FNAMES='/'//FNAME(1:MIN(IT,8))//' SET A1'
46 OPEN (UNIT=NUNIT1, FILE=FNAMES, STATUS='UNKNOWN', ERR=10 )
48 * *** library call for date and time:
49 CALL DATIMH (DATE,TIME)
54 WRITE (BLKSTR,10000) INST,SITE,DEPT,RESP
57 WRITE (NUNIT1,'(A80)') JVSTR
60 WRITE (NUNIT1,10100) DATE(7:8),DATE(4:5),DATE(1:2),
61 + TIME(1:2),TIME(4:5),TIME(7:8)
65 WRITE (BLKSTR,10200) ANAME
68 WRITE(NUNIT1,'(A80)')JVSTR
71 WRITE (NUNIT1,'(A)') ',1,0.01,0,-300.,300.,-300.,300.,-300.,300.'
72 WRITE (NUNIT1,'(A)') '#9920,:12,0.005,:14,0,:15,0'
73 WRITE (NUNIT1,'(A)') '@301,2#301,1.,0.,0.,0.,1.
74 + ,0.,0.,0.,1.,0.,0.,0.'
78 10 WRITE(CHMAIL,'('' Error opening the .SET file. '')')
80 WRITE(CHMAIL,'(''Check your directory and unit number in use'')')
82 WRITE(CHMAIL,'('' CADINT cannot proceed. Program terminated '')')
86 10000 FORMAT('@9900#9900,''Z68-300.89.06'',''2.0'',''
87 +CADINT'',''1.20'',''',A,''',''',A,''',''',A,
89 10100 FORMAT('#9901,19',A2,',',A2,',',A2,',',A2,',',A2,',',A2)
90 10200 FORMAT('@9901,1,''',A4,'''#9905,3,1.')