DD4hep  1.28.0
Detector Description Toolkit for High Energy Physics
Namespaces | Enumerations | Functions
MatrixHelpers.h File Reference
#include "DD4hep/Objects.h"

Go to the source code of this file.

Namespaces

 dd4hep
 Namespace for the AIDA detector description toolkit.
 
 dd4hep::detail
 DD4hep internal namespace.
 
 dd4hep::detail::matrix
 Namespace for the AIDA detector description matrix helpers.
 

Enumerations

enum  dd4hep::detail::matrix::MatrixEqualityCode { dd4hep::detail::matrix::MATRICES_EQUAL = 1, dd4hep::detail::matrix::MATRICES_DIFFER_TRANSLATION = 2, dd4hep::detail::matrix::MATRICES_DIFFER_ROTATION = 4 }
 

Functions

TGeoIdentity * dd4hep::detail::matrix::_identity ()
 Access the TGeo identity transformation. More...
 
ROOT::Math::XYZVector dd4hep::detail::matrix::_scale (const TGeoMatrix *matrix)
 Extract the scale part of a TGeoMatrix. More...
 
ROOT::Math::XYZVector dd4hep::detail::matrix::_scale (const TGeoMatrix &matrix)
 Extract the scale part of a TGeoMatrix. More...
 
TGeoTranslation * dd4hep::detail::matrix::_translation (const Position &pos)
 Convert a Position object to a TGeoTranslation. More...
 
Position dd4hep::detail::matrix::_translation (const TGeoMatrix *matrix)
 Extract the translational component of a TGeoMatrix as a Position. More...
 
Position dd4hep::detail::matrix::_translation (const TGeoMatrix &matrix)
 Extract the translational component of a TGeoMatrix as a Position. More...
 
TGeoRotation * dd4hep::detail::matrix::_rotationZYX (const RotationZYX &rot)
 Convert a RotationZYX object to a newly created TGeoRotation. More...
 
TGeoRotation * dd4hep::detail::matrix::_rotation3D (const Rotation3D &rot)
 Convert a Rotation3D object to a newly createdTGeoRotation. More...
 
Rotation3D dd4hep::detail::matrix::_rotation3D (const TGeoMatrix *matrix)
 Extract the rotational part of a TGeoMatrix as a Rotation3D. More...
 
Rotation3D dd4hep::detail::matrix::_rotation3D (const TGeoMatrix &matrix)
 Extract the rotational part of a TGeoMatrix as a Rotation3D. More...
 
TGeoHMatrix * dd4hep::detail::matrix::_transform (const Transform3D &trans)
 Convert a Transform3D object to a newly created TGeoHMatrix. More...
 
TGeoHMatrix * dd4hep::detail::matrix::_transform (const Position &pos)
 Convert a Position object to a newly created TGeoHMatrix. More...
 
TGeoHMatrix * dd4hep::detail::matrix::_transform (const RotationZYX &rot)
 Convert a RotationZYX object to a newly created TGeoHMatrix. More...
 
TGeoHMatrix * dd4hep::detail::matrix::_transform (const Rotation3D &rot3D)
 Convert a Rotation3D object to a newly created TGeoHMatrix. More...
 
TGeoHMatrix * dd4hep::detail::matrix::_transform (const Position &pos, const RotationZYX &rot)
 Convert a Position followed by a RotationZYX to a newly created TGeoHMatrix. More...
 
TGeoHMatrix & dd4hep::detail::matrix::_transform (TGeoHMatrix &mat, const Transform3D &trans)
 Set a Transform3D object to a TGeoHMatrix. More...
 
TGeoHMatrix & dd4hep::detail::matrix::_transform (TGeoHMatrix &mat, const Position &pos)
 Set a Position object (translation) to a TGeoHMatrix. More...
 
TGeoHMatrix & dd4hep::detail::matrix::_transform (TGeoHMatrix &mat, const RotationZYX &rot)
 Set a RotationZYX object to a TGeoHMatrix. More...
 
