next up previous index
Next: GEOM110 Positioning a Up: GEANT Previous: GEOM050 The GEANT

GEOM100 Creation of a volume

Routine ID: GEOM100
Author(s): Submitted: 15.08.83
Origin: R.Brun,A.McPhersonRevised: 16.11.93

CALL GSVOLU (CHNAME,CHSHAP,NMED,PAR,NPAR,IVOLU*) Defines a volume with a given name, shape, tracking medium number and shape parameters.

CHNAME
( CHARACTER*4) volume name -- it must be unique;
CHSHAP
( CHARACTER*4) name of one of the GEANT shapes;
NMED
( INTEGER) tracking medium number for the volume -- if other volumes are positioned within this one, their tracking medium replaces the one of the mother;
PAR
( REAL) array containing the shape parameters;
NPAR
( INTEGER) number of parameters -- if zero, then the volume must be positioned via the routine GSPOSP indicating the parameters for each copy (see [GEOM120]);
IVOLU
( INTEGER) internal volume number -- if ≤0

an error condition has happened.

If one of the parameters expressing a length is negative, GEANT will try to maximise its value in each copy, without extending beyond the limits of the mother. This facility can be used in conjunction with the division of volumes using GSDVN, GSDVT, and GSDVX. Restriction apply to this facility:

Examples
      DIMENSION PECAL(3)
      DATA PECAL/1.71,4.,0.2/
 
      CALL GSVOLU('ECAL','BOX ',1,PECAL,3,IVOLU)
CALL GPVOLU (IVOLU) Prints the volume parameters:
IVOLU
( INTEGER) GEANT number of the volume to print -- if IVOLU ≤0 , all volumes will be printed;

GEOM110



next up previous index
Next: GEOM110 Positioning a Up: GEANT Previous: GEOM050 The GEANT


Janne Saarela
Mon Apr 3 12:46:29 METDST 1995