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