Routine ID: DRAW210 | |
---|---|
Author(s): | Submitted: 15.01.84 |
Origin: P.Zanarini | Revised: 10.12.93 |
The geometrical tree is a hierarchical representation of the structure of the detector, based on the mother-daughter relationship among the various volumes composing it. The GDTREE routine (corresponding to the DTREE interactive command) allows the drawing of the logical tree, displaying name, multiplicity and other information about the volumes.
CALL GDTREE (CHNAME,LEVMAX,ISEL)
Note: if CHNAME itself is MANY it will not be recognised as such, because this information is stored in its mother which is unknown;
CALL GDTREE('FD ',5,11111)
Figure: Example of geometrical tree structure
GDTREE draws the tree of the volume data structure starting
from the volume CHNAME, for LEVMAX depth levels;
a continuation link line is drawn for those elements
at the last level on the picture but having descendants.
An example of use of GDTREE can be found in Fig. .
For every node, as many red arrows as the number of existing levels below it
are plotted on the link; vice versa, as many green arrows as the number of
existing levels before it are also plotted.
When running GEANT interactively, if the ISEL
argument is not specified, control is given to the
mouse after issuing the DTREE command. This allows the display of various
volume parameters and the navigation of the geometrical tree by
clicking the mouse buttons.
The size of the picture and the dimensions of each
element and arrows are computed automatically.