Next: GEOM110 Positioning a
Up: GEANT
Previous: GEOM050 The GEANT
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
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:
- the daughter should be positioned without a rotation matrix;
- all shapes can be positioned within a similar shape with negative
parameters, but only in the centre of the mother;
- boxes with negative parameters can be positioned in: box, TRD1,
TRD2 and TRAP with
;
- HYPE, ELTU and CTUB cannot have negative parameters;
- PCON and PGON can only have 2 z planes.
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
, all volumes will be printed;
GEOM110
Next: GEOM110 Positioning a
Up: GEANT
Previous: GEOM050 The GEANT
Janne Saarela
Mon Apr 3 12:46:29 METDST 1995