CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
ConformalMappingFit::MappedPoint< T > Class Template Reference

Public Types

typedef Basic2DVector< TPointXY
 

Public Member Functions

 MappedPoint ()
 
 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)
 
T u () const
 
PointXY unmap () const
 
T unmappedWeight () const
 
T v () const
 
T weight () const
 

Private Attributes

const TkRotation< T > * pRot
 
T theU
 
T theV
 
T theW
 

Detailed Description

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

Definition at line 49 of file ConformalMappingFit.h.

Member Typedef Documentation

◆ PointXY

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

Definition at line 51 of file ConformalMappingFit.h.

Constructor & Destructor Documentation

◆ MappedPoint() [1/3]

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

Definition at line 52 of file ConformalMappingFit.h.

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

◆ MappedPoint() [2/3]

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

Definition at line 53 of file ConformalMappingFit.h.

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

◆ MappedPoint() [3/3]

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

Definition at line 55 of file ConformalMappingFit.h.

55  : pRot(aRot) {
56  T radius2 = point.mag2();
57  Basic3DVector<T> rotated = (*pRot) * point;
58  theU = rotated.x() / radius2;
59  theV = rotated.y() / radius2;
60  theW = weight * radius2 * radius2;
61  }

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

Member Function Documentation

◆ u()

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

Definition at line 62 of file ConformalMappingFit.h.

62 { return theU; }

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

◆ unmap()

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

Definition at line 65 of file ConformalMappingFit.h.

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

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

◆ unmappedWeight()

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

Definition at line 70 of file ConformalMappingFit.h.

70  {
71  T invRadius2 = theU * theU + theV * theV;
72  return theW * invRadius2 * invRadius2;
73  }

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

◆ v()

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

Definition at line 63 of file ConformalMappingFit.h.

63 { return theV; }

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

◆ weight()

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

Definition at line 64 of file ConformalMappingFit.h.

64 { return theW; }

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

Member Data Documentation

◆ pRot

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

Definition at line 77 of file ConformalMappingFit.h.

◆ theU

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

◆ theV

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

◆ theW

template<class T >
T ConformalMappingFit::MappedPoint< T >::theW
private
ConformalMappingFit::MappedPoint::theV
T theV
Definition: ConformalMappingFit.h:76
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
ConformalMappingFit::MappedPoint::pRot
const TkRotation< T > * pRot
Definition: ConformalMappingFit.h:77
ConformalMappingFit::MappedPoint::theW
T theW
Definition: ConformalMappingFit.h:76
T
long double T
Definition: Basic3DVectorLD.h:48
Basic3DVector::x
T x() const
Cartesian x coordinate.
Definition: extBasic3DVector.h:94
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
ConformalMappingFit::MappedPoint::PointXY
Basic2DVector< T > PointXY
Definition: ConformalMappingFit.h:51
ConformalMappingFit::MappedPoint::theU
T theU
Definition: ConformalMappingFit.h:76
Basic3DVector
Definition: extBasic3DVector.h:30
weight
Definition: weight.py:1