CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
SOAFrame< T > Class Template Reference

#include <SOARotation.h>

Public Member Functions

constexpr SOARotation< T > const & rotation () const
 
constexpr SOAFrame ()
 
constexpr SOAFrame (T ix, T iy, T iz, SOARotation< T > const &irot)
 
constexpr void toGlobal (T const vx, T const vy, T const vz, T &ux, T &uy, T &uz) const
 
constexpr void toGlobal (T const vx, T const vy, T &ux, T &uy, T &uz) const
 
constexpr void toLocal (T const vx, T const vy, T const vz, T &ux, T &uy, T &uz) const
 
constexpr T x () const
 
constexpr T y () const
 
constexpr T z () const
 

Private Attributes

T px
 
T py
 
T pz
 
SOARotation< Trot
 

Detailed Description

template<class T>
class SOAFrame< T >

Definition at line 77 of file SOARotation.h.

Constructor & Destructor Documentation

template<class T >
constexpr SOAFrame< T >::SOAFrame ( )
inline

Definition at line 79 of file SOARotation.h.

79 {}
template<class T >
constexpr SOAFrame< T >::SOAFrame ( T  ix,
T  iy,
T  iz,
SOARotation< T > const &  irot 
)
inline

Definition at line 81 of file SOARotation.h.

81 : px(ix), py(iy), pz(iz), rot(irot) {}
SOARotation< T > rot
Definition: SOARotation.h:109

Member Function Documentation

template<class T >
constexpr SOARotation<T> const& SOAFrame< T >::rotation ( void  ) const
inline

Definition at line 83 of file SOARotation.h.

References makeMuonMisalignmentScenario::rot.

83 { return rot; }
SOARotation< T > rot
Definition: SOARotation.h:109
template<class T >
constexpr void SOAFrame< T >::toGlobal ( T const  vx,
T const  vy,
T const  vz,
T ux,
T uy,
T uz 
) const
inline

Definition at line 89 of file SOARotation.h.

References multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, and makeMuonMisalignmentScenario::rot.

89  {
90  rot.multiplyInverse(vx, vy, vz, ux, uy, uz);
91  ux += px;
92  uy += py;
93  uz += pz;
94  }
SOARotation< T > rot
Definition: SOARotation.h:109
template<class T >
constexpr void SOAFrame< T >::toGlobal ( T const  vx,
T const  vy,
T ux,
T uy,
T uz 
) const
inline

Definition at line 96 of file SOARotation.h.

References multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, and makeMuonMisalignmentScenario::rot.

96  {
97  rot.multiplyInverse(vx, vy, ux, uy, uz);
98  ux += px;
99  uy += py;
100  uz += pz;
101  }
SOARotation< T > rot
Definition: SOARotation.h:109
template<class T >
constexpr void SOAFrame< T >::toLocal ( T const  vx,
T const  vy,
T const  vz,
T ux,
T uy,
T uz 
) const
inline

Definition at line 85 of file SOARotation.h.

References multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, and makeMuonMisalignmentScenario::rot.

85  {
86  rot.multiply(vx - px, vy - py, vz - pz, ux, uy, uz);
87  }
SOARotation< T > rot
Definition: SOARotation.h:109
template<class T >
constexpr T SOAFrame< T >::x ( ) const
inline
template<class T >
constexpr T SOAFrame< T >::y ( ) const
inline
template<class T >
constexpr T SOAFrame< T >::z ( ) const
inline

Definition at line 105 of file SOARotation.h.

Referenced by geometryXMLparser.Alignable::pos(), and ntupleDataFormat._HitObject::r3D().

105 { return pz; }

Member Data Documentation

template<class T >
T SOAFrame< T >::px
private

Definition at line 108 of file SOARotation.h.

template<class T >
T SOAFrame< T >::py
private

Definition at line 108 of file SOARotation.h.

template<class T >
T SOAFrame< T >::pz
private

Definition at line 108 of file SOARotation.h.

template<class T >
SOARotation<T> SOAFrame< T >::rot
private

Definition at line 109 of file SOARotation.h.