next up previous contents index
Next: Detector geometry Up: Detector description code and Previous: Materials and media definitions

Rotation matrices

There is a standard set of rotation matrices which are defined by ROTM titles as shown in the example below. The definition includes a keyword and rotation parameters as defined for the input parameters for the routine GSROTM:

*DO  ROTM   1 -A4CW -C1/80  #.Title for CMS 8 created on 940722 at 1159
      #. Thet1   Phi1  Thet2   Phi2  Thet3   Phi3
:000D     90.0    0.0   90.0   90.0    0.0    0.0 #.    (x,y,z) => ( x, y, z)
:180X     90.0    0.0   90.0  -90.0  180.0    0.0 #.    (x,y,z) => ( x,-y,-z)
:XZXD     90.0    0.0   90.0  270.0    0.0    0.0 #.    (x,y,z) => ( x,-y, z)
   ...

The full list of available standard matrices with their definition is given in Appendix A.4.

Access to the index of a standard matrix can be done via call

       CALL DCROTM (CNAME, IROTM*)
where CNAME is the keyword specifying the rotation matrix to be chosen. The key word ``NULL'' is reserved to null rotation which yields the rotation matrix index IROTM to be 0.

In the context of ``GEAN'' style of defining parameters (see next section), the keyword ``ROTM'' followed by ``NEXT'' reserves the next rotation matrix and this will be used in subsequent ``POS'' or ``POSP'' requests which uses the keyword ``NEXT'' or ``LAST'' for the rotation matrix.



Cms Computing
Mon Apr 27 02:30:35 MET DST 1998