22.05.2014 Views

CERN Program Library Long Writeup W5013 - CERNLIB ...

CERN Program Library Long Writeup W5013 - CERNLIB ...

CERN Program Library Long Writeup W5013 - CERNLIB ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Geant 3.16 GEANT User’s Guide GEOM320<br />

Origin : R. Brun Submitted: 18.08.87<br />

Revision : Revised: 15.12.93<br />

Documentation :<br />

Reference system transformations<br />

CALL GMTOD<br />

(XM,XD*,IFLAG)<br />

XM<br />

XD<br />

IFLAG<br />

(REAL) array of 3 containing the input position (IFLAG=1) or direction cosines (IFLAG=2) in<br />

the Master Reference System;<br />

(REAL) array of 3 containing the output position (IFLAG=1) or direction cosines (IFLAG=2) in<br />

the (current) Daughter Reference System;<br />

(INTEGER) transformation flag:<br />

1 input is a position, it must be translated and rotated;<br />

2 input is a direction, it must be rotated.<br />

This routine transform coordinates or directions from the MRS to the reference system of the current volume.<br />

The /GCVOLU/ must be properly filled, either by the tracking routines, by GMEDIA or by GLVOLU.<br />

CALL GDTOM<br />

(XD,XM*,IFLAG)<br />

Performs the inverse operation to GMTOD.<br />

138 GEOM320 – 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!