CMS 3D CMS Logo

ConformalMappingFit::MappedPoint< T > Class Template Reference

List of all members.

Public Types

typedef Basic2DVector< T > PointXY

Public Member Functions

 MappedPoint (const PointXY &point, const T &weight, const TkRotation< T > *aRot)
 MappedPoint (const T &aU, const T &aV, const T &aWeight, const TkRotation< T > *aRot)
 MappedPoint ()
u () const
PointXY unmap () const
unmappedWeight () const
v () const
weight () const

Private Attributes

const TkRotation< T > * pRot
theU
theV
theW


Detailed Description

template<class T>
class ConformalMappingFit::MappedPoint< T >

Definition at line 44 of file ConformalMappingFit.h.


Member Typedef Documentation

template<class T>
typedef Basic2DVector<T> ConformalMappingFit::MappedPoint< T >::PointXY

Definition at line 46 of file ConformalMappingFit.h.


Constructor & Destructor Documentation

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

Definition at line 47 of file ConformalMappingFit.h.

00047 : theU(0), theV(0), theW(0), pRot(0) { }

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

Definition at line 48 of file ConformalMappingFit.h.

00050       : theU(aU), theV(aV), theW(aWeight), pRot(aRot) { }

template<class T>
ConformalMappingFit::MappedPoint< T >::MappedPoint ( const PointXY point,
const T &  weight,
const TkRotation< T > *  aRot 
) [inline]

Definition at line 51 of file ConformalMappingFit.h.

References Basic2DVector< T >::mag2(), ConformalMappingFit::MappedPoint< T >::theU, ConformalMappingFit::MappedPoint< T >::theV, ConformalMappingFit::MappedPoint< T >::theW, 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       theW = weight * radius2 * radius2; 
00059     }


Member Function Documentation

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

Definition at line 60 of file ConformalMappingFit.h.

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

00060 {return theU; }

template<class T>
PointXY ConformalMappingFit::MappedPoint< T >::unmap ( void   )  const [inline]

Definition at line 63 of file ConformalMappingFit.h.

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

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

template<class T>
T ConformalMappingFit::MappedPoint< T >::unmappedWeight (  )  const [inline]

Definition at line 69 of file ConformalMappingFit.h.

References ConformalMappingFit::MappedPoint< T >::theU, ConformalMappingFit::MappedPoint< T >::theV, and ConformalMappingFit::MappedPoint< T >::theW.

00069                              {
00070       T invRadius2 = theU*theU+theV*theV;
00071       return theW * invRadius2 * invRadius2;
00072     }

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

Definition at line 61 of file ConformalMappingFit.h.

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

00061 {return theV; }

template<class T>
T ConformalMappingFit::MappedPoint< T >::weight (  )  const [inline]

Definition at line 62 of file ConformalMappingFit.h.

References ConformalMappingFit::MappedPoint< T >::theW.

00062 {return theW; }


Member Data Documentation

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

Definition at line 75 of file ConformalMappingFit.h.

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

Definition at line 74 of file ConformalMappingFit.h.

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

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

Definition at line 74 of file ConformalMappingFit.h.

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

template<class T>
T ConformalMappingFit::MappedPoint< T >::theW [private]

Definition at line 74 of file ConformalMappingFit.h.

Referenced by ConformalMappingFit::MappedPoint< T >::MappedPoint(), ConformalMappingFit::MappedPoint< T >::unmappedWeight(), and ConformalMappingFit::MappedPoint< T >::weight().


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