12 #ifndef ROOT_TLorentzVector 13 #define ROOT_TLorentzVector 30 #ifndef ROOT_TRotation 443 return pt2 == 0 ? 0 :
E()*
E() * pt2/(pt2+
Z()*
Z());
448 return E() < 0.0 ? -
sqrt(etet) :
sqrt(etet);
454 return pt2 == 0 ? 0 :
E()*
E() * pt2/(pt2+pv*pv);
459 return E() < 0.0 ? -
sqrt(etet) :
sqrt(etet);
501 return E()*
E() -
Z()*
Z();
519 SetXYZM(spatial.
X(), spatial.
Y(), spatial.
Z(), magnitude);
527 return T()*q.
T() -
Z()*q.
Z() -
Y()*q.
Y() -
X()*q.
X();
603 :
fP(x,y,z),
fE(t) {}
606 :
fP(x0),
fE(x0[3]) {}
609 :
fP(x0),
fE(x0[3]) {}
632 Error(
"operator()()",
"bad index (%d) returning 0",i);
650 Error(
"operator()()",
"bad index (%d) returning &fE",i);
Double_t Dot(const TVector3 &) const
The TLorentzRotation class describes Lorentz transformations including Lorentz boosts and rotations (...
void SetPxPyPzE(Double_t px, Double_t py, Double_t pz, Double_t e)
TLorentzVector operator+(const TLorentzVector &) const
void RotateUz(const TVector3 &)
NewUzVector must be normalized !
TLorentzVector & operator+=(const TLorentzVector &)
TLorentzVector operator-() const
void Boost(Double_t, Double_t, Double_t)
Double_t CosTheta() const
Double_t Angle(const TVector3 &v) const
void RotateZ(Double_t angle)
virtual void Print(Option_t *option="") const
Print the TLorentz vector components as (x,y,z,t) and (P,eta,phi,E) representations.
void RotateY(Double_t angle)
void RotateX(Double_t)
Rotate vector around X.
Double_t Angle(const TVector3 &) const
Return the angle w.r.t. another 3-vector.
Double_t CosTheta() const
TVector2 is a general two vector class, which can be used for the description of different vectors in...
void SetVectMag(const TVector3 &spatial, Double_t magnitude)
TLorentzVector & operator*=(Double_t a)
Double_t DeltaPhi(const TLorentzVector &) const
TVector3 Unit() const
Return unit vector parallel to this.
Double_t DeltaR(const TLorentzVector &) const
#define ClassDef(name, id)
void RotateUz(TVector3 &newUzVector)
void Rotate(Double_t, const TVector3 &)
Rotate vector.
static Double_t Phi_mpi_pi(Double_t x)
Returns phi angle in the interval [-PI,PI)
void SetXYZ(Double_t x, Double_t y, Double_t z)
void GetXYZ(Double_t *carray) const
Double_t PseudoRapidity() const
Double_t Dot(const TLorentzVector &) const
void SetRho(Double_t rho)
void SetPhi(Double_t phi)
Double_t Perp() const
Return the transverse component (R in cylindrical coordinate system)
void RotateY(Double_t)
Rotate vector around Y.
TVector3 is a general three vector class, which can be used for the description of different vectors ...
TLorentzVector & operator=(const TLorentzVector &)
The TRotation class describes a rotation of objects of the TVector3 class.
TVector3 BoostVector() const
void SetTheta(Double_t)
Set theta keeping mag and phi constant (BaBar).
TLorentzVector is a general four-vector class, which can be used either for the description of positi...
Double_t operator()(int i) const
void SetXYZT(Double_t x, Double_t y, Double_t z, Double_t t)
TLorentzVector & operator-=(const TLorentzVector &)
Bool_t operator!=(const TLorentzVector &) const
virtual ~TLorentzVector()
Double_t Theta() const
Return the polar angle.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
TLorentzVector operator*(Double_t a) const
void SetPtEtaPhiE(Double_t pt, Double_t eta, Double_t phi, Double_t e)
Double_t PseudoRapidity() const
Double_t m = Mag(); return 0.5*log( (m+fZ)/(m-fZ) ); guard against Pt=0.
void SetTheta(Double_t theta)
void Rotate(Double_t, const TVector3 &)
void SetXYZM(Double_t x, Double_t y, Double_t z, Double_t m)
TVector3 & Transform(const TRotation &)
Transform this vector with a TRotation.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
void RotateZ(Double_t)
Rotate vector around Z.
Mother of all ROOT objects.
you should not use this method at all Int_t Int_t z
void SetPhi(Double_t)
Set phi keeping mag and theta constant (BaBar).
void GetXYZT(Double_t *carray) const
Double_t Phi() const
Return the azimuth angle. Returns phi from -pi to pi.
Short_t Max(Short_t a, Short_t b)
Bool_t operator==(const TLorentzVector &) const
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
TLorentzVector & Transform(const TRotation &)
void SetVectM(const TVector3 &spatial, Double_t mass)
void SetPtEtaPhiM(Double_t pt, Double_t eta, Double_t phi, Double_t m)
Double_t Sqrt(Double_t x)
Double_t Rapidity() const
Double_t DrEtaPhi(const TLorentzVector &) const
Double_t operator[](int i) const
void SetVect(const TVector3 &vect3)
void RotateX(Double_t angle)