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.21 GEANT User’s Guide XINT002<br />

Origin : Same Submitted: 15.06.84<br />

Revision : Revised: 20.03.94<br />

Documentation :<br />

1 GEANT<br />

GEANT specific commands.<br />

2 GEANT/CVOL<br />

Introduction to the Interactive version of GEANT<br />

Clipping commands. The hidden line removal technique is necessary to visualize properly very complex<br />

detectors. At the same time, it can be useful to visualize the inner elements of a detector in detail. For this<br />

purpose, the commands menu CVOL has been developed: these commands allow subtractions (via boolean<br />

operation) of given shapes from any part of the detector, therefore showing its inner contents. It is possible<br />

to clip each different volume by means of a different shape (BOX , TUBE, CONE, SPHE are available). If<br />

’*’ is given as the name of the volume to be clipped, all volumes are clipped by the given shape. A volume<br />

can be clipped at most twice (even by different shapes); if a volume is explicitely clipped twice, the ’*’ will<br />

not act on it anymore. Giving ’.’ as the name of the volume to be clipped will reset the clipping.<br />

2.1 BOX cnnv [ xmin xmax ymin ymax zmin zmax ]<br />

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

XMIN R “ Lower limit of the Shape X coordinate ” D=-10000.<br />

XMAX R “ Upper limit of the Shape X coordinate ” D=-9999.<br />

YMIN R “ Lower limit of the Shape Y coordinate ” D=-10000.<br />

YMAX R “ Upper limit of the Shape Y coordinate ” D=-9999.<br />

ZMIN R “ Lower limit of the Shape Z coordinate ” D=-10000.<br />

ZMAX R “ Upper limit of the Shape Z coordinate ” D=-9999.<br />

This command performs a boolean subtraction between the volume CNVV and a box placed in the MARS<br />

according the values of the given coordinates. See also CVOL. The following commands will clip by a box,<br />

with a vertex at the origin, the volume specified by NAME (a valid string for the NAME of the volume can<br />

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

box NAME 0 1000 0 1000 0 1000<br />

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

box .<br />

2.2 TUBE cnvv [ rmax zdem xmed ymed zmed ]<br />

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

357 XINT002 – 1

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

Saved successfully!

Ooh no, something went wrong!