next up previous index
Next: GEOM400 Pseudo-division of Up: GEANT Previous: GEOM310 Finding distance

GEOM320 Reference system transformations

Routine ID: GEOM320
Author(s): Submitted: 18.08.87
Origin: R. BrunRevised: 15.12.93

CALL GMTOD (XM,XD*,IFLAG)

XM
( REAL) array of 3 containing the input position ( IFLAG=1) or direction cosines ( IFLAG=2) in the Master Reference System;
XD
( REAL) array of 3 containing the output position ( IFLAG=1) or direction cosines ( IFLAG=2) in the (current) Daughter Reference System;
IFLAG
( INTEGER) transformation flag:
1
input is a position, it must be translated and rotated;
2
input is a direction, it must be rotated.

This routine transform coordinates or directions from the MRS to the reference system of the current volume. The /GCVOLU/ must be properly filled, either by the tracking routines, by GMEDIA or by GLVOLU.

CALL GDTOM (XD,XM*,IFLAG) Performs the inverse operation to GMTOD.

GEOM400


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