![]() |
![]() |
#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 61 of file Transform3DPJ.h.
typedef PositionVector3D<Cartesian3D<double>, DefaultCoordinateSystemTag > ROOT::Math::Transform3DPJ::Point |
Definition at line 67 of file Transform3DPJ.h.
typedef DisplacementVector3D<Cartesian3D<double>, DefaultCoordinateSystemTag > ROOT::Math::Transform3DPJ::Vector |
Definition at line 66 of file Transform3DPJ.h.
Enumerator | |
---|---|
kXX | |
kXY | |
kXZ | |
kDX | |
kYX | |
kYY | |
kYZ | |
kDY | |
kZX | |
kZY | |
kZZ | |
kDZ |
Definition at line 70 of file Transform3DPJ.h.
|
inline |
Default constructor (identy rotation) + zero translation
Definition at line 81 of file Transform3DPJ.h.
References SetIdentity().
Referenced by Transform3DPJ().
Construct given a pair of pointers or iterators defining the beginning and end of an array of 12 Scalars
Definition at line 91 of file Transform3DPJ.h.
References SetComponents().
|
inline |
Construct from a rotation and then a translation described by a Vector
Definition at line 99 of file Transform3DPJ.h.
References AssignFrom().
|
inline |
Construct from a translation and then a rotation (inverse assignment)
Definition at line 106 of file Transform3DPJ.h.
References AssignFrom(), and alignCSCRings::r.
|
inlineexplicit |
Construct from a 3D Rotation only with zero translation
Definition at line 115 of file Transform3DPJ.h.
References AssignFrom().
|
inlineexplicit |
Definition at line 119 of file Transform3DPJ.h.
References AssignFrom().
|
inlineexplicit |
Definition at line 122 of file Transform3DPJ.h.
References AssignFrom().
|
inlineexplicit |
Definition at line 125 of file Transform3DPJ.h.
References AssignFrom().
|
inlineexplicit |
Definition at line 129 of file Transform3DPJ.h.
References AssignFrom().
|
inlineexplicit |
Definition at line 132 of file Transform3DPJ.h.
References AssignFrom().
|
inlineexplicit |
Definition at line 135 of file Transform3DPJ.h.
References AssignFrom().
|
inlineexplicit |
Construct from a translation only, represented by any DisplacementVector3D and with an identity rotation
Definition at line 144 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 151 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 166 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 177 of file Transform3DPJ.h.
References AssignFrom(), and Transform3DPJ().
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 |
|
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 212 of file Transform3DPJ.h.
References SetComponents().
|
inline |
Raw constructor from 12 Scalar components
Definition at line 219 of file Transform3DPJ.h.
References SetComponents().
|
protected |
make transformation from first a rotation then a translation
Definition at line 211 of file Transform3DPJ.cc.
References fM, mps_fire::i, kDX, kDY, kDZ, kYX, and kZX.
Referenced by operator!=(), and Transform3DPJ().
|
protected |
make transformation from only rotations (zero translation)
Definition at line 236 of file Transform3DPJ.cc.
References fM, and mps_fire::i.
|
protected |
make transformation from only translation (identity rotations)
Definition at line 249 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 261 of file Transform3DPJ.h.
References begin, fM, and mps_fire::i.
Referenced by ROOT::Math::operator<<().
|
inline |
Get the 12 matrix components into data specified by an iterator begin
Definition at line 273 of file Transform3DPJ.h.
References popcon2dropbox::copy(), and fM.
|
inline |
Get the nine components into 12 scalars
Definition at line 321 of file Transform3DPJ.h.
References fM, GetDecomposition(), kDX, kDY, kDZ, kXX, kXY, kXZ, kYX, kYY, kYZ, kZX, kZY, kZZ, operator()(), AlCaHLTBitMon_ParallelJobs::p, alignCSCRings::r, and findQualityFiles::v.
void ROOT::Math::Transform3DPJ::GetDecomposition | ( | Rotation3D & | r, |
Vector & | v | ||
) | const |
Get the rotation and translation vector representing the 3D transformation
Definition at line 145 of file Transform3DPJ.cc.
References fM, kDX, kDY, kDZ, kXX, kXY, kXZ, kYX, kYY, kYZ, kZX, kZY, kZZ, operator()(), AlCaHLTBitMon_ParallelJobs::p, alignCSCRings::r, and protons_cff::t.
Referenced by CrystalPad::CrystalPad(), GetComponents(), 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 298 of file Transform3DPJ.h.
References fM, kDX, kDY, kDZ, kXX, kXY, kXZ, kYX, kYY, kYZ, kZX, kZY, kZZ, and funct::m.
|
inline |
Return the inverse of the transformation.
Definition at line 442 of file Transform3DPJ.h.
References Invert(), and protons_cff::t.
void ROOT::Math::Transform3DPJ::Invert | ( | ) |
Invert the transformation in place
Definition at line 114 of file Transform3DPJ.cc.
References MessageLogger_cfi::cerr, fM, kDX, kDY, kDZ, kXX, kXY, kXZ, kYX, kYY, kYZ, kZX, kZY, kZZ, and SetComponents().
Referenced by Inverse(), and operator*().
|
inline |
Definition at line 468 of file Transform3DPJ.h.
References AssignFrom(), operator==(), and SetIdentity().
Transformation operation for Position Vector in Cartesian coordinate
Referenced by GetComponents(), GetDecomposition(), 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 169 of file Transform3DPJ.cc.
References GetDecomposition(), alignCSCRings::r, and protons_cff::t.
|
inline |
Transformation operation for Position Vector in any coordinate system
Definition at line 357 of file Transform3DPJ.h.
References operator()().
|
inline |
Transformation operation for Displacement Vector in any coordinate system
Definition at line 366 of file Transform3DPJ.h.
References operator()().
|
inline |
Transformation operation for a Lorentz Vector in any coordinate system
Definition at line 394 of file Transform3DPJ.h.
References operator()().
Transformation on a 3D plane
Definition at line 257 of file Transform3DPJ.cc.
References edmIntegrityCheck::d, gen::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 414 of file Transform3DPJ.h.
References operator()(), operator*=(), and protons_cff::t.
|
inline |
multiply (combine) two transformations
Definition at line 428 of file Transform3DPJ.h.
References Invert(), protons_cff::t, and tmp.
Transform3DPJ & ROOT::Math::Transform3DPJ::operator*= | ( | const Transform3DPJ & | t | ) |
multiply (combine) with another transformation in place
Definition at line 180 of file Transform3DPJ.cc.
References fM, kDX, kDY, kDZ, kXX, kXY, kXZ, kYX, kYY, kYZ, kZX, kZY, kZZ, and SetComponents().
Referenced by operator*().
|
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 234 of file Transform3DPJ.h.
References SetComponents().
|
inline |
Equality/inequality operators
Definition at line 452 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 248 of file Transform3DPJ.h.
References begin, fM, and mps_fire::i.
Referenced by Invert(), operator*=(), operator=(), and Transform3DPJ().
|
inline |
Set the components from 12 scalars
Definition at line 309 of file Transform3DPJ.h.
References PVValHelper::dx, PVValHelper::dy, PVValHelper::dz, fM, kDX, kDY, kDZ, kXX, kXY, kXZ, kYX, kYY, kYZ, kZX, kZY, kZZ, geometryCSVtoXML::xx, geometryCSVtoXML::xy, geometryCSVtoXML::xz, geometryCSVtoXML::yy, geometryCSVtoXML::yz, and geometryCSVtoXML::zz.
|
protected |
Set identity transformation (identity rotation , zero translation)
Definition at line 202 of file Transform3DPJ.cc.
References fM, kDX, kDY, kDZ, kXX, kXY, kXZ, kYX, kYY, kYZ, kZX, kZY, and kZZ.
Referenced by operator!=(), and 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 285 of file Transform3DPJ.h.
References fM, kDX, kDY, kDZ, kXX, kXY, kXZ, kYX, kYY, kYZ, kZX, kZY, kZZ, and funct::m.
|
inline |
Transformation operation for points between different coordinate system tags
Definition at line 375 of file Transform3DPJ.h.
References operator()().
|
inline |
Transformation operation for Displacement Vector of different coordinate systems
Definition at line 385 of file Transform3DPJ.h.
References operator()().
|
private |
Definition at line 498 of file Transform3DPJ.h.
Referenced by AssignFrom(), GetComponents(), GetDecomposition(), GetTransformMatrix(), Invert(), operator*=(), operator==(), SetComponents(), SetIdentity(), and SetTransformMatrix().