ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ROOT::Math::PtEtaPhiE4D< ScalarType > Class Template Reference

template<class ScalarType>
class ROOT::Math::PtEtaPhiE4D< ScalarType >

Class describing a 4D cylindrical coordinate system using Pt , Phi, Eta and E (or rho, phi, eta , T) The metric used is (-,-,-,+).

Phi is restricted to be in the range [-PI,PI)

Definition at line 58 of file PtEtaPhiE4D.h.

Public Types

typedef ScalarType Scalar
 

Public Member Functions

 PtEtaPhiE4D ()
 Default constructor gives zero 4-vector. More...
 
 PtEtaPhiE4D (Scalar pt, Scalar eta, Scalar phi, Scalar e)
 Constructor from pt, eta, phi, e values. More...
 
template<class CoordSystem >
 PtEtaPhiE4D (const CoordSystem &c)
 Generic constructor from any 4D coordinate system implementing Pt(), Eta(), Phi() and E() More...
 
 PtEtaPhiE4D (const PtEtaPhiE4D &v)
 copy constructor More...
 
PtEtaPhiE4Doperator= (const PtEtaPhiE4D &v)
 assignment operator More...
 
void SetCoordinates (const Scalar src[])
 Set internal data based on an array of 4 Scalar numbers. More...
 
void GetCoordinates (Scalar dest[]) const
 get internal data into an array of 4 Scalar numbers More...
 
void SetCoordinates (Scalar pt, Scalar eta, Scalar phi, Scalar e)
 Set internal data based on 4 Scalar numbers. More...
 
void GetCoordinates (Scalar &pt, Scalar &eta, Scalar &phi, Scalar &e) const
 get internal data into 4 Scalar numbers More...
 
Scalar Pt () const
 
Scalar Eta () const
 
Scalar Phi () const
 
Scalar E () const
 
Scalar Perp () const
 
Scalar Rho () const
 
Scalar T () const
 
Scalar Px () const
 
Scalar X () const
 
Scalar Py () const
 
Scalar Y () const
 
Scalar Pz () const
 
Scalar Z () const
 
Scalar P () const
 magnitude of momentum More...
 
Scalar R () const
 
Scalar P2 () const
 squared magnitude of spatial components (momentum squared) More...
 
Scalar M2 () const
 vector magnitude squared (or mass squared) More...
 
Scalar Mag2 () const
 
Scalar M () const
 invariant mass More...
 
Scalar Mag () const
 
Scalar Pt2 () const
 transverse spatial component squared More...
 
Scalar Perp2 () const
 
Scalar Mt2 () const
 transverse mass squared More...
 
Scalar Mt () const
 transverse mass More...
 
Scalar Et () const
 transverse energy More...
 
Scalar Et2 () const
 transverse energy squared More...
 
Scalar Theta () const
 polar angle More...
 
void SetPt (Scalar pt)
 set Pt value More...
 
void SetEta (Scalar eta)
 set eta value More...
 
void SetPhi (Scalar phi)
 set phi value More...
 
void SetE (Scalar e)
 set E value More...
 
void SetPxPyPzE (Scalar px, Scalar py, Scalar pz, Scalar e)
 set values using cartesian coordinate system More...
 
void Negate ()
 negate the 4-vector More...
 
void Scale (Scalar a)
 Scale coordinate values by a scalar quantity a. More...
 
template<class CoordSystem >
PtEtaPhiE4Doperator= (const CoordSystem &c)
 Assignment from a generic coordinate system implementing Pt(), Eta(), Phi() and E() More...
 
bool operator== (const PtEtaPhiE4D &rhs) const
 Exact equality. More...
 
bool operator!= (const PtEtaPhiE4D &rhs) const
 
Scalar x () const
 
Scalar y () const
 
Scalar z () const
 
Scalar t () const
 

Private Member Functions

void Restrict ()
 

Static Private Member Functions

static Scalar pi ()
 

Private Attributes

ScalarType fPt
 
ScalarType fEta
 
ScalarType fPhi
 
ScalarType fE
 

#include <Math/GenVector/PtEtaPhiE4D.h>

Member Typedef Documentation

template<class ScalarType>
typedef ScalarType ROOT::Math::PtEtaPhiE4D< ScalarType >::Scalar

Definition at line 62 of file PtEtaPhiE4D.h.

Constructor & Destructor Documentation

template<class ScalarType>
ROOT::Math::PtEtaPhiE4D< ScalarType >::PtEtaPhiE4D ( )
inline

Default constructor gives zero 4-vector.

Definition at line 69 of file PtEtaPhiE4D.h.

template<class ScalarType>
ROOT::Math::PtEtaPhiE4D< ScalarType >::PtEtaPhiE4D ( Scalar  pt,
Scalar  eta,
Scalar  phi,
Scalar  e 
)
inline

Constructor from pt, eta, phi, e values.

