21 #ifndef HEP_LORENTZVECTOR_H 22 #define HEP_LORENTZVECTOR_H 29 #include "CLHEP/Vector/defs.h" 30 #include "CLHEP/Vector/ThreeVector.h" 35 class HepLorentzVector;
36 class HepLorentzRotation;
41 HepLorentzVector
rotationXOf(
const HepLorentzVector & vec,
double delta );
42 HepLorentzVector
rotationYOf(
const HepLorentzVector & vec,
double delta );
43 HepLorentzVector
rotationZOf(
const HepLorentzVector & vec,
double delta );
45 (
const HepLorentzVector & vec,
const Hep3Vector & axis,
double delta );
47 (
const HepLorentzVector & vec,
const HepAxisAngle & ax );
49 (
const HepLorentzVector & vec,
const HepEulerAngles & e1 );
51 (
const HepLorentzVector & vec,
double phi,
55 HepLorentzVector
boostXOf(
const HepLorentzVector & vec,
double beta );
57 HepLorentzVector
boostYOf(
const HepLorentzVector & vec,
double beta );
59 HepLorentzVector
boostZOf(
const HepLorentzVector & vec,
double beta );
61 (
const HepLorentzVector & vec,
const Hep3Vector & betaVector );
63 (
const HepLorentzVector & vec,
const Hep3Vector & axis,
double beta );
107 inline double x()
const;
108 inline double y()
const;
109 inline double z()
const;
110 inline double t()
const;
113 inline void setX(
double);
114 inline void setY(
double);
115 inline void setZ(
double);
116 inline void setT(
double);
119 inline double px()
const;
120 inline double py()
const;
121 inline double pz()
const;
122 inline double e()
const;
125 inline void setPx(
double);
126 inline void setPy(
double);
127 inline void setPz(
double);
128 inline void setE(
double);
137 inline double theta()
const;
139 inline double phi()
const;
140 inline double rho()
const;
144 inline void setPhi(
double);
145 inline void setRho(
double);
178 inline double perp2()
const;
181 inline double perp()
const;
196 inline double mag2()
const;
200 inline double m2()
const;
203 inline double mag()
const;
204 inline double m()
const;
207 inline double mt2()
const;
210 inline double mt()
const;
213 inline double et2()
const;
216 inline double et()
const;
233 inline double plus()
const;
234 inline double minus()
const;
262 inline bool isLightlike(
double epsilon=tolerance)
const;
312 inline void set (
double x,
double y,
double z,
double t);
321 inline void set (
double t );
340 inline double getX()
const;
341 inline double getY()
const;
342 inline double getZ()
const;
343 inline double getT()
const;
355 inline void setV(
double x,
double y,
double z );
357 inline void setRThetaPhi(
double r,
double theta,
double phi);
359 inline void setRhoPhiZ(
double rho,
double phi,
double z );
371 double epsilon=tolerance )
const;
376 double epsilon=tolerance )
const;
386 double epsilon=tolerance )
const;
434 double gamma()
const;
437 inline double eta()
const;
530 static double tolerance;
531 static double metric;
573 #include "CLHEP/Vector/LorentzVector.icc" 575 #ifdef ENABLE_BACKWARDS_COMPATIBILITY 577 using namespace CLHEP;
HepLorentzVector & boostX(double beta)
HepLorentzVector boostOf(const HepLorentzVector &vec, const Hep3Vector &betaVector)
HepLorentzVector rest4Vector() const
static double getTolerance()
friend HepLorentzVector boostXOf(const HepLorentzVector &vec, double beta)
HepLorentzVector operator-() const
double operator[](int) const
HepLorentzVector & transform(const HepRotation &)
friend HepLorentzVector rotationZOf(const HepLorentzVector &vec, double delta)
bool isParallel(const HepLorentzVector &w, double epsilon=tolerance) const
bool operator<(const HepLorentzVector &w) const
HepLorentzVector operator/(const HepLorentzVector &, double a)
void setVectMag(const Hep3Vector &spatial, double magnitude)
HepLorentzVector & boostY(double beta)
int compare(const HepLorentzVector &w) const
HepLorentzVector & rotateX(double)
static ZMpvMetric_t setMetric(ZMpvMetric_t a1)
void setREtaPhi(double r, double eta, double phi)
Hep3Vector boostVector() const
void setVect(const Hep3Vector &)
HepLorentzVector HepLorentzVectorD
double diff2(const HepLorentzVector &w) const
void setV(const Hep3Vector &)
HepLorentzVector HepLorentzVectorF
double invariantMass() const
double pseudoRapidity() const
bool operator<=(const HepLorentzVector &w) const
friend HepLorentzVector boostZOf(const HepLorentzVector &vec, double beta)
HepLorentzVector boostXOf(const HepLorentzVector &vec, double beta)
HepLorentzVector rotationXOf(const HepLorentzVector &vec, double delta)
static double setTolerance(double tol)
HepLorentzVector rotationYOf(const HepLorentzVector &vec, double delta)
bool isLightlike(double epsilon=tolerance) const
HepLorentzVector & operator*=(double)
HepLorentzVector boostZOf(const HepLorentzVector &vec, double beta)
double howNear(const HepLorentzVector &w) const
friend HepLorentzVector rotationYOf(const HepLorentzVector &vec, double delta)
HepLorentzVector & rotateUz(const Hep3Vector &)
void setRThetaPhi(double r, double theta, double phi)
HepLorentzVector & operator/=(double)
bool operator==(const HepLorentzVector &) const
Hep3Vector findBoostToCM() const
double delta2Euclidean(const HepLorentzVector &w) const
HepLorentzVector boostYOf(const HepLorentzVector &vec, double beta)
friend HepLorentzVector boostOf(const HepLorentzVector &vec, const Hep3Vector &betaVector)
HepLorentzVector & rotateY(double)
bool operator>(const HepLorentzVector &w) const
HepLorentzVector rotationZOf(const HepLorentzVector &vec, double delta)
double operator()(int) const
double euclideanNorm2() const
std::istream & operator>>(std::istream &is, HepAxisAngle &aa)
double deltaR(const HepLorentzVector &v) const
HepLorentzVector rotationOf(const HepLorentzVector &vec, const Hep3Vector &axis, double delta)
HepLorentzVector & operator=(const HepLorentzVector &)
friend HepLorentzVector rotationXOf(const HepLorentzVector &vec, double delta)
bool isNearCM(const HepLorentzVector &w, double epsilon=tolerance) const
HepLorentzVector & rotateZ(double)
HepLorentzVector operator+(const HepLorentzVector &) const
bool operator!=(const HepLorentzVector &) const
friend HepLorentzVector rotationOf(const HepLorentzVector &vec, const Hep3Vector &axis, double delta)
double dot(const HepLorentzVector &) const
static ZMpvMetric_t getMetric()
double angle(const Hep3Vector &) const
double howNearCM(const HepLorentzVector &w) const
HepLorentzVector & boostZ(double beta)
bool operator>=(const HepLorentzVector &w) const
void setRhoPhiZ(double rho, double phi, double z)
friend HepLorentzVector boostYOf(const HepLorentzVector &vec, double beta)
double operator*(const HepLorentzVector &) const
double euclideanNorm() const
std::ostream & operator<<(std::ostream &os, const HepAxisAngle &aa)
HepLorentzVector & operator-=(const HepLorentzVector &)
HepLorentzVector & operator+=(const HepLorentzVector &)
bool isNear(const HepLorentzVector &w, double epsilon=tolerance) const
double howLightlike() const
double howParallel(const HepLorentzVector &w) const
HepLorentzVector & boost(double, double, double)
void setVectM(const Hep3Vector &spatial, double mass)
double coLinearRapidity() const
double invariantMass2() const
HepLorentzVector & rotate(double, const Hep3Vector &)