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::Polar Polar
 
typedef T ScalarType
 

Public Member Functions

T barePhi () const
 
const BasicVectorTypebasicVector () const
 
T mag () const
 
T mag2 () const
 
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::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 21 of file PV2DBase.h.

21 : theVector() {}
BasicVectorType theVector
Definition: PV2DBase.h:51
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.

24 : theVector(x,y) {}
T y() const
Definition: PV2DBase.h:40
BasicVectorType theVector
Definition: PV2DBase.h:51
T x() const
Definition: PV2DBase.h:39
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.

27 : theVector( set) {}
BasicVectorType theVector
Definition: PV2DBase.h:51
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 32 of file PV2DBase.h.

32 : theVector(v) {}
BasicVectorType theVector
Definition: PV2DBase.h:51

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.

44 { return basicVector().barePhi();}
T barePhi() const
const BasicVectorType & basicVector() const
Definition: PV2DBase.h:37
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 49 of file PV2DBase.h.

49 { return theVector;}
BasicVectorType theVector
Definition: PV2DBase.h:51
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(), and TransverseImpactPointExtrapolator::tipSurface().

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

Definition at line 41 of file PV2DBase.h.

41 { return basicVector().mag2();}
const BasicVectorType & basicVector() const
Definition: PV2DBase.h:37
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
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(), and ThirdHitPrediction::calculateRangesForward().

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

Definition at line 42 of file PV2DBase.h.

42 { return basicVector().r();}
T r() const
Radius, same as mag()
const BasicVectorType & basicVector() const
Definition: PV2DBase.h:37
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 svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), SiPixelTrackResidualSource::analyze(), SiStripRecHitsValid::analyze(), SiPixelErrorEstimation::analyze(), SiStripTrackingRecHitsValid::analyze(), TrackerDpgAnalysis::analyze(), LowPtClusterShapeSeedComparitor::areaParallelogram(), ClusterShapeTrackFilter::areaParallelogram(), ThirdHitPrediction::areaParallelogram(), python.Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), python.Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), tkDetUtil::calculatePhiWindow(), ProxyPixelTopology::channel(), DTTopology::channel(), ProxyStripTopology::channel(), FourPointPlaneBounds::checkSide(), SiStripFineDelayHit::closestCluster(), Chi2StripEstimator::estimate(), SiPixelTrackResidualModule::fill(), TrackerValidationVariables::fillHitQuantities(), LowPtClusterShapeSeedComparitor::getGlobalDirs(), ClusterShapeTrackFilter::getGlobalDirs(), Strip1DMeasurementTransformator::hitParameters(), StripMeasurementTransformator::hitParameters(), SiPixelDigitizerAlgorithm::induce_signal(), GeneralTrapezoidalPlaneBounds::inside(), RectangularPlaneBounds::inside(), Bounds::inside(), TrapezoidalPlaneBounds::inside(), CSCLayerGeometry::inside(), ThirdHitPrediction::isCompatibleWithMultipleScattering(), TrapezoidalStripTopology::localError(), RadialStripTopology::localError(), RectangularPixelTopology::localError(), ProxyStripTopology::localPitch(), RectangularStripTopology::localPosition(), TrapezoidalStripTopology::localPosition(), ProxyPixelTopology::localPosition(), DTTopology::localPosition(), ProxyStripTopology::localPosition(), OffsetRadialStripTopology::localPosition(), RadialStripTopology::localPosition(), RectangularPixelTopology::localPosition(), ProxyStripTopology::localStripLength(), ProxyPixelTopology::localX(), GSRecHitMatcher::match(), ProxyPixelTopology::measurementError(), ProxyStripTopology::measurementError(), DTTopology::measurementPosition(), ProxyPixelTopology::measurementPosition(), ProxyStripTopology::measurementPosition(), TrackerDpgAnalysis::onTrackAngles(), ProxyPixelTopology::pixel(), geometryXMLparser.Alignable::pos(), BowedSurfaceDeformation::positionCorrection(), TwoBowedSurfacesDeformation::positionCorrection(), python.Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), Strip1DMeasurementTransformator::projectedTrajectoryParameters(), StripMeasurementTransformator::projectedTrajectoryParameters(), SiPixelGaussianSmearingRecHitConverterAlgorithm::smearHit(), ProxyStripTopology::strip(), TkGluedMeasurementDet::testStrips(), and DTTopology::wirePosition().

39 { return basicVector().x();}
const BasicVectorType & basicVector() const
Definition: PV2DBase.h:37
T x() const
Cartesian x coordinate.
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 svgfig.Ellipse::__repr__(), SiPixelTrackResidualSource::analyze(), SiPixelErrorEstimation::analyze(), TrackerDpgAnalysis::analyze(), LowPtClusterShapeSeedComparitor::areaParallelogram(), ClusterShapeTrackFilter::areaParallelogram(), ThirdHitPrediction::areaParallelogram(), python.Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), python.Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), tkDetUtil::calculatePhiWindow(), ProxyPixelTopology::channel(), ProxyStripTopology::channel(), FourPointPlaneBounds::checkSide(), MuDetRod::compatibleDets(), PixelRod::compatibleDetsV(), TIDLayer::computeWindowSize(), TIBLayer::computeWindowSize(), Chi2StripEstimator::estimate(), SiPixelTrackResidualModule::fill(), TrackerValidationVariables::fillHitQuantities(), LowPtClusterShapeSeedComparitor::getGlobalDirs(), ClusterShapeTrackFilter::getGlobalDirs(), StripMeasurementTransformator::hitParameters(), SiPixelDigitizerAlgorithm::induce_signal(), GeneralTrapezoidalPlaneBounds::inside(), RectangularPlaneBounds::inside(), Bounds::inside(), TrapezoidalPlaneBounds::inside(), CSCLayerGeometry::inside(), ThirdHitPrediction::isCompatibleWithMultipleScattering(), RadialStripTopology::localError(), RectangularPixelTopology::localError(), ProxyStripTopology::localPitch(), RectangularStripTopology::localPosition(), TrapezoidalStripTopology::localPosition(), DTTopology::localPosition(), ProxyPixelTopology::localPosition(), ProxyStripTopology::localPosition(), OffsetRadialStripTopology::localPosition(), RadialStripTopology::localPosition(), RectangularPixelTopology::localPosition(), ProxyStripTopology::localStripLength(), ProxyPixelTopology::localY(), ProxyPixelTopology::measurementError(), ProxyStripTopology::measurementError(), DTTopology::measurementPosition(), ProxyPixelTopology::measurementPosition(), ProxyStripTopology::measurementPosition(), TrackerDpgAnalysis::onTrackAngles(), ProxyPixelTopology::pixel(), geometryXMLparser.Alignable::pos(), BowedSurfaceDeformation::positionCorrection(), TwoBowedSurfacesDeformation::positionCorrection(), python.Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), StripMeasurementTransformator::projectedTrajectoryParameters(), SiPixelGaussianSmearingRecHitConverterAlgorithm::smearHit(), and ProxyStripTopology::strip().

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

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< double, PointTag, LocalTag >::basicVector().