Definition at line 74 of file PtEtaPhiE4D.h.

template<class ScalarType>
template<class CoordSystem >
ROOT::Math::PtEtaPhiE4D< ScalarType >::PtEtaPhiE4D ( const CoordSystem &  c)
inlineexplicit

Generic constructor from any 4D coordinate system implementing Pt(), Eta(), Phi() and E()

Definition at line 82 of file PtEtaPhiE4D.h.

template<class ScalarType>
ROOT::Math::PtEtaPhiE4D< ScalarType >::PtEtaPhiE4D ( const PtEtaPhiE4D< ScalarType > &  v)
inline

copy constructor

Definition at line 91 of file PtEtaPhiE4D.h.

Member Function Documentation

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::E ( ) const
inline
template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Et ( ) const
inline

transverse energy

transverse energy

Definition at line 226 of file PtEtaPhiE4D.h.

Referenced by ROOT::Math::PtEtaPhiE4D< ScalarType >::Et2().

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Et2 ( ) const
inline

transverse energy squared

Definition at line 233 of file PtEtaPhiE4D.h.

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Eta ( ) const
inline

Definition at line 136 of file PtEtaPhiE4D.h.

template<class ScalarType>
void ROOT::Math::PtEtaPhiE4D< ScalarType >::GetCoordinates ( Scalar  dest[]) const
inline

get internal data into an array of 4 Scalar numbers

Definition at line 115 of file PtEtaPhiE4D.h.

template<class ScalarType>
void ROOT::Math::PtEtaPhiE4D< ScalarType >::GetCoordinates ( Scalar pt,
Scalar eta,
Scalar phi,
Scalar e 
) const
inline

get internal data into 4 Scalar numbers

Definition at line 128 of file PtEtaPhiE4D.h.

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::M ( ) const
inline

invariant mass

Definition at line 183 of file PtEtaPhiE4D.h.

Referenced by ROOT::Math::PtEtaPhiE4D< ScalarType >::Mag().

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::M2 ( ) const
inline

vector magnitude squared (or mass squared)

Definition at line 177 of file PtEtaPhiE4D.h.

Referenced by ROOT::Math::PtEtaPhiE4D< ScalarType >::M(), and ROOT::Math::PtEtaPhiE4D< ScalarType >::Mag2().

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Mag ( ) const
inline

Definition at line 193 of file PtEtaPhiE4D.h.

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Mag2 ( ) const
inline

Definition at line 178 of file PtEtaPhiE4D.h.

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Mt ( ) const
inline

transverse mass

Definition at line 209 of file PtEtaPhiE4D.h.

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Mt2 ( ) const
inline

transverse mass squared

Definition at line 204 of file PtEtaPhiE4D.h.

Referenced by ROOT::Math::PtEtaPhiE4D< ScalarType >::Mt().

template<class ScalarType>
void ROOT::Math::PtEtaPhiE4D< ScalarType >::Negate ( )
inline

negate the 4-vector

Definition at line 293 of file PtEtaPhiE4D.h.

Referenced by ROOT::Math::PtEtaPhiE4D< ScalarType >::Scale().

template<class ScalarType>
bool ROOT::Math::PtEtaPhiE4D< ScalarType >::operator!= ( const PtEtaPhiE4D< ScalarType > &  rhs) const
inline

Definition at line 330 of file PtEtaPhiE4D.h.

template<class ScalarType>
PtEtaPhiE4D& ROOT::Math::PtEtaPhiE4D< ScalarType >::operator= ( const PtEtaPhiE4D< ScalarType > &  v)
inline

assignment operator

Definition at line 97 of file PtEtaPhiE4D.h.

template<class ScalarType>
template<class CoordSystem >
PtEtaPhiE4D& ROOT::Math::PtEtaPhiE4D< ScalarType >::operator= ( const CoordSystem &  c)
inline

Assignment from a generic coordinate system implementing Pt(), Eta(), Phi() and E()

Definition at line 315 of file PtEtaPhiE4D.h.

template<class ScalarType>
bool ROOT::Math::PtEtaPhiE4D< ScalarType >::operator== ( const PtEtaPhiE4D< ScalarType > &  rhs) const
inline

Exact equality.

Definition at line 326 of file PtEtaPhiE4D.h.

Referenced by ROOT::Math::PtEtaPhiE4D< ScalarType >::operator!=().

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::P ( ) const
inline
template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::P2 ( ) const
inline

squared magnitude of spatial components (momentum squared)

Definition at line 172 of file PtEtaPhiE4D.h.

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Perp ( ) const
inline

Definition at line 140 of file PtEtaPhiE4D.h.

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Perp2 ( ) const
inline

Definition at line 199 of file PtEtaPhiE4D.h.

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Phi ( ) const
inline

Definition at line 137 of file PtEtaPhiE4D.h.

