next up previous index
Next: Examples of use Up: GEANT Previous: The data structure

GEOM200 Rotation matrices

Routine ID: GEOM200
Author(s): Submitted: 01.06.83
Origin: R.Brun, F.CarenaRevised: 14.12.93

The relative position of a volume inside its mother is expressed in GEANT by a translation vector and a rotation matrix which are arguments of the routines GSPOS and GSPOSP. The rotation matrix expresses the transformation from the Mother Reference System to the Daughter Reference System.

A rotation matrix is described to GEANT by giving the polar and azimuthal angles of the axes of the DRS (x', y', z' ) in the MRS via the routine GSROTM.

CALL GSROTM (IROT,THETA1,PHI1,THETA2,PHI2,THETA3,PHI3)

IROT
( INTEGER) number of the rotation matrix;
THETA1
( REAL) polar angle for axis x' ;
PHI1
( REAL) azimuthal angle for axis x' ;
THETA2
( REAL) polar angle for axis y' ;
THI2
( REAL) azimuthal angle for axis y' ;
THETA3
( REAL) polar angle for axis z' ;
PHI3
( REAL) azimuthal angle for axis z' .
Stores rotation matrix IROT in the data structure JROTM. If the matrix is not orthonormal, it will be corrected by setting y' ⊥x' and then z' = x' xy' . A warning message is printed in this case.

Note: the angles THETA and PHI must be given in degrees.



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