Go to the documentation of this file. 1 #ifndef GeometryVector_PV3DBase_h
2 #define GeometryVector_PV3DBase_h
14 template <
class T,
class PVType,
class FrameType>
79 template <
class T,
class PV,
class F>
81 return s <<
v.basicVector();
84 #endif // GeometryVector_PV3DBase_h
Geom::Theta< T > theta() const
std::ostream & operator<<(std::ostream &s, const PV3DBase< T, PV, F > &v)
T transverse() const
Another name for perp()
Geom::Theta< T > theta() const
MathVector const & mathVector() const
PV3DBase(const Geom::Theta< T > &th, const Geom::Phi< T > &ph, const T &r)
T perp2() const
Squared magnitude of transverse component.
BasicVectorType theVector
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
MathVector & mathVector()
T y() const
Cartesian y coordinate.
PV3DBase(const T &x, const T &y, const T &z)
construct from cartesian coordinates
PV3DBase(const Cylindrical &set)
PV3DBase(const Basic3DVector< U > &v)
BasicVectorType::Spherical Spherical
PV3DBase(const Polar &set)
construct from polar coordinates
const BasicVectorType & basicVector() const
BasicVectorType::Cylindrical Cylindrical
BasicVectorType::Polar Polar
T x() const
Cartesian x coordinate.
T perp() const
Magnitude of transverse component.
BasicVectorType::MathVector MathVector
T z() const
Cartesian z coordinate.
Geom::Phi< T > phi() const
Geom::Phi< T > phi() const
Basic3DVector< T > BasicVectorType