class ROOT::Math::PxPyPzE4D<Double32_t>


    Class describing a 4D cartesian coordinate system (x, y, z, t coordinates)
    or momentum-energy vectors stored as (Px, Py, Pz, E).
    The metric used is (-,-,-,+)

    @ingroup GenVector

This class is also known as (typedefs to this class)

ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<Double32_t> >::CoordinateType

Function Members (Methods)

public:
~PxPyPzE4D<Double32_t>()
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarE() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarEt() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarEt2() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarEta() const
voidGetCoordinates(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar* dest) const
voidGetCoordinates(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar& px, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar& py, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar& pz, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar& e) const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarM() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarM2() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarMag() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarMag2() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarMt() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarMt2() const
voidNegate()
booloperator!=(const ROOT::Math::PxPyPzE4D<Double32_t>& rhs) const
ROOT::Math::PxPyPzE4D<Double32_t>&operator=(const ROOT::Math::PxPyPzE4D<Double32_t>& v)
booloperator==(const ROOT::Math::PxPyPzE4D<Double32_t>& rhs) const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarP() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarP2() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarPerp() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarPerp2() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarPhi() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarPt() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarPt2() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarPx() const
ROOT::Math::PxPyPzE4D<Double32_t>PxPyPzE4D<Double32_t>()
ROOT::Math::PxPyPzE4D<Double32_t>PxPyPzE4D<Double32_t>(const ROOT::Math::PxPyPzE4D<Double32_t>& v)
ROOT::Math::PxPyPzE4D<Double32_t>PxPyPzE4D<Double32_t>(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar px, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar py, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar pz, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar e)
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarPy() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarPz() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarR() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarRho() const
voidScale(const ROOT::Math::PxPyPzE4D<Double32_t>::Scalar& a)
voidSetCoordinates(const ROOT::Math::PxPyPzE4D<Double32_t>::Scalar* src)
voidSetCoordinates(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar px, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar py, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar pz, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar e)
voidSetE(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar e)
voidSetEta(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar eta)
voidSetM(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar m)
voidSetPhi(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar phi)
voidSetPt(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar pt)
voidSetPx(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar px)
voidSetPxPyPzE(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar px, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar py, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar pz, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar e)
voidSetPy(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar py)
voidSetPz(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar pz)
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarT() const
ROOT::Math::PxPyPzE4D<Double32_t>::Scalart() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarTheta() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarX() const
ROOT::Math::PxPyPzE4D<Double32_t>::Scalarx() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarY() const
ROOT::Math::PxPyPzE4D<Double32_t>::Scalary() const
ROOT::Math::PxPyPzE4D<Double32_t>::ScalarZ() const
ROOT::Math::PxPyPzE4D<Double32_t>::Scalarz() const

Data Members

private:
Double32_tfT
Double32_tfX
Double32_tfY
Double32_tfZ

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void SetCoordinates(const ROOT::Math::PxPyPzE4D<Double32_t>::Scalar* src)
      Set internal data based on an array of 4 Scalar numbers

{ fX=src[0]; fY=src[1]; fZ=src[2]; fT=src[3]; }
void GetCoordinates(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar* dest) const
      get internal data into an array of 4 Scalar numbers

{ dest[0] = fX; dest[1] = fY; dest[2] = fZ; dest[3] = fT; }
void SetCoordinates(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar px, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar py, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar pz, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar e)
      Set internal data based on 4 Scalar numbers

{ fX=px; fY=py; fZ=pz; fT=e;}
void GetCoordinates(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar& px, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar& py, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar& pz, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar& e) const
      get internal data into 4 Scalar numbers

{ px=fX; py=fY; pz=fZ; e=fT;}
Scalar Px()
 --------- Coordinates and Coordinate-like Scalar properties -------------
 cartesian (Minkowski)coordinate accessors
{ return fX;}
Scalar Py()
{ return fY;}
Scalar Pz()
{ return fZ;}
Scalar E()
{ return fT;}
Scalar X()
{ return fX;}
Scalar Y()
{ return fY;}
Scalar Z()
{ return fZ;}
Scalar T()
{ return fT;}
Scalar P2()
 other coordinate representation

      squared magnitude of spatial components

{ return fX*fX + fY*fY + fZ*fZ; }
Scalar P()
      magnitude of spatial components (magnitude of 3-momentum)

{ return std::sqrt(P2()); }
Scalar R()
{ return P(); }
Scalar M2()
      vector magnitude squared (or mass squared)

{ return fT*fT - fX*fX - fY*fY - fZ*fZ;}
Scalar Mag2()
{ return M2(); }
Scalar M()
      invariant mass

Scalar Mag()
{ return M(); }
Scalar Pt2()
       transverse spatial component squared

{ return fX*fX + fY*fY;}
Scalar Perp2()
{ return Pt2();}
Scalar Pt()
      Transverse spatial component (P_perp or rho)

{ return std::sqrt(Perp2());}
Scalar Perp()
{ return Pt();}
Scalar Rho()
{ return Pt();}
Scalar Mt2()
       transverse mass squared

{ return fT*fT - fZ*fZ; }
Scalar Mt()
      transverse mass

Scalar Et2()
       transverse energy squared

Scalar Et()
      transverse energy

Scalar Phi()
      azimuthal angle

Scalar Theta()
      polar angle

Scalar Eta()
       pseudorapidity

void SetPx(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar px)
 --------- Set Coordinates of this system  ---------------

      set X value

void SetPy(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar py)
      set Y value

void SetPz(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar pz)
      set Z value

void SetE(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar e)
      set T value

void SetPxPyPzE(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar px, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar py, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar pz, ROOT::Math::PxPyPzE4D<Double32_t>::Scalar e)
       set all values using cartesian coordinates

void Negate( )
 ------ Manipulations -------------

      negate the 4-vector

{ fX = -fX; fY = -fY; fZ = -fZ; fT = -fT;}
void Scale(const ROOT::Math::PxPyPzE4D<Double32_t>::Scalar& a)
      scale coordinate values by a scalar quantity a

Scalar x()
 ============= Compatibility section ==================
 The following make this coordinate system look enough like a CLHEP
 vector that an assignment member template can work with either
{ return fX; }
Scalar y()
{ return fY; }
Scalar z()
{ return fZ; }
Scalar t()
{ return fT; }
void SetPt(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar pt)
 ====== Set member functions for coordinates in other systems =======
void SetEta(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar eta)
void SetPhi(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar phi)
void SetM(ROOT::Math::PxPyPzE4D<Double32_t>::Scalar m)

Last change: root/mathcore:$Id: PxPyPzE4D.h 23735 2008-05-07 21:18:33Z moneta $
Last generated: 2008-06-25 08:30
Copyright (c) 2005 , LCG ROOT MathLib Team *

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.