CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ThirdHitPredictionFromInvParabola::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)
 
u () const
 
Basic2DVector< T > unmap () const
 
v () const
 

Private Attributes

const TkRotation< T > * pRot
 
theU
 
theV
 

Detailed Description

template<class T>
class ThirdHitPredictionFromInvParabola::MappedPoint< T >

Definition at line 51 of file ThirdHitPredictionFromInvParabola.h.

Constructor & Destructor Documentation

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

Definition at line 56 of file ThirdHitPredictionFromInvParabola.h.

57  : pRot(aRot) {
58  T invRadius2 = T(1)/point.mag2();
59  Basic3DVector<T> rotated = (*pRot) * point;
60  theU = rotated.x() * invRadius2;
61  theV = rotated.y() * invRadius2;
62  }
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
Definition: Basic2DVector.h:68
*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 ThirdHitPredictionFromInvParabola::MappedPoint< T >::u ( ) const
inline
template<class T>
Basic2DVector<T> ThirdHitPredictionFromInvParabola::MappedPoint< T >::unmap ( ) const
inline

Definition at line 65 of file ThirdHitPredictionFromInvParabola.h.

Referenced by ThirdHitPredictionFromInvLine::crossing(), ThirdHitPredictionFromInvParabola::rangeRPhi(), and ThirdHitPredictionFromInvParabola::rangeRPhiSlow().

65  {
66  T radius2 = T(1)/(theU*theU+theV*theV);
68  = (*pRot).multiplyInverse(Basic2DVector<T>(theU,theV));
69  return Basic2DVector<T>( tmp.x()*radius2, tmp.y()*radius2);
70  }
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
template<class T>
T ThirdHitPredictionFromInvParabola::MappedPoint< T >::v ( ) const
inline

Member Data Documentation

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

Definition at line 73 of file ThirdHitPredictionFromInvParabola.h.

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