CMS 3D CMS Logo

PV2DBase< T, PVType, FrameType > Class Template Reference

#include <DataFormats/GeometryVector/interface/PV2DBase.h>

List of all members.

Public Types

typedef Basic2DVector< T > BasicVectorType
typedef BasicVectorType::Polar Polar
typedef T ScalarType

Public Member Functions

barePhi () const
const BasicVectorTypebasicVector () const
 Access to the basic vector, use only when the operations on Point and Vector are too restrictive (preferably never).
mag () const
mag2 () const
Geom::Phi< T > phi () const
template<class U>
 PV2DBase (const Basic2DVector< U > &v)
 Explicit constructor from BasicVectorType, possibly of different precision.
 PV2DBase (const Polar &set)
 construct from polar coordinates
 PV2DBase (const T &x, const T &y)
 construct from cartesian coordinates
 PV2DBase ()
 default constructor uses default constructor of T to initialize the components.
r () const
x () const
y () const

Protected Member Functions

BasicVectorTypebasicVector ()

Protected Attributes

BasicVectorType theVector


Detailed Description

template<class T, class PVType, class FrameType>
class PV2DBase< T, PVType, FrameType >

Definition at line 10 of file PV2DBase.h.


Member Typedef Documentation

template<class T, class PVType, class FrameType>
typedef Basic2DVector<T> PV2DBase< T, PVType, FrameType >::BasicVectorType

Reimplemented in Point2DBase< T, FrameTag >, and Vector2DBase< T, FrameTag >.

Definition at line 14 of file PV2DBase.h.

template<class T, class PVType, class FrameType>
typedef BasicVectorType::Polar PV2DBase< T, PVType, FrameType >::Polar

Reimplemented in Point2DBase< T, FrameTag >, and Vector2DBase< T, FrameTag >.

Definition at line 15 of file PV2DBase.h.

template<class T, class PVType, class FrameType>
typedef T PV2DBase< T, PVType, FrameType >::ScalarType

Definition at line 13 of file PV2DBase.h.


Constructor & Destructor Documentation

