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 | Protected Member Functions | Protected Attributes
PV2DBase< T, PVType, FrameType > Class Template Reference

#include <PV2DBase.h>

Public Types

typedef Basic2DVector< TBasicVectorType
 
typedef BasicVectorType::MathVector MathVector
 
typedef BasicVectorType::Polar Polar
 
typedef T ScalarType
 

Public Member Functions

T barePhi () const
 
const BasicVectorTypebasicVector () const
 
T mag () const
 
T mag2 () const
 
MathVector const & mathVector () const
 
MathVectormathVector ()
 
Geom::Phi< Tphi () const
 
 PV2DBase ()
 
 PV2DBase (const T &x, const T &y)
 construct from cartesian coordinates More...
 
 PV2DBase (const Polar &set)
 construct from polar coordinates More...
 
template<class U >
 PV2DBase (const Basic2DVector< U > &v)
 
T r () const
 
T x () const
 
T 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

Definition at line 14 of file PV2DBase.h.

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

Definition at line 16 of file PV2DBase.h.

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

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 22 of file PV2DBase.h.

22 : theVector() {}
BasicVectorType theVector
Definition: PV2DBase.h:57
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 25 of file PV2DBase.h.

25 : theVector(x,y) {}
T y() const
Definition: PV2DBase.h:46
BasicVectorType theVector
Definition: PV2DBase.h:57
T x() const
Definition: PV2DBase.h:45
template<class T, class PVType, class FrameType>
PV2DBase< T, PVType, FrameType >::PV2DBase ( const Polar set)
inline

construct from polar coordinates

Definition at line 28 of file PV2DBase.h.

28 : theVector( set) {}
BasicVectorType theVector
Definition: PV2DBase.h:57
template<class T, class PVType, class FrameType>
template<class U >
PV2DBase< T, PVType, FrameType >::PV2DBase ( const Basic2DVector< U > &  v)
inlineexplicit

Explicit constructor from BasicVectorType, possibly of different precision

Definition at line 33 of file PV2DBase.h.

33 : theVector(v) {}
BasicVectorType theVector
Definition: PV2DBase.h:57

Member Function Documentation

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

Definition at line 50 of file PV2DBase.h.

50 { return basicVector().barePhi();}
T barePhi() const
const BasicVectorType & basicVector() const
Definition: PV2DBase.h:38
template<class T, class PVType, class FrameType>
const BasicVectorType& PV2DBase< T, PVType, FrameType >::basicVector ( ) const
inline
template<class T, class PVType, class FrameType>
BasicVectorType& PV2DBase< T, PVType, FrameType >::basicVector ( )
inlineprotected

Definition at line 55 of file PV2DBase.h.

55 { return theVector;}
BasicVectorType theVector
Definition: PV2DBase.h:57
template<class T, class PVType, class FrameType>
T PV2DBase< T, PVType, FrameType >::mag ( ) const
inline

Definition at line 49 of file PV2DBase.h.

Referenced by ThirdHitPrediction::calculateRangesForward(), and TransverseImpactPointExtrapolator::tipSurface().

49 { return basicVector().mag();}
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
const BasicVectorType & basicVector() const
Definition: PV2DBase.h:38
template<class T, class PVType, class FrameType>
T PV2DBase< T, PVType, FrameType >::mag2 ( ) const
inline

Definition at line 47 of file PV2DBase.h.

47 { return basicVector().mag2();}
const BasicVectorType & basicVector() const
Definition: PV2DBase.h:38
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
template<class T, class PVType, class FrameType>
MathVector const& PV2DBase< T, PVType, FrameType >::mathVector ( ) const
inline

Definition at line 40 of file PV2DBase.h.

40 { return theVector.v;}
BasicVectorType theVector
Definition: PV2DBase.h:57
template<class T, class PVType, class FrameType>
MathVector& PV2DBase< T, PVType, FrameType >::mathVector ( )
inline

Definition at line 41 of file PV2DBase.h.

41 { return theVector.v;}
BasicVectorType theVector
Definition: PV2DBase.h:57
template<class T, class PVType, class FrameType>
Geom::Phi<T> PV2DBase< T, PVType, FrameType >::phi ( ) const
inline

Definition at line 51 of file PV2DBase.h.

Referenced by Particle.Particle::__str__(), ThirdHitPrediction::calculateRangesBarrel(), and ThirdHitPrediction::calculateRangesForward().

51 { return basicVector().phi();}
const BasicVectorType & basicVector() const
Definition: PV2DBase.h:38
Geom::Phi< T > phi() const
template<class T, class PVType, class FrameType>
T PV2DBase< T, PVType, FrameType >::r ( ) const
inline

Definition at line 48 of file PV2DBase.h.

48 { return basicVector().r();}
T r() const
Radius, same as mag()
const BasicVectorType & basicVector() const
Definition: PV2DBase.h:38
template<class T, class PVType, class FrameType>
T PV2DBase< T, PVType, FrameType >::x ( ) const
inline

