class TLorentzRotation: public TObject

The Physics Vector package 
-*                    ==========================                       
-* The Physics Vector package consists of five classes:                
-*   - TVector2                                                        
-*   - TVector3                                                        
-*   - TRotation                                                       
-*   - TLorentzVector                                                  
-*   - TLorentzRotation                                                
-* It is a combination of CLHEPs Vector package written by             
-* Leif Lonnblad, Andreas Nilsson and Evgueni Tcherniaev               
-* and a ROOT package written by Pasha Murat.                          
-* for CLHEP see:  http://wwwinfo.cern.ch/asd/lhc++/clhep/             
*

TLorentzRotation

The TLorentzRotation class describes Lorentz transformations including Lorentz boosts and rotations (see TRotation)

            | xx  xy  xz  xt |
            |                |
            | yx  yy  yz  yt |
   lambda = |                |
            | zx  zy  zz  zt |
            |                |
            | tx  ty  tz  tt |
 

Declaration

By default it is initialized to the identity matrix, but it may also be intialized by an other TLorentzRotation,
by a pure TRotation or by a boost:

  TLorentzRotation l;      // l is initialized as identity
  TLorentzRotation m(l);   // m = l
  TRotation r;
  TLorentzRotation lr(r);
  TLorentzRotation lb1(bx,by,bz);
  TVector3 b;
  TLorentzRotation lb2(b);

The Matrix for a Lorentz boosts is:

 | 1+gamma'*bx*bx  gamma'*bx*by   gamma'*bx*bz  gamma*bx |
 |  gamma'*by*bx  1+gamma'*by*by  gamma'*by*bz  gamma*by |
 |  gamma'*bz*bx   gamma'*bz*by  1+gamma'*bz*bz gamma*bz |
 |    gamma*bx       gamma*by       gamma*bz     gamma   |

with the boost vector b=(bx,by,bz) and gamma=1/Sqrt(1-beta*beta) and gamma'=(gamma-1)/beta*beta.

Access to the matrix components/Comparisons

Access to the matrix components is possible through the member functions XX(), XY() .. TT(),
through the operator (int,int):

  Double_t xx;
  TLorentzRotation l;
  xx = l.XX();    // gets the xx component
  xx = l(0,0);    // gets the xx component

  if (l==m) {...}  // test for equality
  if (l !=m) {...} // test for inequality
  if (l.IsIdentity()) {...} // test for identity
 

Transformations of a LorentzRotation

Compound transformations
There are four possibilities to find the product of two TLorentzRotation transformations:

  TLorentzRotation a,b,c;
  c = b*a;                       // product
  c = a.MatrixMultiplication(b);  // a is unchanged
  a *= b;                        // Attention: a=a*b
  c = a.Transform(b)             // a=b*a then c=a
 

Lorentz boosts
  Double_t bx, by, bz;
  TVector3 v(bx,by,bz);
  TLorentzRotation l;
  l.Boost(v);
  l.Boost(bx,by,bz);
 
Rotations
  TVector3 axis;
  l.RotateX(TMath::Pi());   //  rotation around x-axis
  l.Rotate(.5,axis);               //  rotation around specified vector
Inverse transformation
The matrix for the inverse transformation of a TLorentzRotation is as follows:
            | xx  yx  zx -tx |
            |                |
            | xy  yy  zy -ty |
            |                |
            | xz  yz  zz -tz |
            |                |
            |-xt -yt -zt  tt |
To return the inverse transformation keeping the current unchanged use the memberfunction Inverse().
Invert() inverts the current TLorentzRotation:

  l1 = l2.Inverse();  // l1 is inverse of l2, l2 unchanged
  l1 = l2.Invert();   // invert l2, then  l1=l2

Transformation of a TLorentzVector

To apply TLorentzRotation to TLorentzVector you can use either the VectorMultiplication() member function or the * operator. You can also use the Transform() function and the *= operator of the TLorentzVector class.:

  TLorentzVector v;
  ...
  v=l.VectorMultiplication(v);
  v = l * v;

  v.Transform(l);
  v *= l;  // Attention v = l*v


Function Members (Methods)

