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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Origin : R.Brun,F.Bruyant,A.C.McPherson Submitted: 16.12.83<br />

Revision : S.Egli Revised: 15.12.93<br />

Documentation :<br />

Pseudo-division of a volume<br />

CALL GSORD<br />

(CHNAME,ICORD)<br />

CHNAME<br />

ICORD<br />

(CHARACTER*4) name of the volume;<br />

(INTEGER) direction of the pseudo-divisions:<br />

1 x;<br />

2 y;<br />

3 z;<br />

4 cylindrical R ( √ x 2 + y 2 );<br />

5 spherical ρ ( √ x 2 + y 2 + z 2 );<br />

6 φ, azimuthal angle;<br />

7 θ, polar angle with respect to the z axis.<br />

This routine sets the search flag (Q(JVO+1)) of volume CHNAME to -ICORD. When the definition of the<br />

geometry is complete and GGCLOS is called, this flag is interpreted as a request to order the content of<br />

CHNAME along axis ICORD. This operation is performed by the routine GGORD. GGORD computes the limits<br />

of each of the contents along the given coordinate axis (see [GEOM001]), and prepares the lists of contents<br />

in each of the sections defined by the neighbouring coordinate. The JVOLUM structure is extended, for the<br />

mother volume, with banks which contains the list of boundaries and the lists of contents, so as to permit<br />

a binary search to access the contents of interest. The coordinates are in the local system of the mother<br />

volume. The routine GGORD will not be called if the number of contents exceeds 500.<br />

The actual effect of this routine depends on the setting of the IOPTIM variable in the common /GCOPTI/.<br />

IOPTIM is controlled by the data record OPTI or the interactive command with the same name. The meaning<br />

of the different values of IOPTIM is the following:<br />

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

Saved successfully!

Ooh no, something went wrong!