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 T &aU, const T &aV, const T &aWeight, const TkRotation< T > *aRot)
 
 MappedPoint (const PointXY &point, const T &weight, 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 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
template<class T >
ConformalMappingFit::MappedPoint< T >::MappedPoint ( const T aU,
const T aV,
const T aWeight,
const TkRotation< T > *  aRot 
)
inline
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(), point, theW, Basic3DVector< T >::x(), and Basic3DVector< T >::y().

53  : pRot(aRot) {
54  T radius2 = point.mag2();
55  Basic3DVector<T> rotated = (*pRot) * point;
56  theU = rotated.x() / radius2;
57  theV = rotated.y() / radius2;
58  theW = weight * radius2 * radius2;
59  }
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
Definition: weight.py:1
long double T
*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

Member Function Documentation

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

Definition at line 60 of file ConformalMappingFit.h.

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

Definition at line 63 of file ConformalMappingFit.h.

References tmp, Basic3DVector< T >::x(), and Basic3DVector< T >::y().

63  {
64  T invRadius2 = theU*theU+theV*theV;
66  = (*pRot).multiplyInverse(Basic2DVector<T>(theU,theV));
67  return PointXY(tmp.x()/invRadius2, tmp.y()/invRadius2);
68  }
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
long double T
template<class T >
T ConformalMappingFit::MappedPoint< T >::unmappedWeight ( ) const
inline

Definition at line 69 of file ConformalMappingFit.h.

References theW.

69  {
70  T invRadius2 = theU*theU+theV*theV;
71  return theW * invRadius2 * invRadius2;
72  }
long double T
template<class T >
T ConformalMappingFit::MappedPoint< T >::v ( ) const
inline

Definition at line 61 of file ConformalMappingFit.h.

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

Definition at line 62 of file ConformalMappingFit.h.

References 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.

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

Definition at line 74 of file ConformalMappingFit.h.

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

Definition at line 74 of file ConformalMappingFit.h.