#include <Transform3DPJ.h>
Public Types | |
enum | ETransform3DMatrixIndex { kXX = 0, kXY = 1, kXZ = 2, kDX = 3, kYX = 4, kYY = 5, kYZ = 6, kDY = 7, kZX = 8, kZY = 9, kZZ =10, kDZ = 11 } |
typedef PositionVector3D < Cartesian3D< double > , DefaultCoordinateSystemTag > | Point |
typedef DisplacementVector3D < Cartesian3D< double > , DefaultCoordinateSystemTag > | Vector |
Public Member Functions | |
template<class IT > | |
void | GetComponents (IT begin, IT end) const |
template<class IT > | |
void | GetComponents (IT begin) const |
void | GetComponents (double &xx, double &xy, double &xz, double &dx, double &yx, double &yy, double &yz, double &dy, double &zx, double &zy, double &zz, double &dz) const |
void | GetDecomposition (Rotation3D &r, Vector &v) const |
template<class ForeignMatrix > | |
void | GetTransformMatrix (ForeignMatrix &m) const |
Transform3DPJ | Inverse () const |
void | Invert () |
bool | operator!= (const Transform3DPJ &rhs) const |
Point | operator() (const Point &p) const |
Vector | operator() (const Vector &v) const |
template<class CoordSystem > | |
PositionVector3D< CoordSystem > | operator() (const PositionVector3D< CoordSystem > &p) const |
template<class CoordSystem > | |
DisplacementVector3D< CoordSystem > | operator() (const DisplacementVector3D< CoordSystem > &v) const |
template<class CoordSystem > | |
LorentzVector< CoordSystem > | operator() (const LorentzVector< CoordSystem > &q) const |
Plane3D | operator() (const Plane3D &plane) const |
template<class AVector > | |
AVector | operator* (const AVector &v) const |
Transform3DPJ | operator* (const Transform3DPJ &t) const |
Transform3DPJ & | operator*= (const Transform3DPJ &t) |
template<class ForeignMatrix > | |
Transform3DPJ & | operator= (const ForeignMatrix &m) |
bool | operator== (const Transform3DPJ &rhs) const |
template<class IT > | |
void | SetComponents (IT begin, IT end) |
void | SetComponents (double xx, double xy, double xz, double dx, double yx, double yy, double yz, double dy, double zx, double zy, double zz, double dz) |
template<class ForeignMatrix > | |
void | SetTransformMatrix (const ForeignMatrix &m) |
template<class CoordSystem , class Tag1 , class Tag2 > | |
void | Transform (const PositionVector3D< CoordSystem, Tag1 > &p1, PositionVector3D< CoordSystem, Tag2 > &p2) const |
template<class CoordSystem , class Tag1 , class Tag2 > | |
void | Transform (const DisplacementVector3D< CoordSystem, Tag1 > &v1, DisplacementVector3D< CoordSystem, Tag2 > &v2) const |
Transform3DPJ () | |
template<class IT > | |
Transform3DPJ (IT begin, IT end) | |
Transform3DPJ (const Rotation3D &r, const Vector &v) | |
Transform3DPJ (const Vector &v, const Rotation3D &r) | |
Transform3DPJ (const Rotation3D &r) | |
Transform3DPJ (const AxisAngle &r) | |
Transform3DPJ (const EulerAngles &r) | |
Transform3DPJ (const Quaternion &r) | |
Transform3DPJ (const RotationX &r) | |
Transform3DPJ (const RotationY &r) | |
Transform3DPJ (const RotationZ &r) | |
template<class CoordSystem , class Tag > | |
Transform3DPJ (const DisplacementVector3D< CoordSystem, Tag > &v) | |
Transform3DPJ (const Vector &v) | |
template<class ARotation , class CoordSystem , class Tag > | |
Transform3DPJ (const ARotation &r, const DisplacementVector3D< CoordSystem, Tag > &v) | |
template<class ARotation , class CoordSystem , class Tag > | |
Transform3DPJ (const DisplacementVector3D< CoordSystem, Tag > &v, const ARotation &r) | |
Transform3DPJ (const Point &fr0, const Point &fr1, const Point &fr2, const Point &to0, const Point &to1, const Point &to2) | |
template<class ForeignMatrix > | |
Transform3DPJ (const ForeignMatrix &m) | |
Transform3DPJ (double xx, double xy, double xz, double dx, double yx, double yy, double yz, double dy, double zx, double zy, double zz, double dz) | |
Protected Member Functions | |
void | AssignFrom (const Rotation3D &r, const Vector &v) |
void | AssignFrom (const Rotation3D &r) |
void | AssignFrom (const Vector &v) |
void | SetIdentity () |
Private Attributes | |
double | fM [12] |
Basic 3D Transformation class describing a rotation and then a translation The internal data are a rotation data and a 3D vector data and they can be represented like a 3x4 matrix The class has a template parameter the coordinate system tag of the reference system to which the transformatioon will be applied. For example for transforming from global to local coordinate systems, the transfrom3D has to be instantiated with the coordinate of the traget system
Definition at line 60 of file Transform3DPJ.h.
typedef PositionVector3D<Cartesian3D<double>, DefaultCoordinateSystemTag > ROOT::Math::Transform3DPJ::Point |
Definition at line 66 of file Transform3DPJ.h.
typedef DisplacementVector3D<Cartesian3D<double>, DefaultCoordinateSystemTag > ROOT::Math::Transform3DPJ::Vector |
Definition at line 65 of file Transform3DPJ.h.
Enumerator | |
---|---|
kXX | |
kXY | |
kXZ | |
kDX | |
kYX | |
kYY | |
kYZ | |
kDY | |
kZX | |
kZY | |
kZZ | |
kDZ |
Definition at line 69 of file Transform3DPJ.h.
|
inline |
Default constructor (identy rotation) + zero translation
Definition at line 80 of file Transform3DPJ.h.
References SetIdentity().
Construct given a pair of pointers or iterators defining the beginning and end of an array of 12 Scalars
Definition at line 90 of file Transform3DPJ.h.
References SetComponents().
|
inline |
Construct from a rotation and then a translation described by a Vector
Definition at line 98 of file Transform3DPJ.h.
References AssignFrom().
|
inline |
Construct from a translation and then a rotation (inverse assignment)
Definition at line 105 of file Transform3DPJ.h.
References AssignFrom(), and alignCSCRings::r.
|
inlineexplicit |
Construct from a 3D Rotation only with zero translation
Definition at line 114 of file Transform3DPJ.h.
References AssignFrom().
|
inlineexplicit |
Definition at line 118 of file Transform3DPJ.h.
References AssignFrom().
|
inlineexplicit |
Definition at line 121 of file Transform3DPJ.h.
References AssignFrom().
|
inlineexplicit |
Definition at line 124 of file Transform3DPJ.h.
References AssignFrom().
|
inlineexplicit |
Definition at line 128 of file Transform3DPJ.h.
References AssignFrom().
|
inlineexplicit |
Definition at line 131 of file Transform3DPJ.h.
References AssignFrom().
|
inlineexplicit |
Definition at line 134 of file Transform3DPJ.h.
References AssignFrom().
|
inlineexplicit |
Construct from a translation only, represented by any DisplacementVector3D and with an identity rotation
Definition at line 143 of file Transform3DPJ.h.
References AssignFrom().
|
inlineexplicit |
Construct from a translation only, represented by a Cartesian 3D Vector, and with an identity rotation
Definition at line 150 of file Transform3DPJ.h.
References AssignFrom().
|
inline |
Construct from a rotation (any rotation object) and then a translation (represented by any DisplacementVector) The requirements on the rotation and vector objects are that they can be transformed in a Rotation3D class and in a Vector
Definition at line 165 of file Transform3DPJ.h.
References AssignFrom().
|
inline |
Construct from a translation (using any type of DisplacementVector ) and then a rotation (any rotation object). Requirement on the rotation and vector objects are that they can be transformed in a Rotation3D class and in a Vector
Definition at line 176 of file Transform3DPJ.h.
References AssignFrom().
ROOT::Math::Transform3DPJ::Transform3DPJ | ( | const Point & | fr0, |
const Point & | fr1, | ||
const Point & | fr2, | ||
const Point & | to0, | ||
const Point & | to1, | ||
const Point & | to2 | ||
) |
Construct transformation from one coordinate system defined by three points (origin + two axis) to a new coordinate system defined by other three points (origin + axis)
fr0 | point defining origin of original reference system |
fr1 | point defining first axis of original reference system |
fr2 | point defining second axis of original reference system |
to0 | point defining origin of transformed reference system |
to1 | point defining first axis transformed reference system |
to2 | point defining second axis transformed reference system |
Definition at line 40 of file Transform3DPJ.cc.
References dtNoiseDBValidation_cfg::cerr, SetComponents(), and SetIdentity().
|
inlineexplicit |
Construct from a linear algebra matrix of size at least 3x4, which must support operator()(i,j) to obtain elements (0,0) thru (2,3). The 3x3 sub-block is assumed to be the rotation part and the translations vector are described by the 4-th column
Definition at line 211 of file Transform3DPJ.h.
References SetComponents().
|
inline |
Raw constructor from 12 Scalar components
Definition at line 218 of file Transform3DPJ.h.
References SetComponents().
|
protected |
make transformation from first a rotation then a translation
Definition at line 212 of file Transform3DPJ.cc.
References fM, i, kDX, kDY, kDZ, kYX, and kZX.
Referenced by Transform3DPJ().
|
protected |
make transformation from only rotations (zero translation)
Definition at line 237 of file Transform3DPJ.cc.
|
protected |
make transformation from only translation (identity rotations)
Definition at line 250 of file Transform3DPJ.cc.
References fM, kDX, kDY, kDZ, kXX, kXY, kXZ, kYX, kYY, kYZ, kZX, kZY, and kZZ.
Get the 12 matrix components into data specified by an iterator begin and another to the end of the desired data (12 past start).
Definition at line 260 of file Transform3DPJ.h.
Referenced by ROOT::Math::operator<<().
|
inline |
Get the 12 matrix components into data specified by an iterator begin
Definition at line 272 of file Transform3DPJ.h.
References filterCSVwithJSON::copy, and fM.
|
inline |
Get the nine components into 12 scalars
Definition at line 320 of file Transform3DPJ.h.
References fM, kDX, kDY, kDZ, kXX, kXY, kXZ, kYX, kYY, kYZ, kZX, kZY, and kZZ.
void ROOT::Math::Transform3DPJ::GetDecomposition | ( | Rotation3D & | r, |
Vector & | v | ||
) | const |
Get the rotation and translation vector representing the 3D transformation
Definition at line 146 of file Transform3DPJ.cc.
References fM, kDX, kDY, kDZ, kXX, kXY, kXZ, kYX, kYY, kYZ, kZX, kZY, and kZZ.
Referenced by CrystalPad::CrystalPad(), and operator()().
|
inline |
Get components into a linear algebra matrix of size at least 3x4, which must support operator()(i,j) for write access to elements (0,0) thru (2,3).
Definition at line 297 of file Transform3DPJ.h.
References fM, kDX, kDY, kDZ, kXX, kXY, kXZ, kYX, kYY, kYZ, kZX, kZY, kZZ, and m.
|
inline |
Return the inverse of the transformation.
Definition at line 441 of file Transform3DPJ.h.
References Invert(), and lumiQTWidget::t.
void ROOT::Math::Transform3DPJ::Invert | ( | ) |
Invert the transformation in place
Definition at line 115 of file Transform3DPJ.cc.
References dtNoiseDBValidation_cfg::cerr, fM, kDX, kDY, kDZ, kXX, kXY, kXZ, kYX, kYY, kYZ, kZX, kZY, kZZ, and SetComponents().
Referenced by Inverse().
|
inline |
Definition at line 467 of file Transform3DPJ.h.
References operator==().
Transformation operation for Position Vector in Cartesian coordinate
Definition at line 157 of file Transform3DPJ.cc.
References GetDecomposition(), alignCSCRings::r, and lumiQTWidget::t.
Referenced by operator()(), operator*(), and Transform().
Transformation operation for Displacement Vectors in Cartesian coordinate For the Displacement Vectors only the rotation applies - no translations
Definition at line 170 of file Transform3DPJ.cc.
References GetDecomposition(), alignCSCRings::r, and lumiQTWidget::t.
|
inline |
Transformation operation for Position Vector in any coordinate system
Definition at line 356 of file Transform3DPJ.h.
References operator()().
|
inline |
Transformation operation for Displacement Vector in any coordinate system
Definition at line 365 of file Transform3DPJ.h.
References operator()().
|
inline |
Transformation operation for a Lorentz Vector in any coordinate system
Definition at line 393 of file Transform3DPJ.h.
References operator()().
Transformation on a 3D plane
Definition at line 258 of file Transform3DPJ.cc.
References n, and AlCaHLTBitMon_ParallelJobs::p.
|
inline |
Transformation operation for Vectors. Apply same rules as operator() depending on type of vector. Will work only for DisplacementVector3D, PositionVector3D and LorentzVector
Definition at line 413 of file Transform3DPJ.h.
References operator()().
|
inline |
multiply (combine) two transformations
Definition at line 427 of file Transform3DPJ.h.
References lumiQTWidget::t, and tmp.
Transform3DPJ & ROOT::Math::Transform3DPJ::operator*= | ( | const Transform3DPJ & | t | ) |
multiply (combine) with another transformation in place
Definition at line 181 of file Transform3DPJ.cc.
References fM, kDX, kDY, kDZ, kXX, kXY, kXZ, kYX, kYY, kYZ, kZX, kZY, kZZ, and SetComponents().
|
inline |
Construct from a linear algebra matrix of size at least 3x4, which must support operator()(i,j) to obtain elements (0,0) thru (2,3). The 3x3 sub-block is assumed to be the rotation part and the translations vector are described by the 4-th column
Definition at line 233 of file Transform3DPJ.h.
References SetComponents().
|
inline |
Equality/inequality operators
Definition at line 451 of file Transform3DPJ.h.
References fM.
Referenced by operator!=().
Set the 12 matrix components given an iterator to the start of the desired data, and another to the end (12 past start).
Definition at line 247 of file Transform3DPJ.h.
Referenced by Invert(), operator*=(), operator=(), and Transform3DPJ().
|
inline |
Set the components from 12 scalars
Definition at line 308 of file Transform3DPJ.h.
References fM, kDX, kDY, kDZ, kXX, kXY, kXZ, kYX, kYY, kYZ, kZX, kZY, kZZ, and create_public_lumi_plots::xy.
|
protected |
Set identity transformation (identity rotation , zero translation)
Definition at line 203 of file Transform3DPJ.cc.
References fM, kDX, kDY, kDZ, kXX, kXY, kXZ, kYX, kYY, kYZ, kZX, kZY, and kZZ.
Referenced by Transform3DPJ().
|
inline |
Set components from a linear algebra matrix of size at least 3x4, which must support operator()(i,j) to obtain elements (0,0) thru (2,3). The 3x3 sub-block is assumed to be the rotation part and the translations vector are described by the 4-th column
Definition at line 284 of file Transform3DPJ.h.
References fM, kDX, kDY, kDZ, kXX, kXY, kXZ, kYX, kYY, kYZ, kZX, kZY, kZZ, and m.
|
inline |
Transformation operation for points between different coordinate system tags
Definition at line 374 of file Transform3DPJ.h.
References operator()().
|
inline |
Transformation operation for Displacement Vector of different coordinate systems
Definition at line 384 of file Transform3DPJ.h.
References operator()().
|
private |
Definition at line 497 of file Transform3DPJ.h.
Referenced by AssignFrom(), GetComponents(), GetDecomposition(), GetTransformMatrix(), Invert(), operator*=(), operator==(), SetComponents(), SetIdentity(), and SetTransformMatrix().