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 45 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 50 of file ThirdHitPredictionFromInvLine.h.

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

51  : pRot(aRot) {
52  T radius2 = point.mag2();
53  Basic3DVector<T> rotated = (*pRot) * point;
54  theU = rotated.x() / radius2;
55  theV = rotated.y() / radius2;
56  }
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 59 of file ThirdHitPredictionFromInvLine.h.

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

59  {
60  T invRadius2 = theU*theU+theV*theV;
62  = (*pRot).multiplyInverse(Basic2DVector<T>(theU,theV));
63  return Basic2DVector<T>( tmp.x()/invRadius2, tmp.y()/invRadius2);
64  }
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 67 of file ThirdHitPredictionFromInvLine.h.

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