Definition at line 45 of file PV2DBase.h.

Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), SiPixelTrackResidualSource::analyze(), SiPixelErrorEstimation::analyze(), TrackerDpgAnalysis::analyze(), ClusterShapeTrackFilter::areaParallelogram(), ThirdHitPrediction::areaParallelogram(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), tkDetUtil::calculatePhiWindow(), ProxyPixelTopology::channel(), DTTopology::channel(), ProxyStripTopology::channel(), FourPointPlaneBounds::checkSide(), SiStripFineDelayHit::closestCluster(), SiPixelTrackResidualModule::fill(), TrackerValidationVariables::fillHitQuantities(), ClusterShapeTrackFilter::getGlobalDirs(), Strip1DMeasurementTransformator::hitParameters(), SiPixelDigitizerAlgorithm::induce_signal(), RectangularPlaneBounds::inside(), Bounds::inside(), TrapezoidalPlaneBounds::inside(), CSCLayerGeometry::inside(), ThirdHitPrediction::isCompatibleWithMultipleScattering(), TrapezoidalStripTopology::localError(), CSCRadialStripTopology::localError(), TkRadialStripTopology::localError(), RectangularPixelTopology::localError(), ProxyStripTopology::localPitch(), RectangularStripTopology::localPosition(), ProxyPixelTopology::localPosition(), DTTopology::localPosition(), ProxyStripTopology::localPosition(), TrapezoidalStripTopology::localPosition(), OffsetRadialStripTopology::localPosition(), CSCRadialStripTopology::localPosition(), TkRadialStripTopology::localPosition(), RectangularPixelTopology::localPosition(), ProxyStripTopology::localStripLength(), ProxyPixelTopology::localX(), GSRecHitMatcher::match(), ProxyPixelTopology::measurementError(), ProxyStripTopology::measurementError(), ProxyPixelTopology::measurementPosition(), DTTopology::measurementPosition(), ProxyStripTopology::measurementPosition(), TrackerDpgAnalysis::onTrackAngles(), ProxyPixelTopology::pixel(), geometryXMLparser.Alignable::pos(), BowedSurfaceDeformation::positionCorrection(), TwoBowedSurfacesDeformation::positionCorrection(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), Strip1DMeasurementTransformator::projectedTrajectoryParameters(), SiStripRecHitsValid::rechitanalysis(), SiStripTrackingRecHitsValid::rechitanalysis(), SiStripTrackingRecHitsValid::rechitanalysis_matched(), SiPixelGaussianSmearingRecHitConverterAlgorithm::smearHit(), ProxyStripTopology::strip(), TkGluedMeasurementDet::testStrips(), and DTTopology::wirePosition().

45 { return basicVector().x();}
const BasicVectorType & basicVector() const
Definition: PV2DBase.h:38
T x() const
Cartesian x coordinate.
template<class T, class PVType, class FrameType>
T PV2DBase< T, PVType, FrameType >::y ( ) const
inline

Definition at line 46 of file PV2DBase.h.

Referenced by svgfig.Ellipse::__repr__(), SiPixelTrackResidualSource::analyze(), SiPixelErrorEstimation::analyze(), TrackerDpgAnalysis::analyze(), ClusterShapeTrackFilter::areaParallelogram(), ThirdHitPrediction::areaParallelogram(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), tkDetUtil::calculatePhiWindow(), ProxyPixelTopology::channel(), ProxyStripTopology::channel(), FourPointPlaneBounds::checkSide(), MuDetRod::compatibleDets(), PixelRod::compatibleDetsV(), TIBLayer::computeWindowSize(), Phase2OTECRingedLayer::computeWindowSize(), TIDLayer::computeWindowSize(), SiPixelTrackResidualModule::fill(), TrackerValidationVariables::fillHitQuantities(), ClusterShapeTrackFilter::getGlobalDirs(), SiPixelDigitizerAlgorithm::induce_signal(), RectangularPlaneBounds::inside(), Bounds::inside(), TrapezoidalPlaneBounds::inside(), CSCLayerGeometry::inside(), ThirdHitPrediction::isCompatibleWithMultipleScattering(), CSCRadialStripTopology::localError(), TkRadialStripTopology::localError(), RectangularPixelTopology::localError(), ProxyStripTopology::localPitch(), RectangularStripTopology::localPosition(), ProxyPixelTopology::localPosition(), DTTopology::localPosition(), ProxyStripTopology::localPosition(), TrapezoidalStripTopology::localPosition(), OffsetRadialStripTopology::localPosition(), CSCRadialStripTopology::localPosition(), TkRadialStripTopology::localPosition(), RectangularPixelTopology::localPosition(), ProxyStripTopology::localStripLength(), ProxyPixelTopology::localY(), ProxyPixelTopology::measurementError(), ProxyStripTopology::measurementError(), ProxyPixelTopology::measurementPosition(), DTTopology::measurementPosition(), ProxyStripTopology::measurementPosition(), TrackerDpgAnalysis::onTrackAngles(), ProxyPixelTopology::pixel(), geometryXMLparser.Alignable::pos(), BowedSurfaceDeformation::positionCorrection(), TwoBowedSurfacesDeformation::positionCorrection(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), SiPixelGaussianSmearingRecHitConverterAlgorithm::smearHit(), and ProxyStripTopology::strip().

46 { return basicVector().y();}
const BasicVectorType & basicVector() const
Definition: PV2DBase.h:38
T y() const
Cartesian y coordinate.

Member Data Documentation

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