CMS 3D CMS Logo

Classes | Functions
Point2DBase.h File Reference
#include "DataFormats/GeometryVector/interface/PointTag.h"
#include "DataFormats/GeometryVector/interface/PV2DBase.h"
#include "DataFormats/GeometryVector/interface/Vector2DBase.h"

Go to the source code of this file.

Classes

class  Point2DBase< T, FrameTag >
 

Functions

template<typename T , typename U , class Frame >
Point2DBase< typename PreciseFloatType< T, U >::Type, Frame > operator+ (const Point2DBase< T, Frame > &p, const Vector2DBase< U, Frame > &v)
 
template<typename T , typename U , class Frame >
Point2DBase< typename PreciseFloatType< T, U >::Type, Frame > operator+ (const Vector2DBase< T, Frame > &p, const Point2DBase< U, Frame > &v)
 
template<typename T , typename U , class Frame >
Vector2DBase< typename PreciseFloatType< T, U >::Type, Frame > operator- (const Point2DBase< T, Frame > &p1, const Point2DBase< U, Frame > &p2)
 

Function Documentation

◆ operator+() [1/2]

template<typename T , typename U , class Frame >
Point2DBase<typename PreciseFloatType<T, U>::Type, Frame> operator+ ( const Point2DBase< T, Frame > &  p,
const Vector2DBase< U, Frame > &  v 
)
inline

The sum of a Point and a Vector is a Point. The arguments must be defined in the same reference frame. The resulting point has the higher precision of the precisions of the two arguments.

Definition at line 62 of file Point2DBase.h.

63  {
65  return RT(p.basicVector() + v.basicVector());
66 }

References AlCaHLTBitMon_ParallelJobs::p, and findQualityFiles::v.

◆ operator+() [2/2]

template<typename T , typename U , class Frame >
Point2DBase<typename PreciseFloatType<T, U>::Type, Frame> operator+ ( const Vector2DBase< T, Frame > &  p,
const Point2DBase< U, Frame > &  v 
)
inline

Same as operator+(Point,Vector) (see above)

Definition at line 71 of file Point2DBase.h.

72  {
74  return RT(p.basicVector() + v.basicVector());
75 }

References AlCaHLTBitMon_ParallelJobs::p, and findQualityFiles::v.

◆ operator-()

template<typename T , typename U , class Frame >
Vector2DBase<typename PreciseFloatType<T, U>::Type, Frame> operator- ( const Point2DBase< T, Frame > &  p1,
const Point2DBase< U, Frame > &  p2 
)
inline

The difference of two points is a vector. The arguments must be defined in the same reference frame. The resulting vector has the higher precision of the precisions of the two arguments.

Definition at line 82 of file Point2DBase.h.

83  {
85  return RT(p1.basicVector() - p2.basicVector());
86 }

References p1, and p2.

Point2DBase
Definition: Point2DBase.h:9
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
findQualityFiles.v
v
Definition: findQualityFiles.py:179
p2
double p2[4]
Definition: TauolaWrapper.h:90
Vector2DBase
Definition: Vector2DBase.h:8
pixelCPEforGPU::Frame
SOAFrame< float > Frame
Definition: pixelCPEforGPU.h:16
p1
double p1[4]
Definition: TauolaWrapper.h:89