next up previous index
Next: Interactive use Up: GEANT Previous: DRAW140 Drawing Track

DRAW210 Drawing the geometrical tree

Routine ID: DRAW210
Author(s): Submitted: 15.01.84
Origin: P.ZanariniRevised: 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)

CHNAME
( CHARACTER*4) volume name;
LEVMAX
( INTEGER) depth levels (if 0 all levels are taken) default is 3;
ISEL
( INTEGER) used to select options in the picture of the tree:
0
only the node name is drawn;
xxxx1
multiplicity is added:
  • each node that has been positioned several times (by GSPOS or GSPOSP) has a multiplicity number preceded by the symbol '*';
  • each node that has been obtained by division mechanism (by GSDVN, GSDVT, etc.) has a multiplicity number preceded by the symbol #;
xxx1x
ONLY information is added. volumes that are MANY will be drawn as three square nodes, one overlapping the others but slightly shifted;

Note: if CHNAME itself is MANY it will not be recognised as such, because this information is stored in its mother which is unknown;

xx1xx
DET information is added; if a volumes is a detector it is drawn as a square node with another one slightly larger around it;
x1xxx
SEEN information is added; if a volume is not seen (either because of its SEEN attribute or because of its ancestors SEEN attributes affecting the whole tree path) its square node is drawn by using dashed lines;
1xxxx
a little picture of the volume is added above each node.

 

      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. gif. 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.




next up previous index
Next: Interactive use Up: GEANT Previous: DRAW140 Drawing Track


Janne Saarela
Mon Apr 3 12:46:29 METDST 1995