Routine ID: IOPA500 | |
---|---|
Author(s): | Submitted: 20.08.87 |
Origin: R.Brun | Revised: 17.12.93 |
CALL GRIN (CHOBJ,IDVERS*,CHOPT)
This routine reads GEANT data structures from the current working directory of an RZ file (see the ZEBRA documentation for a clarification of this concept). Example:
CALL GRFILE(1,'Geometry.dat',' ') CALL GRIN ('VOLU',1,' ') CALL GRIN ('MATE',1,' ') CALL GRIN ('TMED',1,' ') CALL GRIN ('ROTM',1,' ') CALL GRIN ('PART',1,' ') CALL GRIN ('SCAN',1,' ') CALL GRIN ('SETS',1,' ')
The same result can be achieved by:
CALL GRFILE(1,'Geometry.dat','I')
CALL GROUT (CHOBJ,IDVERS,CHOPT) The meaning of the arguments is the same than in the previous routine GRIN, but for writing instead than for reading.
This routine writes GEANT data structures into the current working
directory of an RZ file (see the ZEBRA documentation for
a clarification of this concept).
Note that if the cross-sections and energy loss tables
are available in the data structure JMATE, then they are
saved on the data base.
The data structures saved by this routine can be retrieved
with the routine GRIN.
Before calling this routine a
tt RZ data base must have been
created using GRFILE.
The data base must be closed with RZEND. Example:
CALL GRFILE(1,'Geometry.dat','N') CALL GROUT ('VOLU',1,' ') CALL GROUT ('MATE',1,' ') CALL GROUT ('TMED',1,' ') CALL GROUT ('ROTM',1,' ') CALL GROUT ('PART',1,' ') CALL GROUT ('SCAN',1,' ') CALL GROUT ('SETS',1,' ')
The same result can be achieved by:
CALL GRFILE(1,'Geometry.dat','NO')
The interactive version of tt GEANT provides facilities to interactively update, create and display objects.
The routines GRGET and GRSAVE are obsolete and should not be used.