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 GEOM150<br />

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

Revision : Revised: 18.11.93<br />

Documentation :<br />

Division of a volume - general case<br />

CALL GSDVX<br />

(CHNAME,CHMOTH,NDIV,IAXIS,STEP,C0,NUMED,NDVMAX)<br />

Divide a volume in a given number of parts along a direction, with a given step starting from an offset.<br />

CHNAME<br />

CHMOTH<br />

NDIV<br />

IAXIS<br />

STEP<br />

C0<br />

NUMED<br />

NDVMX<br />

(CHARACTER*4) a unique name for the volume to be generated by subdivision of the mother<br />

volume;<br />

(CHARACTER*4) volume that has to be subdivided;<br />

(INTEGER) number of divisions into which the mother volume is to be divided;<br />

(INTEGER) axis of the division.<br />

(REAL) size of the divisions – this value can be in centimeters or degrees according to the value<br />

of IAXIS;<br />

(REAL) offset where division should start – this value can be in centimeters or degrees according<br />

to the value of IAXIS;<br />

(INTEGER) medium number of the divisions – this can be different from the one of the mother,<br />

as the division cells may leave a portion of the mother undivided (see below) – if NUMED ≤ 0<br />

the medium of the mother;<br />

(INTEGER) expected (maximum) number of divisions – if ≤ 0 or > 255, 255 is assumed.<br />

For more information on the division mechanism, see [GEOM130] and [GEOM140]. For the moment either<br />

NDIV or STEP must be set negative or 0, so that they will be computed from the CHMOTH’s size. The case<br />

with both NDIV and STEP positive is not coded yet. It would permit leaving different gaps at both ends of<br />

the CHMOTH.<br />

Provisionally the code consists of a call to either GSDVN2 or GSDVT2.<br />

CALL GSDVN2<br />

(CHNAME,CHMOTH,NDIV,IAXIS,C0,NUMED)<br />

Divide a volume in a given number of parts along a direction, starting from an offset.<br />

CHNAME<br />

CHMOTH<br />

NDIV<br />

IAXIS<br />

C0<br />

NUMED<br />

(CHARACTER*4) a unique name for the volume to be generated by subdivision of the mother<br />

volume;<br />

(CHARACTER*4) volume that has to be subdivided;<br />

(INTEGER) number of divisions into which the mother volume is to be divided;<br />

(INTEGER) axis of the division.<br />

(REAL) offset where division should start – this value can be in centimeters or degrees according<br />

to the value of IAXIS;<br />

(INTEGER) medium number of the divisions – this can be different from the one of the mother,<br />

as the division cells may leave a portion of the mother undivided (see below) – if NUMED ≤ 0<br />

the medium of the mother;<br />

129 GEOM150 – 1

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

Saved successfully!

Ooh no, something went wrong!