Go to the documentation of this file.
20 #ifndef HEP_TWOVECTOR_H
21 #define HEP_TWOVECTOR_H
29 #include "CLHEP/Vector/defs.h"
30 #include "CLHEP/Vector/ThreeVector.h"
36 std::ostream &
operator << (std::ostream &,
const Hep2Vector &);
37 std::istream &
operator >> (std::istream &, Hep2Vector &);
38 inline double operator * (
const Hep2Vector &
a,
const Hep2Vector &
b);
39 inline Hep2Vector
operator * (
const Hep2Vector & p,
double a);
40 inline Hep2Vector
operator * (
double a,
const Hep2Vector & p);
41 Hep2Vector
operator / (
const Hep2Vector & p,
double a);
42 inline Hep2Vector
operator + (
const Hep2Vector &
a,
const Hep2Vector &
b);
43 inline Hep2Vector
operator - (
const Hep2Vector &
a,
const Hep2Vector &
b);
70 inline double x()
const;
71 inline double y()
const;
82 inline void setX(
double x);
83 inline void setY(
double y);
84 inline void set (
double x,
double y);
87 inline double phi()
const;
90 inline double mag2()
const;
93 inline double mag()
const;
96 inline double r()
const;
105 inline void setR(
double r);
133 (
const Hep2Vector & p,
double epsilon=tolerance)
const;
137 (
const Hep2Vector & p,
double epsilon=tolerance)
const;
204 static double tolerance;
209 static const Hep2Vector X_HAT2(1.0, 0.0);
210 static const Hep2Vector Y_HAT2(0.0, 1.0);
214 #include "CLHEP/Vector/TwoVector.icc"
216 #ifdef ENABLE_BACKWARDS_COMPATIBILITY
218 using namespace CLHEP;
Hep2Vector operator-() const
Hep2Vector orthogonal() const
Hep2Vector & operator*=(double a)
double howNear(const Hep2Vector &p) const
double operator()(int i) const
bool operator==(const Hep2Vector &v) const
bool operator<=(const Hep2Vector &v) const
void setPolar(double r, double phi)
Hep2Vector & operator+=(const Hep2Vector &p)
friend Hep2Vector operator+(const Hep2Vector &a, const Hep2Vector &b)
int compare(const Hep2Vector &v) const
static double setTolerance(double tol)
Hep2Vector(double x=0.0, double y=0.0)
HepLorentzVector operator/(const HepLorentzVector &, double a)
static double getTolerance()
bool isNear(const Hep2Vector &p, double epsilon=tolerance) const
bool operator>(const Hep2Vector &v) const
Hep3Vector operator-(const Hep3Vector &, const Hep3Vector &)
they are gone ZOOM Features Discontinued The following features of the ZOOM package were felt to be extreme overkill These have been after checking that no existing user code was utilizing as in SpaceVector v
Issues Concerning the PhysicsVectors CLHEP Vector Merge The merge of ZOOM PhysicsVdectors and the CLHEP Vector package is completed The purpose of this document is to list the major issues that affected the merge of these and where relevant describe the resolutions More detailed documents describe more minor issues General Approach As agreed at the June CLHEP the approach is to combine the features of each ZOOM class with the corresponding CLHEP class expanding the interface to create a single lingua franca of what a Hep3Vector(for example) means. We are not forming SpaceVector as an class derived from Hep3Vector and enhancing it in that way. Another rule imposed by the agreement is to avoid using the Exceptions package(even though that will later go into CLHEP for other uses). A desirable goal is to avoid cluttering the interface and enlarging the code linked in when ordinary CLHEP Vector functionallity is used. To this end
bool operator!=(const Hep2Vector &v) const
Hep2Vector & operator-=(const Hep2Vector &p)
friend double operator*(const Hep2Vector &a, const Hep2Vector &b)
friend Hep2Vector operator/(const Hep2Vector &p, double a)
std::istream & operator>>(std::istream &is, HepAxisAngle &aa)
double howOrthogonal(const Hep2Vector &p) const
void set(double x, double y)
double angle(const Hep2Vector &) const
bool isOrthogonal(const Hep2Vector &p, double epsilon=tolerance) const
bool operator<(const Hep2Vector &v) const
double operator[](int i) const
double howParallel(const Hep2Vector &p) const
Hep3Vector operator+(const Hep3Vector &, const Hep3Vector &)
Hep2Vector & operator=(const Hep2Vector &p)
std::ostream & operator<<(std::ostream &os, const HepAxisAngle &aa)
bool operator>=(const Hep2Vector &v) const
friend std::ostream & operator<<(std::ostream &, const Hep2Vector &)
HepLorentzRotation operator*(const HepRotation &r, const HepLorentzRotation <)
bool isParallel(const Hep2Vector &p, double epsilon=tolerance) const
double dot(const Hep2Vector &p) const