CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions
Vector3DBase< T, FrameTag > Class Template Reference

#include <Vector3DBase.h>

Inheritance diagram for Vector3DBase< T, FrameTag >:
PV3DBase< T, VectorTag, FrameTag >

Public Types

typedef PV3DBase< T, VectorTag,
FrameTag > 
BaseClass
 
typedef BaseClass::BasicVectorType BasicVectorType
 
typedef BaseClass::Cylindrical Cylindrical
 
typedef BaseClass::Polar Polar
 
typedef BaseClass::Spherical Spherical
 
typedef Vector3DBase< T, FrameTag > VectorType
 
- Public Types inherited from PV3DBase< T, VectorTag, FrameTag >
typedef Basic3DVector< TBasicVectorType
 
typedef
BasicVectorType::Cylindrical 
Cylindrical
 
typedef BasicVectorType::MathVector MathVector
 
typedef BasicVectorType::Polar Polar
 
typedef T ScalarType
 
typedef BasicVectorType::Spherical Spherical
 

Public Member Functions

template<class U >
Vector3DBase< typename
PreciseFloatType< T, U >::Type,
FrameTag > 
cross (const Vector3DBase< U, FrameTag > &v) const
 
template<class U >
PreciseFloatType< T, U >::Type dot (const Vector3DBase< U, FrameTag > &v) const
 
Vector3DBaseoperator*= (const T &t)
 Scaling by a scalar value (multiplication) More...
 
template<class U >
Vector3DBaseoperator+= (const Vector3DBase< U, FrameTag > &v)
 
Vector3DBase operator- () const
 Unary minus, returns a vector with components (-x(),-y(),-z()) More...
 
template<class U >
Vector3DBaseoperator-= (const Vector3DBase< U, FrameTag > &v)
 
Vector3DBaseoperator/= (const T &t)
 Scaling by a scalar value (division) More...
 
bool operator== (const Vector3DBase &rh) const
 
Vector3DBase unit () const
 
 Vector3DBase ()
 
template<class U >
 Vector3DBase (const Vector3DBase< U, FrameTag > &v)
 
 Vector3DBase (const T &x, const T &y, const T &z)
 construct from cartesian coordinates More...
 
 Vector3DBase (const Cylindrical &set)
 
 Vector3DBase (const Polar &set)
 construct from polar coordinates More...
 
 Vector3DBase (const Geom::Theta< T > &th, const Geom::Phi< T > &ph, const T &r)
 
template<class U >
 Vector3DBase (const Basic3DVector< U > &v)
 
- Public Member Functions inherited from PV3DBase< T, VectorTag, FrameTag >
T barePhi () const
 
T bareTheta () const
 
const BasicVectorTypebasicVector () const
 
T eta () const
 
T mag () const
 
T mag2 () const
 
MathVector const & mathVector () const
 
MathVectormathVector ()
 
T perp () const
 
T perp2 () const
 
Geom::Phi< Tphi () const
 
 PV3DBase ()
 
 PV3DBase (const T &x, const T &y, const T &z)
 construct from cartesian coordinates More...
 
 PV3DBase (const Cylindrical &set)
 
 PV3DBase (const Polar &set)
 construct from polar coordinates More...
 
 PV3DBase (const Geom::Theta< T > &th, const Geom::Phi< T > &ph, const T &r)
 
 PV3DBase (const Basic3DVector< U > &v)
 
Geom::Theta< Ttheta () const
 
T transverse () const
 
T x () const
 
T y () const
 
T z () const
 

Additional Inherited Members

- Protected Attributes inherited from PV3DBase< T, VectorTag, FrameTag >
BasicVectorType theVector
 

Detailed Description

template<class T, class FrameTag>
class Vector3DBase< T, FrameTag >

Definition at line 9 of file Vector3DBase.h.

Member Typedef Documentation

template<class T, class FrameTag>
typedef PV3DBase<T, VectorTag, FrameTag> Vector3DBase< T, FrameTag >::BaseClass

Definition at line 12 of file Vector3DBase.h.

template<class T, class FrameTag>
typedef BaseClass::BasicVectorType Vector3DBase< T, FrameTag >::BasicVectorType

Definition at line 17 of file Vector3DBase.h.

template<class T, class FrameTag>
typedef BaseClass::Cylindrical Vector3DBase< T, FrameTag >::Cylindrical

Definition at line 14 of file Vector3DBase.h.

template<class T, class FrameTag>
typedef BaseClass::Polar Vector3DBase< T, FrameTag >::Polar

Definition at line 16 of file Vector3DBase.h.

template<class T, class FrameTag>
typedef BaseClass::Spherical Vector3DBase< T, FrameTag >::Spherical

Definition at line 15 of file Vector3DBase.h.

template<class T, class FrameTag>
typedef Vector3DBase< T, FrameTag> Vector3DBase< T, FrameTag >::VectorType

Definition at line 13 of file Vector3DBase.h.

Constructor & Destructor Documentation

template<class T, class FrameTag>
Vector3DBase< T, FrameTag >::Vector3DBase ( )
inline

default constructor uses default constructor of T to initialize the components. For built-in floating-point types this means initialization to zero

Definition at line 23 of file Vector3DBase.h.

