ROOT
6.06/09
Reference Guide
|
Definition at line 38 of file TLorentzVector.h.
Public Types | |
enum | { kX =0, kY =1, kZ =2, kT =3, kNUM_COORDINATES =4, kSIZE =kNUM_COORDINATES } |
typedef Double_t | Scalar |
Public Types inherited from TObject | |
enum | EStatusBits { kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4), kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13) } |
enum | { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff } |
enum | { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) } |
Public Member Functions | |
TLorentzVector () | |
TLorentzVector (Double_t x, Double_t y, Double_t z, Double_t t) | |
TLorentzVector (const Double_t *carray) | |
TLorentzVector (const Float_t *carray) | |
TLorentzVector (const TVector3 &vector3, Double_t t) | |
TLorentzVector (const TLorentzVector &lorentzvector) | |
virtual | ~TLorentzVector () |
Double_t | X () const |
Double_t | Y () const |
Double_t | Z () const |
Double_t | T () const |
void | SetX (Double_t a) |
void | SetY (Double_t a) |
void | SetZ (Double_t a) |
void | SetT (Double_t a) |
Double_t | Px () const |
Double_t | Py () const |
Double_t | Pz () const |
Double_t | P () const |
Double_t | E () const |
Double_t | Energy () const |
void | SetPx (Double_t a) |
void | SetPy (Double_t a) |
void | SetPz (Double_t a) |
void | SetE (Double_t a) |
TVector3 | Vect () const |
void | SetVect (const TVector3 &vect3) |
Double_t | Theta () const |
Double_t | CosTheta () const |
Double_t | Phi () const |
Double_t | Rho () const |
void | SetTheta (Double_t theta) |
void | SetPhi (Double_t phi) |
void | SetRho (Double_t rho) |
void | SetPxPyPzE (Double_t px, Double_t py, Double_t pz, Double_t e) |
void | SetXYZT (Double_t x, Double_t y, Double_t z, Double_t t) |
void | SetXYZM (Double_t x, Double_t y, Double_t z, Double_t m) |
void | SetPtEtaPhiM (Double_t pt, Double_t eta, Double_t phi, Double_t m) |
void | SetPtEtaPhiE (Double_t pt, Double_t eta, Double_t phi, Double_t e) |
void | GetXYZT (Double_t *carray) const |
void | GetXYZT (Float_t *carray) const |
Double_t | operator() (int i) const |
Double_t | operator[] (int i) const |
Double_t & | operator() (int i) |
Double_t & | operator[] (int i) |
TLorentzVector & | operator= (const TLorentzVector &) |
TLorentzVector | operator+ (const TLorentzVector &) const |
TLorentzVector & | operator+= (const TLorentzVector &) |
TLorentzVector | operator- (const TLorentzVector &) const |
TLorentzVector & | operator-= (const TLorentzVector &) |
TLorentzVector | operator- () const |
TLorentzVector | operator* (Double_t a) const |
TLorentzVector & | operator*= (Double_t a) |
Bool_t | operator== (const TLorentzVector &) const |
Bool_t | operator!= (const TLorentzVector &) const |
Double_t | Perp2 () const |
Double_t | Pt () const |
Double_t | Perp () const |
void | SetPerp (Double_t) |
Double_t | Perp2 (const TVector3 &v) const |
Double_t | Pt (const TVector3 &v) const |
Double_t | Perp (const TVector3 &v) const |
Double_t | Et2 () const |
Double_t | Et () const |
Double_t | Et2 (const TVector3 &) const |
Double_t | Et (const TVector3 &) const |
Double_t | DeltaPhi (const TLorentzVector &) const |
Double_t | DeltaR (const TLorentzVector &) const |
Double_t | DrEtaPhi (const TLorentzVector &) const |
TVector2 | EtaPhiVector () |
Double_t | Angle (const TVector3 &v) const |
Double_t | Mag2 () const |
Double_t | M2 () const |
Double_t | Mag () const |
Double_t | M () const |
Double_t | Mt2 () const |
Double_t | Mt () const |
Double_t | Beta () const |
Double_t | Gamma () const |
Double_t | Dot (const TLorentzVector &) const |
Double_t | operator* (const TLorentzVector &) const |
void | SetVectMag (const TVector3 &spatial, Double_t magnitude) |
void | SetVectM (const TVector3 &spatial, Double_t mass) |
Double_t | Plus () const |
Double_t | Minus () const |
TVector3 | BoostVector () const |
void | Boost (Double_t, Double_t, Double_t) |
void | Boost (const TVector3 &) |
Double_t | Rapidity () const |
Double_t | Eta () const |
Double_t | PseudoRapidity () const |
void | RotateX (Double_t angle) |
void | RotateY (Double_t angle) |
void | RotateZ (Double_t angle) |
void | RotateUz (TVector3 &newUzVector) |
void | Rotate (Double_t, const TVector3 &) |
TLorentzVector & | operator*= (const TRotation &) |
TLorentzVector & | Transform (const TRotation &) |
TLorentzVector & | operator*= (const TLorentzRotation &) |
TLorentzVector & | Transform (const TLorentzRotation &) |
virtual void | Print (Option_t *option="") const |
Print the TLorentz vector components as (x,y,z,t) and (P,eta,phi,E) representations. More... | |
Public Member Functions inherited from TObject | |
TObject () | |
TObject (const TObject &object) | |
TObject copy ctor. More... | |
TObject & | operator= (const TObject &rhs) |
TObject assignment operator. More... | |
virtual | ~TObject () |
TObject destructor. More... | |
virtual void | AppendPad (Option_t *option="") |
Append graphics object to current pad. More... | |
virtual void | Browse (TBrowser *b) |
Browse object. May be overridden for another default action. More... | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. More... | |
virtual void | Clear (Option_t *="") |
virtual TObject * | Clone (const char *newname="") const |
Make a clone of an object using the Streamer facility. More... | |
virtual Int_t | Compare (const TObject *obj) const |
Compare abstract method. More... | |
virtual void | Copy (TObject &object) const |
Copy this to obj. More... | |
virtual void | Delete (Option_t *option="") |
Delete this object. More... | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Computes distance from point (px,py) to the object. More... | |
virtual void | Draw (Option_t *option="") |
Default Draw method for all objects. More... | |
virtual void | DrawClass () const |
Draw class inheritance tree of the class to which this object belongs. More... | |
virtual TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current pad. More... | |
virtual void | Dump () const |
Dump contents of object on stdout. More... | |
virtual void | Execute (const char *method, const char *params, Int_t *error=0) |
Execute method on this object with the given parameter string, e.g. More... | |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=0) |
Execute method on this object with parameters stored in the TObjArray. More... | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to an event at (px,py). More... | |
virtual TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. More... | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. More... | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. More... | |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. More... | |
virtual const char * | GetName () const |
Returns name of object. More... | |
virtual const char * | GetIconName () const |
Returns mime type name of object. More... | |
virtual Option_t * | GetOption () const |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). More... | |
virtual const char * | GetTitle () const |
Returns title of object. More... | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. More... | |
virtual ULong_t | Hash () const |
Return hash value for this object. More... | |
virtual Bool_t | InheritsFrom (const char *classname) const |
Returns kTRUE if object inherits from class "classname". More... | |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
Returns kTRUE if object inherits from TClass cl. More... | |
virtual void | Inspect () const |
Dump contents of this object in a graphics canvas. More... | |
virtual Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More... | |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). More... | |
virtual Bool_t | IsSortable () const |
Bool_t | IsOnHeap () const |
Bool_t | IsZombie () const |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification. More... | |
virtual void | ls (Option_t *option="") const |
The ls function lists the contents of a class on stdout. More... | |
virtual void | Paint (Option_t *option="") |
This method must be overridden if a class wants to paint itself. More... | |
virtual void | Pop () |
Pop on object drawn in a pad to the top of the display list. More... | |
virtual Int_t | Read (const char *name) |
Read contents of object with specified name from the current directory. More... | |
virtual void | RecursiveRemove (TObject *obj) |
Recursively remove this object from a list. More... | |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
Save this object in the file specified by filename. More... | |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
Save a primitive as a C++ statement(s) on output stream "out". More... | |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. More... | |
virtual void | SetUniqueID (UInt_t uid) |
Set the unique object id. More... | |
virtual void | UseCurrentStyle () |
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) |
Write this object to the current directory. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const |
Write this object to the current directory. More... | |
void * | operator new (size_t sz) |
void * | operator new[] (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz, void *vp) |
void | operator delete (void *ptr) |
Operator delete. More... | |
void | operator delete[] (void *ptr) |
Operator delete []. More... | |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. More... | |
void | SetBit (UInt_t f) |
void | ResetBit (UInt_t f) |
Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
void | InvertBit (UInt_t f) |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. More... | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. More... | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. More... | |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. More... | |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. More... | |
void | AbstractMethod (const char *method) const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract. More... | |
void | MayNotUse (const char *method) const |
Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More... | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. More... | |
Private Attributes | |
TVector3 | fP |
Double_t | fE |
Additional Inherited Members | |
Static Public Member Functions inherited from TObject | |
static Long_t | GetDtorOnly () |
Return destructor only flag. More... | |
static void | SetDtorOnly (void *obj) |
Set destructor only flag. More... | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. More... | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. More... | |
Protected Member Functions inherited from TObject | |
void | MakeZombie () |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
Interface to ErrorHandler (protected). More... | |
#include <TLorentzVector.h>
typedef Double_t TLorentzVector::Scalar |
Definition at line 47 of file TLorentzVector.h.
anonymous enum |
Enumerator | |
---|---|
kX | |
kY | |
kZ | |
kT | |
kNUM_COORDINATES | |
kSIZE |
Definition at line 49 of file TLorentzVector.h.
TLorentzVector::TLorentzVector | ( | ) |
Referenced by operator*(), operator+(), and operator-().
Definition at line 249 of file TLorentzVector.cxx.
TLorentzVector::TLorentzVector | ( | const Double_t * | carray | ) |
Definition at line 252 of file TLorentzVector.cxx.
TLorentzVector::TLorentzVector | ( | const Float_t * | carray | ) |
Definition at line 255 of file TLorentzVector.cxx.
Definition at line 258 of file TLorentzVector.cxx.
TLorentzVector::TLorentzVector | ( | const TLorentzVector & | lorentzvector | ) |
Definition at line 261 of file TLorentzVector.cxx.
|
virtual |
Definition at line 264 of file TLorentzVector.cxx.
Definition at line 484 of file TLorentzVector.h.
|
inline |
Definition at line 509 of file TLorentzVector.h.
Referenced by Gamma(), and TGenPhaseSpace::SetDecay().
Definition at line 298 of file TLorentzVector.cxx.
Referenced by Boost().
Definition at line 557 of file TLorentzVector.h.
|
inline |
Definition at line 553 of file TLorentzVector.h.
|
inline |
Definition at line 311 of file TLorentzVector.h.
|
inline |
Definition at line 462 of file TLorentzVector.h.
|
inline |
Definition at line 469 of file TLorentzVector.h.
Referenced by DrEtaPhi().
|
inline |
Definition at line 526 of file TLorentzVector.h.
Referenced by operator*().
|
inline |
Definition at line 475 of file TLorentzVector.h.
|
inline |
Definition at line 291 of file TLorentzVector.h.
Referenced by TPythia8Decayer::AppendParticle(), Et(), Et2(), Mt2(), and Rapidity().
|
inline |
Definition at line 292 of file TLorentzVector.h.
Referenced by TPythia6Decayer::Decay(), and TParticle::SetMomentum().
|
inline |
Definition at line 446 of file TLorentzVector.h.
Definition at line 457 of file TLorentzVector.h.
|
inline |
Definition at line 441 of file TLorentzVector.h.
Referenced by Et().
Definition at line 451 of file TLorentzVector.h.
|
inline |
Definition at line 466 of file TLorentzVector.h.
Referenced by DeltaR(), EtaPhiVector(), and Print().
|
inline |
Definition at line 479 of file TLorentzVector.h.
|
inline |
Definition at line 513 of file TLorentzVector.h.
Definition at line 358 of file TLorentzVector.h.
Definition at line 363 of file TLorentzVector.h.
|
inline |
Definition at line 498 of file TLorentzVector.h.
Referenced by TPythia8Decayer::AppendParticle().
|
inline |
Definition at line 497 of file TLorentzVector.h.
|
inline |
Definition at line 492 of file TLorentzVector.h.
Referenced by M(), and TGenPhaseSpace::SetDecay().
|
inline |
Definition at line 488 of file TLorentzVector.h.
|
inline |
Definition at line 549 of file TLorentzVector.h.
|
inline |
Definition at line 504 of file TLorentzVector.h.
|
inline |
Definition at line 500 of file TLorentzVector.h.
Referenced by Mt().
|
inline |
Definition at line 415 of file TLorentzVector.h.
Double_t TLorentzVector::operator() | ( | int | i | ) | const |
Definition at line 266 of file TLorentzVector.cxx.
Double_t & TLorentzVector::operator() | ( | int | i | ) |
Definition at line 282 of file TLorentzVector.cxx.
|
inline |
Definition at line 407 of file TLorentzVector.h.
|
inline |
Definition at line 530 of file TLorentzVector.h.
|
inline |
Definition at line 401 of file TLorentzVector.h.
|
inline |
Definition at line 585 of file TLorentzVector.h.
TLorentzVector & TLorentzVector::operator*= | ( | const TLorentzRotation & | m | ) |
Definition at line 318 of file TLorentzVector.cxx.
|
inline |
Definition at line 377 of file TLorentzVector.h.
|
inline |
Definition at line 381 of file TLorentzVector.h.
|
inline |
Definition at line 387 of file TLorentzVector.h.
|
inline |
Definition at line 397 of file TLorentzVector.h.
|
inline |
Definition at line 391 of file TLorentzVector.h.
|
inline |
Definition at line 371 of file TLorentzVector.h.
|
inline |
Definition at line 411 of file TLorentzVector.h.
|
inline |
Definition at line 369 of file TLorentzVector.h.
|
inline |
Definition at line 368 of file TLorentzVector.h.
|
inline |
Definition at line 290 of file TLorentzVector.h.
Referenced by Print().
|
inline |
Definition at line 421 of file TLorentzVector.h.
Referenced by Pt().
Definition at line 433 of file TLorentzVector.h.
|
inline |
Definition at line 419 of file TLorentzVector.h.
Definition at line 429 of file TLorentzVector.h.
|
inline |
Definition at line 303 of file TLorentzVector.h.
Referenced by TPythia6Decayer::Decay(), DeltaPhi(), DeltaR(), EtaPhiVector(), and Print().
|
inline |
Definition at line 545 of file TLorentzVector.h.
Print the TLorentz vector components as (x,y,z,t) and (P,eta,phi,E) representations.
Reimplemented from TObject.
Definition at line 358 of file TLorentzVector.cxx.
|
inline |
Definition at line 561 of file TLorentzVector.h.
Referenced by Eta().
|
inline |
Definition at line 423 of file TLorentzVector.h.
Definition at line 437 of file TLorentzVector.h.
|
inline |
Definition at line 287 of file TLorentzVector.h.
Referenced by TPythia8Decayer::AppendParticle(), TGenPhaseSpace::Generate(), and TParticle::SetMomentum().
|
inline |
Definition at line 288 of file TLorentzVector.h.
Referenced by TPythia8Decayer::AppendParticle(), TGenPhaseSpace::Generate(), and TParticle::SetMomentum().
|
inline |
Definition at line 289 of file TLorentzVector.h.
Referenced by TPythia8Decayer::AppendParticle(), TGenPhaseSpace::Generate(), Rapidity(), and TParticle::SetMomentum().
Double_t TLorentzVector::Rapidity | ( | ) | const |
Definition at line 312 of file TLorentzVector.cxx.
|
inline |
Definition at line 316 of file TLorentzVector.h.
Referenced by TGenPhaseSpace::SetDecay().
Definition at line 581 of file TLorentzVector.h.
Definition at line 577 of file TLorentzVector.h.
Definition at line 565 of file TLorentzVector.h.
Definition at line 569 of file TLorentzVector.h.
Definition at line 573 of file TLorentzVector.h.
Definition at line 297 of file TLorentzVector.h.
Definition at line 425 of file TLorentzVector.h.
Definition at line 324 of file TLorentzVector.h.
Definition at line 353 of file TLorentzVector.h.
Definition at line 348 of file TLorentzVector.h.
Definition at line 294 of file TLorentzVector.h.
Referenced by TGenPhaseSpace::Generate().
Definition at line 337 of file TLorentzVector.h.
Referenced by TGenPhaseSpace::Generate(), and TParticle::Momentum().
Definition at line 295 of file TLorentzVector.h.
Referenced by TGenPhaseSpace::Generate().
Definition at line 296 of file TLorentzVector.h.
Referenced by TGenPhaseSpace::Generate().
Definition at line 328 of file TLorentzVector.h.
Definition at line 285 of file TLorentzVector.h.
Definition at line 320 of file TLorentzVector.h.
Definition at line 301 of file TLorentzVector.h.
Definition at line 522 of file TLorentzVector.h.
Definition at line 518 of file TLorentzVector.h.
Referenced by SetVectM().
Definition at line 282 of file TLorentzVector.h.
Definition at line 341 of file TLorentzVector.h.
Referenced by SetPtEtaPhiM(), and SetVectMag().
Definition at line 332 of file TLorentzVector.h.
Referenced by TParticle::ProductionVertex(), SetPtEtaPhiE(), SetPxPyPzE(), setValues(), and SetXYZM().
Definition at line 283 of file TLorentzVector.h.
Definition at line 284 of file TLorentzVector.h.
|
inline |
Definition at line 280 of file TLorentzVector.h.
Referenced by Boost(), BoostVector(), Dot(), E(), Energy(), Mag2(), Minus(), operator!=(), operator*(), operator*(), operator+(), operator+=(), operator-(), operator-=(), operator=(), operator==(), Plus(), TParticle::SetProductionVertex(), and TLorentzRotation::VectorMultiplication().
|
inline |
Definition at line 307 of file TLorentzVector.h.
Referenced by TPythia6Decayer::Decay().
|
inline |
Definition at line 590 of file TLorentzVector.h.
TLorentzVector & TLorentzVector::Transform | ( | const TLorentzRotation & | m | ) |
Definition at line 324 of file TLorentzVector.cxx.
|
inline |
Definition at line 299 of file TLorentzVector.h.
Referenced by operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator=(), and operator==().
|
inline |
Definition at line 277 of file TLorentzVector.h.
Referenced by Boost(), BoostVector(), Dot(), operator*(), operator*(), operator-(), Px(), TParticle::SetProductionVertex(), and TLorentzRotation::VectorMultiplication().
|
inline |
Definition at line 278 of file TLorentzVector.h.
Referenced by Boost(), BoostVector(), Dot(), operator*(), operator*(), operator-(), Py(), TParticle::SetProductionVertex(), and TLorentzRotation::VectorMultiplication().
|
inline |
Definition at line 279 of file TLorentzVector.h.
Referenced by Boost(), BoostVector(), Dot(), Et2(), Minus(), Mt2(), operator*(), operator*(), operator-(), Plus(), Pz(), TParticle::SetProductionVertex(), and TLorentzRotation::VectorMultiplication().
|
private |
Definition at line 43 of file TLorentzVector.h.
Referenced by Beta(), GetXYZT(), operator()(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator=(), Print(), SetT(), and T().
|
private |
Definition at line 42 of file TLorentzVector.h.
Referenced by Angle(), Beta(), CosTheta(), Et2(), GetXYZT(), Mag2(), operator()(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator=(), P(), Perp(), Perp2(), Phi(), Print(), PseudoRapidity(), Rho(), Rotate(), RotateUz(), RotateX(), RotateY(), RotateZ(), SetPerp(), SetPhi(), SetRho(), SetTheta(), SetVect(), SetX(), SetXYZT(), SetY(), SetZ(), Theta(), Transform(), Vect(), X(), Y(), and Z().