public:
TLorentzRotation()
TLorentzRotation(const TRotation&)
TLorentzRotation(const TLorentzRotation&)
TLorentzRotation(const TVector3&)
TLorentzRotation(Double_t, Double_t, Double_t)
~TLorentzRotation()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
TLorentzRotation&Boost(const TVector3& b)
TLorentzRotation&Boost(Double_t bx, Double_t by, Double_t bz)
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
TLorentzRotationInverse() const
TLorentzRotation&Invert()
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tIsIdentity() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
TLorentzRotationMatrixMultiplication(const TLorentzRotation&) const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
Bool_toperator!=(const TLorentzRotation& r) const
Double_toperator()(int, int) const
TLorentzVectoroperator*(const TLorentzVector& p) const
TLorentzRotationoperator*(const TLorentzRotation& m) const
TLorentzRotation&operator*=(const TLorentzRotation& m)
TLorentzRotation&operator=(const TLorentzRotation& r)
TLorentzRotation&operator=(const TRotation& r)
Bool_toperator==(const TLorentzRotation& r) const
TLorentzRotation::TLorentzRotationRowoperator[](int i) const
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
TLorentzRotation&Rotate(Double_t angle, const TVector3& axis)
TLorentzRotation&Rotate(Double_t angle, const TVector3* axis)
TLorentzRotation&RotateX(Double_t angle)
TLorentzRotation&RotateY(Double_t angle)
TLorentzRotation&RotateZ(Double_t angle)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
TLorentzRotation&Transform(const TLorentzRotation& m)
TLorentzRotation&Transform(const TRotation& m)
Double_tTT() const
Double_tTX() const
Double_tTY() const
Double_tTZ() const
virtual voidTObject::UseCurrentStyle()
TLorentzVectorVectorMultiplication(const TLorentzVector& p) const
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
Double_tXT() const
Double_tXX() const
Double_tXY() const
Double_tXZ() const
Double_tYT() const
Double_tYX() const
Double_tYY() const
Double_tYZ() const
Double_tZT() const
Double_tZX() const
Double_tZY() const
Double_tZZ() const
protected:
TLorentzRotation(Double_t, Double_t, Double_t, Double_t, Double_t, Double_t, Double_t, Double_t, Double_t, Double_t, Double_t, Double_t, Double_t, Double_t, Double_t, Double_t)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
voidSetBoost(Double_t, Double_t, Double_t)

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
Double_tftt
Double_tftx
Double_tfty
Double_tftz
Double_tfxt
Double_tfxx
Double_tfxy
Double_tfxz
Double_tfyt
Double_tfyx
Double_tfyy
Double_tfyz
Double_tfzt
Double_tfzx
Double_tfzy
Double_tfzz

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TLorentzRotation()
{}
TLorentzRotation(const TRotation & r)
{}
TLorentzRotation(const TLorentzRotation & r)
{}
TLorentzRotation(Double_t , Double_t , Double_t , Double_t , Double_t , Double_t , Double_t , Double_t , Double_t , Double_t , Double_t , Double_t , Double_t , Double_t , Double_t , Double_t )
{}
TLorentzRotation(Double_t , Double_t , Double_t )
constructor
TLorentzRotation(const TVector3 & p)
copy constructor
void SetBoost(Double_t , Double_t , Double_t )
boost this Lorentz vector
TLorentzRotation MatrixMultiplication(const TLorentzRotation& ) const
multiply this vector by a matrix
Double_t XX()
{ return fxx; }
Double_t XY()
{ return fxy; }
Double_t XZ()
{ return fxz; }
Double_t XT()
{ return fxt; }
Double_t YX()
{ return fyx; }
Double_t YY()
{ return fyy; }
Double_t YZ()
{ return fyz; }
Double_t YT()
{ return fyt; }
Double_t ZX()
{ return fzx; }
Double_t ZY()
{ return fzy; }
Double_t ZZ()
{ return fzz; }
Double_t ZT()
{ return fzt; }
Double_t TX()
{ return ftx; }
Double_t TY()
{ return fty; }
Double_t TZ()
{ return ftz; }
Double_t TT()
{ return ftt; }
Bool_t IsIdentity()
TLorentzVector VectorMultiplication(const TLorentzVector& p) const
TLorentzRotation & Transform(const TLorentzRotation & m)
TLorentzRotation & Transform(const TRotation & m)
TLorentzRotation Inverse()
TLorentzRotation & Invert()
TLorentzRotation & Boost(Double_t bx, Double_t by, Double_t bz)
TLorentzRotation & Boost(const TVector3& b)
TLorentzRotation & RotateX(Double_t angle)
TLorentzRotation & RotateY(Double_t angle)
TLorentzRotation & RotateZ(Double_t angle)
TLorentzRotation & Rotate(Double_t angle, const TVector3 & axis)
TLorentzRotation & Rotate(Double_t angle, const TVector3 * axis)
return fRR-> operator()(int , int ) const

Author: Peter Malzacher 19/06/99
Last change: root/physics:$Id: TLorentzRotation.h 20882 2007-11-19 11:31:26Z rdm $
Last generated: 2008-06-25 08:48
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.