template<class T, class FrameTag>
template<class U >
Vector3DBase< T, FrameTag >::Vector3DBase ( const Vector3DBase< U, FrameTag > &  v)
inline

Construct from another point in the same reference frame, possiblly with different precision

Definition at line 29 of file Vector3DBase.h.

template<class T, class FrameTag>
Vector3DBase< T, FrameTag >::Vector3DBase ( const T x,
const T y,
const T z 
)
inline

construct from cartesian coordinates

Definition at line 32 of file Vector3DBase.h.

template<class T, class FrameTag>
Vector3DBase< T, FrameTag >::Vector3DBase ( const Cylindrical set)
inlineexplicit

Construct from cylindrical coordinates.

Definition at line 36 of file Vector3DBase.h.

template<class T, class FrameTag>
Vector3DBase< T, FrameTag >::Vector3DBase ( const Polar set)
inlineexplicit

construct from polar coordinates

Definition at line 39 of file Vector3DBase.h.

template<class T, class FrameTag>
Vector3DBase< T, FrameTag >::Vector3DBase ( const Geom::Theta< T > &  th,
const Geom::Phi< T > &  ph,
const T r 
)
inline

Deprecated construct from polar coordinates, use constructor from Polar( theta, phi, r) instead.

Definition at line 44 of file Vector3DBase.h.

template<class T, class FrameTag>
template<class U >
Vector3DBase< T, FrameTag >::Vector3DBase ( const Basic3DVector< U > &  v)
inlineexplicit

Explicit constructor from BasicVectorType, bypasses consistency checks for point/vector and for coordinate frame. To be used as carefully as e.g. const_cast.

Definition at line 52 of file Vector3DBase.h.

Member Function Documentation

template<class T, class FrameTag>
template<class U >
Vector3DBase< typename PreciseFloatType<T,U>::Type, FrameTag> Vector3DBase< T, FrameTag >::cross ( const Vector3DBase< U, FrameTag > &  v) const
inline

Vector (or cross) product with a vector of possibly different precision, defined in the same reference frame. The product is computed without loss of precision. The precision of the returned Vector is the higher precision of the scalar types of the two vectors.

Definition at line 119 of file Vector3DBase.h.

Referenced by L1MuonPixelTrackFitter::Circle::Circle(), ForwardDiskSectorBuilderFromWedges::computeRotation(), RodPlaneBuilderFromDet::computeRotation(), PlaneBuilderForGluedDet::computeRotation(), Line::distance(), Cylinder::fastTangent(), jacobianCartesianToCurvilinear(), jacobianCurvilinearToCartesian(), TransverseBoundPlaneFactory::operator()(), PerpendicularBoundPlaneBuilder::operator()(), PathToPlane2Order::operator()(), and Cylinder::tangentPlane().

template<class T, class FrameTag>
template<class U >
PreciseFloatType<T,U>::Type Vector3DBase< T, FrameTag >::dot ( const Vector3DBase< U, FrameTag > &  v) const
inline

Scalar (or dot) product with a vector of possibly different precision, defined in the same reference frame. The product is computed without loss of precision. The type of the returned scalar is the more precise of the scalar types of the two vectors.

Definition at line 107 of file Vector3DBase.h.

Referenced by SignedDecayLength3D::apply(), TwoTrackMinimumDistanceLineLine::calculate(), Line::closerPointToLine(), JacobianCurvilinearToLocal::compute(), JacobianLocalToCurvilinear::compute(), ForwardRingDiskBuilderFromDet::computeBounds(), ForwardDetLayer::computeSurface(), Line::distance(), Plane::localZ(), OuterDetCompatibility::maximalLocalDisplacement(), and TSCBLBuilderWithPropagator::operator()().

template<class T, class FrameTag>
Vector3DBase& Vector3DBase< T, FrameTag >::operator*= ( const T t)
inline

Scaling by a scalar value (multiplication)

Definition at line 88 of file Vector3DBase.h.

template<class T, class FrameTag>
template<class U >
Vector3DBase& Vector3DBase< T, FrameTag >::operator+= ( const Vector3DBase< U, FrameTag > &  v)
inline

Increment by another Vector of possibly different precision, defined in the same reference frame

Definition at line 69 of file Vector3DBase.h.

template<class T, class FrameTag>
Vector3DBase Vector3DBase< T, FrameTag >::operator- ( ) const
inline

Unary minus, returns a vector with components (-x(),-y(),-z())

Definition at line 84 of file Vector3DBase.h.

template<class T, class FrameTag>
template<class U >
Vector3DBase& Vector3DBase< T, FrameTag >::operator-= ( const Vector3DBase< U, FrameTag > &  v)
inline

Decrement by another Vector of possibly different precision, defined in the same reference frame

Definition at line 78 of file Vector3DBase.h.

template<class T, class FrameTag>
Vector3DBase& Vector3DBase< T, FrameTag >::operator/= ( const T t)
inline

Scaling by a scalar value (division)

Definition at line 94 of file Vector3DBase.h.

template<class T, class FrameTag>
bool Vector3DBase< T, FrameTag >::operator== ( const Vector3DBase< T, FrameTag > &  rh) const
inline

Definition at line 60 of file Vector3DBase.h.

template<class T, class FrameTag>
Vector3DBase Vector3DBase< T, FrameTag >::unit ( ) const
inline