TGeoHMatrix & dd4hep::detail::matrix::_transform (TGeoHMatrix &mat, const Rotation3D &rot3D)
 Set a Rotation3D object to a TGeoHMatrix. More...
 
TGeoHMatrix & dd4hep::detail::matrix::_transform (TGeoHMatrix &mat, const Position &pos, const RotationZYX &rot)
 Set a Position followed by a RotationZYX to a TGeoHMatrix. More...
 
Transform3D dd4hep::detail::matrix::_transform (const TGeoMatrix *matrix)
 Convert a TGeoMatrix object to a generic Transform3D. More...
 
Transform3D dd4hep::detail::matrix::_transform (const TGeoMatrix &matrix)
 
void dd4hep::detail::matrix::_transform (const TGeoMatrix *matrix, Transform3D &trafo)
 Convert a generic ROOT Matrix into a generic transformation Transform3D. More...
 
void dd4hep::detail::matrix::_transform (const TGeoMatrix &matrix, Transform3D &trafo)
 Convert a generic ROOT Matrix into a generic transformation Transform3D. More...
 
void dd4hep::detail::matrix::_decompose (const TGeoMatrix &matrix, Position &pos, Rotation3D &rot)
 Decompose a generic ROOT Matrix into a translation (Position) and a Rotation3D. More...
 
void dd4hep::detail::matrix::_decompose (const TGeoMatrix &matrix, Position &pos, RotationZYX &rot)
 Decompose a generic ROOT Matrix into a translation (Position) and a RotationZYX. More...
 
void dd4hep::detail::matrix::_decompose (const TGeoMatrix &matrix, Position &pos, XYZAngles &rot)
 Decompose a generic ROOT Matrix into a translation (Position) and XYZAngles. More...
 
void dd4hep::detail::matrix::_decompose (const Transform3D &matrix, Position &pos, Rotation3D &rot)
 Decompose a generic Transform3D into a translation (Position) and a Rotation3D. More...
 
void dd4hep::detail::matrix::_decompose (const Transform3D &matrix, Position &pos, RotationZYX &rot)
 Decompose a generic Transform3D into a translation (Position) and a RotationZYX. More...
 
void dd4hep::detail::matrix::_decompose (const Transform3D &matrix, Position &pos, XYZAngles &rot)
 Decompose a generic Transform3D into a translation (Position) and XYZAngles. More...
 
void dd4hep::detail::matrix::_decompose (const Transform3D &matrix, Translation3D &pos, RotationZYX &rot)
 Decompose a generic Transform3D into a translation (Translation3D) and a RotationZYX. More...
 
void dd4hep::detail::matrix::_decompose (const Transform3D &matrix, Translation3D &pos, XYZAngles &rot)
 Decompose a generic Transform3D into a translation (Translation3D) and XYZAngles. More...
 
void dd4hep::detail::matrix::_decompose (const Rotation3D &rot, Position &x, Position &y, Position &z)
 Decompose a Rotation3D into a 3 orthogonal unit vectors. More...
 
XYZAngles dd4hep::detail::matrix::_xyzAngles (const double *matrix)
 Convert a 3x3 rotation matrix to XYZAngles. More...
 
XYZAngles dd4hep::detail::matrix::_xyzAngles (const TGeoMatrix *matrix)
 Convert a the rotation part of a TGeoMatrix to XYZAngles. More...
 
double dd4hep::detail::matrix::determinant (const TGeoMatrix *matrix)
 Access determinant of rotation component (0 if no rotation present) More...
 
double dd4hep::detail::matrix::determinant (const TGeoMatrix &matrix)
 Access determinant of rotation component (0 if no rotation present) More...
 
double dd4hep::detail::matrix::determinant (const Transform3D &trafo)
 Access determinant of the rotation component of a Transform3D. More...
 
double dd4hep::detail::matrix::determinant (const Rotation3D &rot)
 Access determinant of a Rotation3D. More...
 
int dd4hep::detail::matrix::_matrixEqual (const TGeoMatrix &left, const TGeoMatrix &right)
 Check matrices for equality. More...