The interactive commands

+-------------+                                               +----------##
| Geant 3.15  |               GEANT User's Guide              | DRAW500  ##
+-------------+                                               +----------##
                                   

Author(s) : F.Carminati, S.Giani Submitted: 09.11.92 Origin : Same Revised: 09.11.92

Some of the graphics functionality of GEANT 3.16 is available only from the interactive version. To run the interactive version the user should link the application using as main program the GXINT316 code, which usually is in the same directory where the GEANT library is. For more information on this subject the user is referred to the [XINT] section.

We give here a short description of these commands which do not correspond to a callable interface.

LENS command

Once that a drawing (detectors, tracks or hits) is in a view bank, it is possible to scan it in great detail via the LENS facility (with X11): clicking on the left button of the mouse, it is possible to define a frame (lens) on the drawing through which it will appear zoomed; clicking then on the central button will translate the lens over the drawing, while clicking the left one will change the magnification power of the lens; clicking once on the right button is for changing action, clicking twice is to quit.

EDITV command

This command which helps in the interactive debugging or tuning of the detector geometry is the interactive command EDITV, [XINT130], by which it is possible to modify interactively some geometrical parameters set by the user routines defining the detector geometry.

MEASURE command

This command allows the user to measure the distance between two points on the screen and to translate this to the real distance in centimeters in the real coordinate system.

Hidden line removal commands

The following commands are only effective when the hidden-line removal mode is active (HIDE option set to ON via the GDOPT routine or the DOPT command).

CVOL menu

The hidden-line removal technique is necessary to visualize properly very complex detectors. At the same time, it can be useful to visualize the inner elements of a detector in detail. For this purpose, the commands menu CVOL has been developed: these commands allow subtractions (via boolean operation) of given shapes from any part of the detector, thereby showing its inner contents. It is possible to clip each different volume by means of a different shape (BOX, TUBE, CONE, SPHE are available). If '*' is given as the name of the volume to be clipped, all volumes are clipped by the given shape. A volume can be clipped at most twice (even by different shapes); if a volume is explicitely clipped twice, the '*' will not act on it anymore. Giving '.' as the name of the volume to be clipped will reset the clipping.

MOVE command

The interactive MOVE command with the option T gives the possibility to rotate, zoom and translate in real time the tracks stored in the JXYZ data structure and the hits for one event. The option H of the interactive MOVE command gives the possibility to rotate, zoom and translate in real time the hits stored for one event. In this 3D display of the physical event it is possible to obtain a printout of the content of a hit by picking it with the mouse.

BOMB command

It may be nice to obtain an exploded view of the detector. This can be obtained via the BOMB command. It has one real argument boom. If boom is positive (values <1 are suggested, but any value is possible) all the volumes are shifted by a distance proportional to boom along the direction between their centre and the origin of the MARS; the volumes which are symmetric with respect to this origin are simply not shown. boom equal to 0 resets the normal mode. A negative (>-1) value of boom will cause an implosion; for even lower values of boom the volumes' positions will be reflected respect to the origin. This command can be useful to improve the 3D effect for very complex detectors.

SHIFT command

It is possible to draw a volume shifted from its initial position. It can be useful if the user wants to extract a volume or some volumes from the detector to show them more clearly. The last requested SHIFT for each volume is performed. Moreover, the SHIFT of each volume will be performed starting from where its mother has been shifted, so that it's easier to SHIFT nicely sets of volumes using the mother-daughter relationships. If '.' is given as the name of the volume to be shifted, the shifts for all volumes will be reset.