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>
80 inline std::ostream& operator<<(std::ostream& s, const PV3DBase<T, PV, F>&
v) {
81 return s <<
v.basicVector();
84 #endif // GeometryVector_PV3DBase_h
T x() const
Cartesian x coordinate.
T perp2() const
Squared magnitude of transverse component.
Geom::Phi< T > phi() const
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
PV3DBase(const T &x, const T &y, const T &z)
construct from cartesian coordinates
T y() const
Cartesian y coordinate.
Geom::Theta< T > theta() const
Basic3DVector< T > BasicVectorType
MathVector const & mathVector() const
BasicVectorType::Cylindrical Cylindrical
MathVector & mathVector()
PV3DBase(const Cylindrical &set)
T transverse() const
Another name for perp()
const BasicVectorType & basicVector() const
T perp() const
Magnitude of transverse component.
PV3DBase(const Basic3DVector< U > &v)
T z() const
Cartesian z coordinate.
BasicVectorType::MathVector MathVector
PV3DBase(const Geom::Theta< T > &th, const Geom::Phi< T > &ph, const T &r)
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
BasicVectorType theVector
BasicVectorType::Polar Polar
BasicVectorType::Spherical Spherical
PV3DBase(const Polar &set)
construct from polar coordinates
Geom::Phi< T > phi() const
Geom::Theta< T > theta() const