CMS 3D CMS Logo

ThirdHitPredictionFromInvParabola::MappedPoint< T > Class Template Reference

List of all members.

Public Member Functions

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

Private Attributes

const TkRotation< T > * pRot
theU
theV


Detailed Description

template<class T>
class ThirdHitPredictionFromInvParabola::MappedPoint< T >

Definition at line 47 of file ThirdHitPredictionFromInvParabola.h.


Constructor & Destructor Documentation

template<class T>
ThirdHitPredictionFromInvParabola::MappedPoint< T >::MappedPoint (  )  [inline]

Definition at line 49 of file ThirdHitPredictionFromInvParabola.h.

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

template<class T>
ThirdHitPredictionFromInvParabola::MappedPoint< T >::MappedPoint ( const T &  aU,
const T &  aV,
const TkRotation< T > *  aRot 
) [inline]

Definition at line 50 of file ThirdHitPredictionFromInvParabola.h.

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

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

Definition at line 52 of file ThirdHitPredictionFromInvParabola.h.

References Basic2DVector< T >::mag2(), ThirdHitPredictionFromInvParabola::MappedPoint< T >::theU, ThirdHitPredictionFromInvParabola::MappedPoint< T >::theV, Basic3DVector< T >::x(), and Basic3DVector< T >::y().

00053         : pRot(aRot) {
00054       T radius2 = point.mag2();
00055       Basic3DVector<T> rotated = (*pRot) * point;
00056       theU = rotated.x() / radius2;
00057       theV = rotated.y() / radius2;
00058     }


Member Function Documentation

template<class T>
T ThirdHitPredictionFromInvParabola::MappedPoint< T >::u (  )  const [inline]

Definition at line 59 of file ThirdHitPredictionFromInvParabola.h.

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

Referenced by ThirdHitPredictionFromInvParabola::coeffA(), ThirdHitPredictionFromInvParabola::coeffB(), and ThirdHitPredictionFromInvParabola::ipFromCurvature().

00059 {return theU; } 

template<class T>
Basic2DVector<T> ThirdHitPredictionFromInvParabola::MappedPoint< T >::unmap ( void   )  const [inline]

Definition at line 61 of file ThirdHitPredictionFromInvParabola.h.

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

Referenced by ThirdHitPredictionFromInvParabola::operator()().

00061                                     {
00062        T invRadius2 = theU*theU+theV*theV; 
00063        Basic3DVector<T> tmp
00064            = (*pRot).multiplyInverse(Basic2DVector<T>(theU,theV));
00065        return Basic2DVector<T>( tmp.x()/invRadius2, tmp.y()/invRadius2);
00066     }

template<class T>
T ThirdHitPredictionFromInvParabola::MappedPoint< T >::v (  )  const [inline]

Definition at line 60 of file ThirdHitPredictionFromInvParabola.h.

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

Referenced by ThirdHitPredictionFromInvParabola::coeffA(), ThirdHitPredictionFromInvParabola::coeffB(), and ThirdHitPredictionFromInvParabola::ipFromCurvature().

00060 {return theV; }


Member Data Documentation

template<class T>
const TkRotation<T>* ThirdHitPredictionFromInvParabola::MappedPoint< T >::pRot [private]

Definition at line 69 of file ThirdHitPredictionFromInvParabola.h.

template<class T>
T ThirdHitPredictionFromInvParabola::MappedPoint< T >::theU [private]

Definition at line 68 of file ThirdHitPredictionFromInvParabola.h.

Referenced by ThirdHitPredictionFromInvParabola::MappedPoint< T >::MappedPoint(), ThirdHitPredictionFromInvParabola::MappedPoint< T >::u(), and ThirdHitPredictionFromInvParabola::MappedPoint< T >::unmap().

template<class T>
T ThirdHitPredictionFromInvParabola::MappedPoint< T >::theV [private]

Definition at line 68 of file ThirdHitPredictionFromInvParabola.h.

Referenced by ThirdHitPredictionFromInvParabola::MappedPoint< T >::MappedPoint(), ThirdHitPredictionFromInvParabola::MappedPoint< T >::unmap(), and ThirdHitPredictionFromInvParabola::MappedPoint< T >::v().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:33:26 2009 for CMSSW by  doxygen 1.5.4