CMS 3D CMS Logo

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

Public Member Functions

 MappedPoint ()
 
 MappedPoint (const Basic2DVector< T > &point, const TkRotation< T > *aRot)
 
 MappedPoint (const T &aU, const T &aV, const TkRotation< T > *aRot)
 
T u () const
 
Basic2DVector< Tunmap () const
 
T v () const
 

Private Attributes

const TkRotation< T > * pRot
 
T theU
 
T theV
 

Detailed Description

template<class T>
class ThirdHitPredictionFromInvLine::MappedPoint< T >

Definition at line 55 of file ThirdHitPredictionFromInvLine.h.

Constructor & Destructor Documentation

◆ MappedPoint() [1/3]

template<class T >
ThirdHitPredictionFromInvLine::MappedPoint< T >::MappedPoint ( )
inline

Definition at line 57 of file ThirdHitPredictionFromInvLine.h.

57 : theU(0), theV(0), pRot(0) {}

◆ MappedPoint() [2/3]

template<class T >
ThirdHitPredictionFromInvLine::MappedPoint< T >::MappedPoint ( const T aU,
const T aV,
const TkRotation< T > *  aRot 
)
inline

Definition at line 58 of file ThirdHitPredictionFromInvLine.h.

58 : theU(aU), theV(aV), pRot(aRot) {}

◆ MappedPoint() [3/3]

template<class T >
ThirdHitPredictionFromInvLine::MappedPoint< T >::MappedPoint ( const Basic2DVector< T > &  point,
const TkRotation< T > *  aRot 
)
inline

Definition at line 59 of file ThirdHitPredictionFromInvLine.h.

59  : pRot(aRot) {
60  T radius2 = point.mag2();
61  Basic3DVector<T> rotated = (*pRot) * point;
62  theU = rotated.x() / radius2;
63  theV = rotated.y() / radius2;
64  }

References point, ThirdHitPredictionFromInvLine::MappedPoint< T >::theU, ThirdHitPredictionFromInvLine::MappedPoint< T >::theV, Basic3DVector< T >::x(), and Basic3DVector< T >::y().

Member Function Documentation

◆ u()

template<class T >
T ThirdHitPredictionFromInvLine::MappedPoint< T >::u ( ) const
inline

Definition at line 65 of file ThirdHitPredictionFromInvLine.h.

65 { return theU; }

References ThirdHitPredictionFromInvLine::MappedPoint< T >::theU.

◆ unmap()

template<class T >
Basic2DVector<T> ThirdHitPredictionFromInvLine::MappedPoint< T >::unmap ( ) const
inline

Definition at line 67 of file ThirdHitPredictionFromInvLine.h.

67  {
68  T invRadius2 = theU * theU + theV * theV;
69  Basic3DVector<T> tmp = (*pRot).multiplyInverse(Basic2DVector<T>(theU, theV));
70  return Basic2DVector<T>(tmp.x() / invRadius2, tmp.y() / invRadius2);
71  }

References ThirdHitPredictionFromInvLine::MappedPoint< T >::theU, ThirdHitPredictionFromInvLine::MappedPoint< T >::theV, and createJobs::tmp.

◆ v()

template<class T >
T ThirdHitPredictionFromInvLine::MappedPoint< T >::v ( ) const
inline

Definition at line 66 of file ThirdHitPredictionFromInvLine.h.

66 { return theV; }

References ThirdHitPredictionFromInvLine::MappedPoint< T >::theV.

Member Data Documentation

◆ pRot

template<class T >
const TkRotation<T>* ThirdHitPredictionFromInvLine::MappedPoint< T >::pRot
private

Definition at line 75 of file ThirdHitPredictionFromInvLine.h.

◆ theU

template<class T >
T ThirdHitPredictionFromInvLine::MappedPoint< T >::theU
private

◆ theV

template<class T >
T ThirdHitPredictionFromInvLine::MappedPoint< T >::theV
private
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
Basic3DVector::y
T y() const
Cartesian y coordinate.
Definition: extBasic3DVector.h:97
Basic2DVector
Definition: extBasic2DVector.h:15
ThirdHitPredictionFromInvLine::MappedPoint::theU
T theU
Definition: ThirdHitPredictionFromInvLine.h:74
T
long double T
Definition: Basic3DVectorLD.h:48
Basic3DVector::x
T x() const
Cartesian x coordinate.
Definition: extBasic3DVector.h:94
ThirdHitPredictionFromInvLine::MappedPoint::theV
T theV
Definition: ThirdHitPredictionFromInvLine.h:74
ThirdHitPredictionFromInvLine::MappedPoint::pRot
const TkRotation< T > * pRot
Definition: ThirdHitPredictionFromInvLine.h:75
point
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
Basic3DVector
Definition: extBasic3DVector.h:30