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.

RMAX R “ External radius of tube ” D=0.1<br />

ZDEM R “ Half length of tube axis ” D=0.1<br />

XMED R “ Center X coordinate ” D=-10000.<br />

YMED R “ Center Y coordinate ” D=-10000.<br />

ZMED R “ Center Z coordinate ” D=-10000.<br />

This command performs a boolean subtraction between the volume CNVV and a tube; the tube has the given<br />

parameters and is placed in the MARS according the given coordinates of its center. See also CVOL. The<br />

following commands will clip, by a tube, positioned according to the given parameters, the volume specified<br />

by NAME (a valid string for the NAME of the volume can be found using the DTREE command).<br />

EXAMPLE -<br />

dopt hide on<br />

satt * seen -2<br />

drawNAME 40 40 0 10 10 .01 .01<br />

next<br />

tube * 500 1000 500 0 0<br />

drawNAME 40 40 0 10 10 .01 .01<br />

box .<br />

2.3 CONE cnvv [ rmax1 rmax2 zdem xmed ymed zmed ]<br />

CNVV C “ Name of volume to be clipped ” D=’* ’<br />

RMAX1 R “ Min external radius ” D=0.1<br />

RMAX2 R “ Max external radius ” D=0.1<br />

ZDEM R “ Half length of cone axis ” D=0.1<br />

XMED R “ Center X coordinate ” D=-10000.<br />

YMED R “ Center Y coordinate ” D=-10000.<br />

ZMED R “ Center Z coordinate ” D=-10000.<br />

This command performs a boolean subtraction between the volume CNVV and a cone; the cone has the<br />

given parameters and is placed in the MARS according to the given coordinates of its center. See also<br />

CVOL. The following commands will clip by a cone, positioned according the given parameters, the volume<br />

specified by NAME (a valid string for the NAME of the volume can be found using the DTREE command).<br />

EXAMPLE -<br />

dopt hide on<br />

satt * seen -2<br />

drawNAME 40 40 0 10 10 .01 .01<br />

next<br />

cone * 1 750 1000 0 0 1000<br />

drawNAME 40 40 0 10 10 .01 .01<br />

box .<br />

2.4 SPHE cnvv [ rmax xmed ymed zmed ]<br />

CNVV C “ Name of volume to be clipped ” D=’* ’<br />

RMAX R “ External radius of sphere ” D=0.1<br />

XMED R “ Center X coordinate ” D=-10000.<br />

XINT002 – 2 358

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

Saved successfully!

Ooh no, something went wrong!