21 #ifndef HEP_LORENTZVECTOR_H
22 #define HEP_LORENTZVECTOR_H
34 class HepLorentzVector;
35 class HepLorentzRotation;
40 HepLorentzVector
rotationXOf(
const HepLorentzVector & vec,
double delta );
41 HepLorentzVector
rotationYOf(
const HepLorentzVector & vec,
double delta );
42 HepLorentzVector
rotationZOf(
const HepLorentzVector & vec,
double delta );
44 (
const HepLorentzVector & vec,
const Hep3Vector & axis,
double delta );
46 (
const HepLorentzVector & vec,
const HepAxisAngle & ax );
48 (
const HepLorentzVector & vec,
const HepEulerAngles & e );
50 (
const HepLorentzVector & vec,
double phi,
54 HepLorentzVector
boostXOf(
const HepLorentzVector & vec,
double beta );
56 HepLorentzVector
boostYOf(
const HepLorentzVector & vec,
double beta );
58 HepLorentzVector
boostZOf(
const HepLorentzVector & vec,
double beta );
60 (
const HepLorentzVector & vec,
const Hep3Vector & betaVector );
62 (
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;
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 );
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 DLL_API static double tolerance;
568 operator double()
const {
return t_; }
573 #include "CLHEP/Vector/LorentzVector.icc"
HepLorentzVector operator-() const
friend HepLorentzVector rotationXOf(const HepLorentzVector &vec, double delta)
double dot(const HepLorentzVector &) const
Hep3Vector boostVector() const
HepLorentzVector rotationOf(const HepLorentzVector &vec, const Hep3Vector &axis, double delta)
HepLorentzVector & operator*=(double)
bool isNearCM(const HepLorentzVector &w, double epsilon=tolerance) const
HepLorentzVector & rotateX(double)
friend HepLorentzVector boostOf(const HepLorentzVector &vec, const Hep3Vector &betaVector)
double euclideanNorm() const
double operator()(int) const
double delta2Euclidean(const HepLorentzVector &w) const
double howLightlike() const
HepLorentzRotation operator*(const HepRotation &r, const HepLorentzRotation <)
double pseudoRapidity() const
std::vector< ExP01TrackerHit * > a
double coLinearRapidity() const
double diff2(const HepLorentzVector &w) const
HepLorentzVector rotationXOf(const HepLorentzVector &vec, double delta)
double invariantMass() const
bool isNear(const HepLorentzVector &w, double epsilon=tolerance) const
void setVectMag(const Hep3Vector &spatial, double magnitude)
double euclideanNorm2() const
static double setTolerance(double tol)
bool operator==(const HepLorentzVector &) const
HepLorentzVector boostXOf(const HepLorentzVector &vec, double beta)
friend HepLorentzVector boostXOf(const HepLorentzVector &vec, double beta)
friend HepLorentzVector rotationYOf(const HepLorentzVector &vec, double delta)
HepLorentzVector & rotateZ(double)
friend HepLorentzVector boostZOf(const HepLorentzVector &vec, double beta)
bool operator>(const HepLorentzVector &w) const
int compare(const HepLorentzVector &w) const
HepLorentzVector operator+(const HepLorentzVector &) const
bool isParallel(const HepLorentzVector &w, double epsilon=tolerance) const
void setV(const Hep3Vector &)
void setVectM(const Hep3Vector &spatial, double mass)
double deltaR(const HepLorentzVector &v) const
double operator[](int) const
std::ostream & operator<<(std::ostream &os, const HepRandom &dist)
HepLorentzVector & operator=(const HepLorentzVector &)
HepLorentzVector & boost(double, double, double)
HepLorentzVector boostOf(const HepLorentzVector &vec, const Hep3Vector &betaVector)
bool operator<(const HepLorentzVector &w) const
double howNear(const HepLorentzVector &w) const
HepLorentzVector boostZOf(const HepLorentzVector &vec, double beta)
HepLorentzVector & operator/=(double)
void setRhoPhiZ(double rho, double phi, double z)
HepLorentzVector HepLorentzVectorD
static ZMpvMetric_t setMetric(ZMpvMetric_t met)
static const HepLorentzVector X_HAT4
HepLorentzVector & rotateUz(const Hep3Vector &)
HepLorentzVector & rotate(double, const Hep3Vector &)
HepLorentzVector rotationYOf(const HepLorentzVector &vec, double delta)
HepLorentzVector & boostZ(double beta)
HepLorentzVector operator/(const HepLorentzVector &, double a)
double invariantMass2() const
bool operator>=(const HepLorentzVector &w) const
Hep3Vector findBoostToCM() const
HepLorentzVector & operator+=(const HepLorentzVector &)
HepLorentzVector rotationZOf(const HepLorentzVector &vec, double delta)
void set(double x, double y, double z, double t)
void setRThetaPhi(double r, double theta, double phi)
bool isLightlike(double epsilon=tolerance) const
HepLorentzVector boostYOf(const HepLorentzVector &vec, double beta)
HepLorentzVector & boostX(double beta)
HepLorentzVector & rotateY(double)
HepLorentzVector rest4Vector() const
HepLorentzVector & boostY(double beta)
static const HepLorentzVector Y_HAT4
static const HepLorentzVector T_HAT4
double operator*(const HepLorentzVector &) const
HepLorentzVector & transform(const HepRotation &)
bool operator!=(const HepLorentzVector &) const
void setREtaPhi(double r, double eta, double phi)
bool operator<=(const HepLorentzVector &w) const
HepLorentzVector HepLorentzVectorF
static double getTolerance()
friend HepLorentzVector boostYOf(const HepLorentzVector &vec, double beta)
friend HepLorentzVector rotationOf(const HepLorentzVector &vec, const Hep3Vector &axis, double delta)
void setVect(const Hep3Vector &)
static const HepLorentzVector Z_HAT4
std::istream & operator>>(std::istream &is, HepRandom &dist)
HepLorentzVector & operator-=(const HepLorentzVector &)
double howNearCM(const HepLorentzVector &w) const
friend HepLorentzVector rotationZOf(const HepLorentzVector &vec, double delta)
double angle(const Hep3Vector &) const
static ZMpvMetric_t getMetric()
double epsilon(double density, double temperature)
double howParallel(const HepLorentzVector &w) const