|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #ifndef _GEOPRIMITIVES_EULERANGLESHELPERS_H
15 #define _GEOPRIMITIVES_EULERANGLESHELPERS_H
55 if (convention == 0) {
56 ea =
mat.eulerAngles(2, 0, 2);
60 ea =
mat.eulerAngles(2, 1, 2);
71 phiThetaPsi_angles(0) = phi;
72 phiThetaPsi_angles(1) = theta;
73 phiThetaPsi_angles(2) = psi;
75 return phiThetaPsi_angles;
110 if (convention == 0) {
117 double phi = phi_theta_psi(0);
118 double theta = phi_theta_psi(1);
119 double psi = phi_theta_psi(2);
133 if (convention == 0) {
157 if (convention == 0) {
Amg::Vector3D convert_CLHEPPhiThetaPsi_to_EigenEulerAngles(Amg::Vector3D clhep_angles, int convention=0)
Convert CLEHP Phi,Theta,Psi angles to Eigen euler angles using Z-X-Z convention.
double angle(const Amg::Vector3D &v1, const Amg::Vector3D &v2)
calculates the opening angle between two vectors
Amg::RotationMatrix3D setPhi(Amg::RotationMatrix3D mat, double angle, int convention=0)
Definition of ATLAS Math & Geometry primitives (Amg)
Eigen::Matrix< double, 3, 1 > Vector3D
Amg::Vector3D convert_EigenEulerAngles_to_CLHEPPhiThetaPsi(Amg::Vector3D eigen_angles, int convention=0)
Convert Eigen euler angles to CLEHP Phi,Theta,Psi angles.
Eigen::Matrix< double, 3, 3 > RotationMatrix3D
Amg::Vector3D getPhiThetaPsi(Amg::RotationMatrix3D mat, int convention=0)
Get the equivalents to CLHEP Phi, Theta, Psi Euler angles.
Eigen::AngleAxisd AngleAxis3D