template<class T, class PVType, class FrameType>
PV2DBase< T, PVType, FrameType >::PV2DBase (  )  [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 21 of file PV2DBase.h.

00021 : theVector() {}

template<class T, class PVType, class FrameType>
PV2DBase< T, PVType, FrameType >::PV2DBase ( const T &  x,
const T &  y 
) [inline]

construct from cartesian coordinates

Definition at line 24 of file PV2DBase.h.

00024 : theVector(x,y) {}

template<class T, class PVType, class FrameType>
PV2DBase< T, PVType, FrameType >::PV2DBase ( const Polar set  )  [inline]

construct from polar coordinates

Definition at line 27 of file PV2DBase.h.

00027 : theVector( set) {}

template<class T, class PVType, class FrameType>
template<class U>
PV2DBase< T, PVType, FrameType >::PV2DBase ( const Basic2DVector< U > &  v  )  [inline, explicit]

Explicit constructor from BasicVectorType, possibly of different precision.

Definition at line 32 of file PV2DBase.h.

00032 : theVector(v) {}


Member Function Documentation

template<class T, class PVType, class FrameType>
T PV2DBase< T, PVType, FrameType >::barePhi (  )  const [inline]

Definition at line 44 of file PV2DBase.h.

00044 { return basicVector().barePhi();}

template<class T, class PVType, class FrameType>
BasicVectorType& PV2DBase< T, PVType, FrameType >::basicVector (  )  [inline, protected]

Definition at line 49 of file PV2DBase.h.

00049 { return theVector;}

template<class T, class PVType, class FrameType>
const BasicVectorType& PV2DBase< T, PVType, FrameType >::basicVector (  )  const [inline]

Access to the basic vector, use only when the operations on Point and Vector are too restrictive (preferably never).

Definition at line 37 of file PV2DBase.h.

Referenced by PV2DBase< T, PointTag, FrameTag >::barePhi(), PV2DBase< T, PointTag, FrameTag >::mag(), PV2DBase< T, PointTag, FrameTag >::mag2(), PV2DBase< T, PointTag, FrameTag >::phi(), PV2DBase< T, PointTag, FrameTag >::r(), PV2DBase< T, PointTag, FrameTag >::x(), and PV2DBase< T, PointTag, FrameTag >::y().

00037 { return theVector;}

template<class T, class PVType, class FrameType>
T PV2DBase< T, PVType, FrameType >::mag (  )  const [inline]

Definition at line 43 of file PV2DBase.h.

Referenced by ThirdHitPrediction::calculateRangesForward().

00043 { return basicVector().mag();}

template<class T, class PVType, class FrameType>
T PV2DBase< T, PVType, FrameType >::mag2 (  )  const [inline]

Definition at line 41 of file PV2DBase.h.

Referenced by ThirdHitPrediction::findMinimalCircles(), ThirdHitPrediction::invertCircle(), and ThirdHitPrediction::invertPoint().

00041 { return basicVector().mag2();}

template<class T, class PVType, class FrameType>
Geom::Phi<T> PV2DBase< T, PVType, FrameType >::phi (  )  const [inline]

Definition at line 45 of file PV2DBase.h.

Referenced by ThirdHitPrediction::calculateRangesBarrel(), ThirdHitPrediction::calculateRangesForward(), and ThirdHitPrediction::findMinimalCircles().

00045 { return basicVector().phi();}

template<class T, class PVType, class FrameType>
T PV2DBase< T, PVType, FrameType >::r (  )  const [inline]

Definition at line 42 of file PV2DBase.h.

00042 { return basicVector().r();}

template<class T, class PVType, class FrameType>
T PV2DBase< T, PVType, FrameType >::x (  )  const [inline]

Definition at line 39 of file PV2DBase.h.

Referenced by SiPixelTrackResidualSource::analyze(), SiPixelErrorEstimation::analyze(), SiStripRecHitsValid::analyze(), SiStripTrackingRecHitsValid::analyze(), ThirdHitPrediction::areaParallelogram(), tkDetUtil::calculatePhiWindow(), DTTopology::channel(), FourPointPlaneBounds::checkSide(), SiStripFineDelayHit::closestCluster(), Chi2StripEstimator::estimate(), SiPixelTrackResidualModule::fill(), TrackerValidationVariables::fillHitQuantities(), StripMeasurementTransformator::hitParameters(), Strip1DMeasurementTransformator::hitParameters(), SiPixelDigitizerAlgorithm::induce_signal(), TrapezoidalPlaneBounds::inside(), GeneralTrapezoidalPlaneBounds::inside(), Bounds::inside(), RectangularPlaneBounds::inside(), TrapezoidalStripTopology::localError(), RadialStripTopology::localError(), RectangularPixelTopology::localError(), StripCPEfromTrackAngle2::localParameters(), StripCPEfromTrackAngle::localParameters(), RectangularPixelTopology::localPosition(), DTTopology::localPosition(), OffsetRadialStripTopology::localPosition(), TrapezoidalStripTopology::localPosition(), RectangularStripTopology::localPosition(), RadialStripTopology::localPosition(), GSRecHitMatcher::match(), DTTopology::measurementPosition(), Strip1DMeasurementTransformator::projectedTrajectoryParameters(), StripMeasurementTransformator::projectedTrajectoryParameters(), PixelCPEBase::setTheDet(), CPEFromDetPosition::setTheDet(), TkGluedMeasurementDet::testStrips(), VisPixelDigiTwig::update(), and DTTopology::wirePosition().

00039 { return basicVector().x();}

template<class T, class PVType, class FrameType>
T PV2DBase< T, PVType, FrameType >::y (  )  const [inline]

Definition at line 40 of file PV2DBase.h.

Referenced by SiPixelTrackResidualSource::analyze(), SiPixelErrorEstimation::analyze(), ThirdHitPrediction::areaParallelogram(), tkDetUtil::calculatePhiWindow(), FourPointPlaneBounds::checkSide(), MuDetRod::compatibleDets(), PixelRod::compatibleDetsV(), TIDLayer::computeWindowSize(), TIBLayer::computeWindowSize(), Chi2StripEstimator::estimate(), SiPixelTrackResidualModule::fill(), StripMeasurementTransformator::hitParameters(), SiPixelDigitizerAlgorithm::induce_signal(), TrapezoidalPlaneBounds::inside(), GeneralTrapezoidalPlaneBounds::inside(), Bounds::inside(), RectangularPlaneBounds::inside(), RadialStripTopology::localError(), RectangularPixelTopology::localError(), RectangularPixelTopology::localPosition(), DTTopology::localPosition(), OffsetRadialStripTopology::localPosition(), TrapezoidalStripTopology::localPosition(), RectangularStripTopology::localPosition(), RadialStripTopology::localPosition(), DTTopology::measurementPosition(), StripMeasurementTransformator::projectedTrajectoryParameters(), PixelCPEBase::setTheDet(), CPEFromDetPosition::setTheDet(), and VisPixelDigiTwig::update().

00040 { return basicVector().y();}


Member Data Documentation

template<class T, class PVType, class FrameType>
BasicVectorType PV2DBase< T, PVType, FrameType >::theVector [protected]

Definition at line 51 of file PV2DBase.h.

Referenced by PV2DBase< T, PointTag, FrameTag >::basicVector().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:30:29 2009 for CMSSW by  doxygen 1.5.4