22.05.2014 Views

CERN Program Library Long Writeup W5013 - CERNLIB ...

CERN Program Library Long Writeup W5013 - CERNLIB ...

CERN Program Library Long Writeup W5013 - CERNLIB ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Geant 3.16 GEANT User’s Guide GEOM100<br />

Origin : R.Brun,A.McPherson Submitted: 15.08.83<br />

Revision : Revised: 16.11.93<br />

Documentation :<br />

Creation of a volume<br />

CALL GSVOLU<br />

(CHNAME,CHSHAP,NMED,PAR,NPAR,IVOLU*)<br />

Defines a volume with a given name, shape, tracking medium number and shape parameters.<br />

CHNAME<br />

CHSHAP<br />

NMED<br />

PAR<br />

NPAR<br />

IVOLU<br />

(CHARACTER*4) volume name – it must be unique;<br />

(CHARACTER*4) name of one of the GEANT shapes;<br />

(INTEGER) tracking medium number for the volume – if other volumes are positioned within<br />

this one, their tracking medium replaces the one of the mother;<br />

(REAL) array containing the shape parameters;<br />

(INTEGER) number of parameters – if zero, then the volume must be positioned via the routine<br />

GSPOSP indicating the parameters for each copy (see [GEOM120]);<br />

(INTEGER) internal volume number – if ≤ 0 an error condition has happened.<br />

If one of the parameters expressing a length is negative, GEANT will try to maximise its value in each copy,<br />

without extending beyond the limits of the mother. This facility can be used in conjunction with the division<br />

of volumes using GSDVN, GSDVT, and GSDVX. Restriction apply to this facility:<br />

• the daughter should be positioned without a rotation matrix;<br />

• all shapes can be positioned within a similar shape with negative parameters, but only in the centre of<br />

the mother;<br />

• boxes with negative parameters can be positioned in: box, TRD1, TRD2 and TRAP with θ = φ =0;<br />

• HYPE, ELTU and CTUB cannot have negative parameters;<br />

• PCON and PGON can only have 2 z planes.<br />

Examples<br />

DIMENSION PECAL(3)<br />

DATA PECAL/1.71,4.,0.2/<br />

CALL GSVOLU(’ECAL’,’BOX ’,1,PECAL,3,IVOLU)<br />

CALL GPVOLU<br />

(IVOLU)<br />

Prints the volume parameters:<br />

IVOLU (INTEGER) GEANT number of the volume to print – if IVOLU ≤ 0, all volumes will be printed;<br />

119 GEOM100 – 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!