Routine ID: DRAW140 | |
---|---|
Author(s): | Submitted: 07.03.84 |
Origin: R.Brun, W.Gebel, P.Zanarini | Revised: 11.12.92 |
The hits generated by the tracking package and stored in the data structure JHITS can be displayed by the following routines:
Different symbols for each subdetector can be used, chosen among hardware characters (dots), software crosses, or from the HPLOT table of software characters. The size of the software characters and crosses is given as an argument to GDAHIT and GDHITS, while it is computed as a function of the hits value in GDCHIT.
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. This allow a 3D display of the event where it is possible to pick one hit with the mouse and have the hit values printed. The interactive command LENS allows a detailed visual scanning of the hits displayed (see the interactive section).
CALL GDHITS (CHUSET,CHUDET,ITRA,ISYMB,SSYMB) Draws the hit points as stored by GSAHIT which were generated by track ITRA in detector CHUDET of set CHUSET, with the currently selected view parameters in /GCDRAW/. The character plotted at each point may be chosen via ISYMB:
-1 | (small) hardware points | (fast) |
0 | software crosses | (default) |
840/850 | empty/full circles | (slow) |
841/851 | empty/full squares | (slow) |
842/852 | empty/full triangles (up) | (slow) |
843/853 | empty diamond/full triangle (down) | (slow) |
844/854 | empty/full stars | (slow) |
More information on the meaning of the ISIMB value can be found in the HPLOT manual[]. Any value for ISYMB which is not in the above table is equivalent to option 0. Except for ISYMB = -1, the size of the character can be chosen by SSYMB. On the 2D projection on the screen one can distinguish which set/detector a given track passes, by drawing different symbols for the hits in different sets/detectors. The size of these symbols may then be chosen to suit the scale of the total picture (detectors and tracks).
CALL GDRAW('CAVE',40.,40.,0.,10.,10.,.04,.04) CALL IGSET('TXCI',2.) CALL GDHITS('DRFT','FSP ',0,850,.3) CALL IGSET('TXCI',3.) CALL GDHITS('DRFT','RSP1',0,851,.3) CALL IGSET('TXCI',4.) CALL GDHITS('DRFT','RSP2',0,852,.3) CALL IGSET('TXCI',5.) CALL GDHITS('DRFT','RSP3',0,853,.3)
Figure: example of use of GDHITS
Note: It is obligatory for the use of this routine that the spatial MARS (MAster Reference System) current coordinates of the hits are stored as the first 3 elements of the hit [HITS200].
Note: It is obligatory for the use of this routine that the spatial MARS ( MAster Reference System) current coordinates of the hits are stored as the first 3 elements of the hit [HITS200].
An example of use of the hits drawing routines is given in fig .
P.Zanarini, S.Giani