CMS 3D CMS Logo

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

Public Member Functions

 MappedPoint ()
 
 MappedPoint (const T &aU, const T &aV, const TkRotation< T > *aRot)
 
 MappedPoint (const Basic2DVector< T > &point, 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 43 of file ThirdHitPredictionFromInvLine.h.

Constructor & Destructor Documentation

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

Definition at line 48 of file ThirdHitPredictionFromInvLine.h.

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

49  : pRot(aRot) {
50  T radius2 = point.mag2();
51  Basic3DVector<T> rotated = (*pRot) * point;
52  theU = rotated.x() / radius2;
53  theV = rotated.y() / radius2;
54  }
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
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 ThirdHitPredictionFromInvLine::MappedPoint< T >::u ( ) const
inline
template<class T >
Basic2DVector<T> ThirdHitPredictionFromInvLine::MappedPoint< T >::unmap ( ) const
inline

Definition at line 57 of file ThirdHitPredictionFromInvLine.h.

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

57  {
58  T invRadius2 = theU*theU+theV*theV;
60  = (*pRot).multiplyInverse(Basic2DVector<T>(theU,theV));
61  return Basic2DVector<T>( tmp.x()/invRadius2, tmp.y()/invRadius2);
62  }
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 ThirdHitPredictionFromInvLine::MappedPoint< T >::v ( ) const
inline

Member Data Documentation

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

Definition at line 65 of file ThirdHitPredictionFromInvLine.h.

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