/home/mweber/Dokumente/CMS/Alignment/kalmanalignment/trunk/simulation/ThreeDModel.cc File ReferenceDefinition of functions and procedures for 3D manipulation with matrices. More... #include <iostream> #include <TRandom.h> #include <TMath.h> #include "Utilities.h" #include "ThreeDModel.h"
Detailed DescriptionDefinition of functions and procedures for 3D manipulation with matrices. Rotations are always defined to transform global coordinates to local coordinates. (GEANT convention). Function Documentation
Fill a rotation matrix with the Karimaki angles alpha, beta, gamma. rotation matrix definition from Veikko Karimaki
Fill a rotation matrix with polar angles. Only two angles (theta, phi) must be given, the third rotation angle is assumed to be zero. In order to get a vector in a global coordinate system with polar angle theta and azimuth angle phi, one has to apply the inverse rotation to a vector along z in the local coordinate frame (0, 0, 1).
Extract from a rotation matrix the Karimaki angles alpha, beta, gamma.
Test the Karimaki rotation matrices.
Test polar angle functions (FillRotMatrixPolar)
Test a matrix by generating a random matrix with polar angles and extract the Karimaki angles. Then the Karimaki angles are used to filled another matrix, and the two matrices are being compared. Generated on Thu Jul 14 2011 23:52:01 for Kalman Alignment by 1.7.3 |