250 : fP(x,y,z), fE(t) {}
253 : fP(x0), fE(x0[3]) {}
256 : fP(x0), fE(x0[3]) {}
262 , fP(p.Vect()), fE(p.
T()) {}
277 Error(
"operator()()",
"bad index (%d) returning 0",i);
293 Error(
"operator()()",
"bad index (%d) returning &fE",i);
301 Double_t b2 = bx*bx + by*by + bz*bz;
304 Double_t gamma2 = b2 > 0 ? (gamma - 1.0)/b2 : 0.0;
306 SetX(
X() + gamma2*bp*bx + gamma*bx*
T());
307 SetY(
Y() + gamma2*bp*by + gamma*by*
T());
308 SetZ(
Z() + gamma2*bp*bz + gamma*bz*
T());
309 SetT(gamma*(
T() + bp));
315 return 0.5*
log( (
E()+
Pz()) / (
E()-
Pz()) );
330 void TLorentzVector::Streamer(
TBuffer &R__b)
342 if (R__v != 2) TObject::Streamer(R__b);
360 Printf(
"(x,y,z,t)=(%f,%f,%f,%f) (P,eta,phi,E)=(%f,%f,%f,%f)",
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
void Boost(Double_t, Double_t, Double_t)
Buffer base class used for serializing objects.
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
TLorentzVector & operator*=(Double_t a)
virtual ~TLorentzVector()
void SetXYZ(Double_t x, Double_t y, Double_t z)
virtual void Print(Option_t *option="") const
Print the TLorentz vector components as (x,y,z,t) and (P,eta,phi,E) representations.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
TLorentzVector VectorMultiplication(const TLorentzVector &) const
Double_t operator()(int i) const
Double_t Rapidity() const
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
ClassImp(TLorentzVector) TLorentzVector
Mother of all ROOT objects.
TLorentzVector & Transform(const TRotation &)
Double_t Sqrt(Double_t x)
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0