template<class ScalarType>
static Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::pi ( )
inlinestaticprivate
template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Pt ( ) const
inline
template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Pt2 ( ) const
inline

transverse spatial component squared

Definition at line 198 of file PtEtaPhiE4D.h.

Referenced by ROOT::Math::PtEtaPhiE4D< ScalarType >::Perp2().

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Px ( ) const
inline

Definition at line 146 of file PtEtaPhiE4D.h.

Referenced by ROOT::Math::PtEtaPhiE4D< ScalarType >::X().

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Py ( ) const
inline

Definition at line 148 of file PtEtaPhiE4D.h.

Referenced by ROOT::Math::PtEtaPhiE4D< ScalarType >::Y().

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Pz ( ) const
inline
template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::R ( ) const
inline

Definition at line 167 of file PtEtaPhiE4D.h.

template<class ScalarType>
void ROOT::Math::PtEtaPhiE4D< ScalarType >::Restrict ( )
inlineprivate
template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Rho ( ) const
inline

Definition at line 141 of file PtEtaPhiE4D.h.

template<class ScalarType>
void ROOT::Math::PtEtaPhiE4D< ScalarType >::Scale ( Scalar  a)
inline

Scale coordinate values by a scalar quantity a.

Definition at line 302 of file PtEtaPhiE4D.h.

template<class ScalarType>
void ROOT::Math::PtEtaPhiE4D< ScalarType >::SetCoordinates ( const Scalar  src[])
inline

Set internal data based on an array of 4 Scalar numbers.

Definition at line 109 of file PtEtaPhiE4D.h.

template<class ScalarType>
void ROOT::Math::PtEtaPhiE4D< ScalarType >::SetCoordinates ( Scalar  pt,
Scalar  eta,
Scalar  phi,
Scalar  e 
)
inline

Set internal data based on 4 Scalar numbers.

Definition at line 121 of file PtEtaPhiE4D.h.

template<class ScalarType>
void ROOT::Math::PtEtaPhiE4D< ScalarType >::SetE ( Scalar  e)
inline

set E value

Definition at line 278 of file PtEtaPhiE4D.h.

template<class ScalarType>
void ROOT::Math::PtEtaPhiE4D< ScalarType >::SetEta ( Scalar  eta)
inline

set eta value

Definition at line 265 of file PtEtaPhiE4D.h.

template<class ScalarType>
void ROOT::Math::PtEtaPhiE4D< ScalarType >::SetPhi ( Scalar  phi)
inline

set phi value

Definition at line 271 of file PtEtaPhiE4D.h.

template<class ScalarType>
void ROOT::Math::PtEtaPhiE4D< ScalarType >::SetPt ( Scalar  pt)
inline

set Pt value

Definition at line 259 of file PtEtaPhiE4D.h.

template<class ScalarType >
void ROOT::Math::PtEtaPhiE4D< ScalarType >::SetPxPyPzE ( Scalar  px,
Scalar  py,
Scalar  pz,
Scalar  e 
)
inline

set values using cartesian coordinate system

Definition at line 388 of file PtEtaPhiE4D.h.

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::T ( ) const
inline

Definition at line 142 of file PtEtaPhiE4D.h.

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::t ( ) const
inline

Definition at line 339 of file PtEtaPhiE4D.h.

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Theta ( ) const
inline

polar angle

Definition at line 248 of file PtEtaPhiE4D.h.

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::X ( ) const
inline

Definition at line 147 of file PtEtaPhiE4D.h.

Referenced by ROOT::Math::PtEtaPhiE4D< ScalarType >::x().

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::x ( ) const
inline

Definition at line 336 of file PtEtaPhiE4D.h.

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Y ( ) const
inline

Definition at line 149 of file PtEtaPhiE4D.h.

Referenced by ROOT::Math::PtEtaPhiE4D< ScalarType >::y().

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::y ( ) const
inline

Definition at line 337 of file PtEtaPhiE4D.h.

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::Z ( ) const
inline

Definition at line 156 of file PtEtaPhiE4D.h.

Referenced by ROOT::Math::PtEtaPhiE4D< ScalarType >::z().

template<class ScalarType>
Scalar ROOT::Math::PtEtaPhiE4D< ScalarType >::z ( ) const
inline

Definition at line 338 of file PtEtaPhiE4D.h.

Member Data Documentation

template<class ScalarType>
ScalarType ROOT::Math::PtEtaPhiE4D< ScalarType >::fE
private
template<class ScalarType>
ScalarType ROOT::Math::PtEtaPhiE4D< ScalarType >::fEta
private
template<class ScalarType>
ScalarType ROOT::Math::PtEtaPhiE4D< ScalarType >::fPhi
private
template<class ScalarType>
ScalarType ROOT::Math::PtEtaPhiE4D< ScalarType >::fPt
private

The documentation for this class was generated from the following file: