ROOT
6.06/09
Reference Guide
|
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 (-,-,-,+)
Definition at line 46 of file PxPyPzE4D.h.
Public Types | |
typedef ScalarType | Scalar |
Public Member Functions | |
PxPyPzE4D () | |
Default constructor with x=y=z=t=0. More... | |
PxPyPzE4D (Scalar px, Scalar py, Scalar pz, Scalar e) | |
Constructor from x, y , z , t values. More... | |
template<class CoordSystem > | |
PxPyPzE4D (const CoordSystem &v) | |
construct from any vector or coordinate system class implementing x(), y() and z() and t() More... | |
PxPyPzE4D (const PxPyPzE4D &v) | |
copy constructor More... | |
PxPyPzE4D & | operator= (const PxPyPzE4D &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 px, Scalar py, Scalar pz, Scalar e) |
Set internal data based on 4 Scalar numbers. More... | |
void | GetCoordinates (Scalar &px, Scalar &py, Scalar &pz, Scalar &e) const |
get internal data into 4 Scalar numbers More... | |
Scalar | Px () const |
Scalar | Py () const |
Scalar | Pz () const |
Scalar | E () const |
Scalar | X () const |
Scalar | Y () const |
Scalar | Z () const |
Scalar | T () const |
Scalar | P2 () const |
squared magnitude of spatial components More... | |
Scalar | P () const |
magnitude of spatial components (magnitude of 3-momentum) More... | |
Scalar | R () const |
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 | Pt () const |
Transverse spatial component (P_perp or rho) More... | |
Scalar | Perp () const |
Scalar | Rho () const |
Scalar | Mt2 () const |
transverse mass squared More... | |
Scalar | Mt () const |
transverse mass More... | |
Scalar | Et2 () const |
transverse energy squared More... | |
Scalar | Et () const |
transverse energy More... | |
Scalar | Phi () const |
azimuthal angle More... | |
Scalar | Theta () const |
polar angle More... | |
Scalar | Eta () const |
pseudorapidity More... | |
void | SetPx (Scalar px) |
set X value More... | |
void | SetPy (Scalar py) |
set Y value More... | |
void | SetPz (Scalar pz) |
set Z value More... | |
void | SetE (Scalar e) |
set T value More... | |
void | SetPxPyPzE (Scalar px, Scalar py, Scalar pz, Scalar e) |
set all values using cartesian coordinates More... | |
void | Negate () |
negate the 4-vector More... | |
void | Scale (const Scalar &a) |
scale coordinate values by a scalar quantity a More... | |
template<class AnyCoordSystem > | |
PxPyPzE4D & | operator= (const AnyCoordSystem &v) |
Assignment from a generic coordinate system implementing x(), y(), z() and t() More... | |
bool | operator== (const PxPyPzE4D &rhs) const |
Exact equality. More... | |
bool | operator!= (const PxPyPzE4D &rhs) const |
Scalar | x () const |
Scalar | y () const |
Scalar | z () const |
Scalar | t () const |
Private Attributes | |
ScalarType | fX |
(contigous) data containing the coordinate values x,y,z,t More... | |
ScalarType | fY |
ScalarType | fZ |
ScalarType | fT |
#include <Math/GenVector/PxPyPzE4D.h>
typedef ScalarType ROOT::Math::PxPyPzE4D< ScalarType >::Scalar |
Definition at line 50 of file PxPyPzE4D.h.
|
inline |
Default constructor with x=y=z=t=0.
Definition at line 57 of file PxPyPzE4D.h.
|
inline |
Constructor from x, y , z , t values.
Definition at line 63 of file PxPyPzE4D.h.
|
inlineexplicit |
|
inline |
copy constructor
Definition at line 80 of file PxPyPzE4D.h.
|
inline |
Definition at line 125 of file PxPyPzE4D.h.
|
inline |
transverse energy
Definition at line 210 of file PxPyPzE4D.h.
|
inline |
transverse energy squared
Definition at line 201 of file PxPyPzE4D.h.
Referenced by ROOT::Math::PxPyPzE4D< Double32_t >::Et().
|
inline |
pseudorapidity
Definition at line 232 of file PxPyPzE4D.h.
|
inline |
get internal data into an array of 4 Scalar numbers
Definition at line 103 of file PxPyPzE4D.h.
|
inline |
get internal data into 4 Scalar numbers
Definition at line 115 of file PxPyPzE4D.h.
|
inline |
invariant mass
Definition at line 154 of file PxPyPzE4D.h.
Referenced by ROOT::Math::PxPyPzE4D< Double32_t >::Mag().
|
inline |
vector magnitude squared (or mass squared)
Definition at line 148 of file PxPyPzE4D.h.
Referenced by ROOT::Math::PxPyPzE4D< Double32_t >::M(), and ROOT::Math::PxPyPzE4D< Double32_t >::Mag2().
|
inline |
Definition at line 164 of file PxPyPzE4D.h.
|
inline |
Definition at line 149 of file PxPyPzE4D.h.
|
inline |
transverse mass
Definition at line 187 of file PxPyPzE4D.h.
|
inline |
transverse mass squared
Definition at line 182 of file PxPyPzE4D.h.
Referenced by ROOT::Math::PxPyPzE4D< Double32_t >::Mt().
|
inline |
negate the 4-vector
Definition at line 281 of file PxPyPzE4D.h.
|
inline |
Definition at line 312 of file PxPyPzE4D.h.
|
inline |
assignment operator
Definition at line 86 of file PxPyPzE4D.h.
|
inline |
|
inline |
Exact equality.
Definition at line 309 of file PxPyPzE4D.h.
Referenced by ROOT::Math::PxPyPzE4D< Double32_t >::operator!=().
|
inline |
magnitude of spatial components (magnitude of 3-momentum)
Definition at line 142 of file PxPyPzE4D.h.
Referenced by ROOT::Math::PxPyPzE4D< Double32_t >::R().
|
inline |
squared magnitude of spatial components
Definition at line 137 of file PxPyPzE4D.h.
Referenced by ROOT::Math::PxPyPzE4D< Double32_t >::P().
|
inline |
Definition at line 176 of file PxPyPzE4D.h.
|
inline |
Definition at line 170 of file PxPyPzE4D.h.
Referenced by ROOT::Math::PxPyPzE4D< Double32_t >::Pt().
|
inline |
azimuthal angle
Definition at line 218 of file PxPyPzE4D.h.
|
inline |
Transverse spatial component (P_perp or rho)
Definition at line 175 of file PxPyPzE4D.h.
Referenced by ROOT::Math::PxPyPzE4D< Double32_t >::Eta(), ROOT::Math::PxPyPzE4D< Double32_t >::Perp(), ROOT::Math::PxPyPzE4D< Double32_t >::Rho(), and ROOT::Math::PxPyPzE4D< Double32_t >::Theta().
|
inline |
transverse spatial component squared
Definition at line 169 of file PxPyPzE4D.h.
Referenced by ROOT::Math::PxPyPzE4D< Double32_t >::Et2(), and ROOT::Math::PxPyPzE4D< Double32_t >::Perp2().
|
inline |
Definition at line 122 of file PxPyPzE4D.h.
|
inline |
Definition at line 123 of file PxPyPzE4D.h.
|
inline |
Definition at line 124 of file PxPyPzE4D.h.
|
inline |
Definition at line 143 of file PxPyPzE4D.h.
|
inline |
Definition at line 177 of file PxPyPzE4D.h.
|
inline |
scale coordinate values by a scalar quantity a
Definition at line 286 of file PxPyPzE4D.h.
|
inline |
Set internal data based on an array of 4 Scalar numbers.
Definition at line 97 of file PxPyPzE4D.h.
|
inline |
Set internal data based on 4 Scalar numbers.
Definition at line 109 of file PxPyPzE4D.h.
|
inline |
set T value
Definition at line 260 of file PxPyPzE4D.h.
|
inline |
set X value
Definition at line 242 of file PxPyPzE4D.h.
|
inline |
set all values using cartesian coordinates
Definition at line 267 of file PxPyPzE4D.h.
|
inline |
set Y value
Definition at line 248 of file PxPyPzE4D.h.
|
inline |
set Z value
Definition at line 254 of file PxPyPzE4D.h.
|
inline |
Definition at line 130 of file PxPyPzE4D.h.
|
inline |
Definition at line 322 of file PxPyPzE4D.h.
|
inline |
polar angle
Definition at line 225 of file PxPyPzE4D.h.
|
inline |
Definition at line 127 of file PxPyPzE4D.h.
|
inline |
Definition at line 319 of file PxPyPzE4D.h.
|
inline |
Definition at line 128 of file PxPyPzE4D.h.
|
inline |
Definition at line 320 of file PxPyPzE4D.h.
|
inline |
Definition at line 129 of file PxPyPzE4D.h.
|
inline |
Definition at line 321 of file PxPyPzE4D.h.
|
private |
Definition at line 349 of file PxPyPzE4D.h.
Referenced by ROOT::Math::PxPyPzE4D< Double32_t >::E(), ROOT::Math::PxPyPzE4D< Double32_t >::Et(), ROOT::Math::PxPyPzE4D< Double32_t >::Et2(), ROOT::Math::PxPyPzE4D< Double32_t >::GetCoordinates(), ROOT::Math::PxPyPzE4D< Double32_t >::M2(), ROOT::Math::PxPyPzE4D< Double32_t >::Mt2(), ROOT::Math::PxPyPzE4D< Double32_t >::Negate(), ROOT::Math::PxPyPzE4D< Double32_t >::operator=(), ROOT::Math::PxPyPzE4D< Double32_t >::operator==(), ROOT::Math::PxPyPzE4D< Double32_t >::Scale(), ROOT::Math::PxPyPzE4D< Double32_t >::SetCoordinates(), ROOT::Math::PxPyPzE4D< Double32_t >::SetE(), ROOT::Math::PxPyPzE4D< Double32_t >::SetPxPyPzE(), ROOT::Math::PxPyPzE4D< Double32_t >::T(), and ROOT::Math::PxPyPzE4D< Double32_t >::t().
|
private |
(contigous) data containing the coordinate values x,y,z,t
Definition at line 346 of file PxPyPzE4D.h.
Referenced by ROOT::Math::PxPyPzE4D< Double32_t >::GetCoordinates(), ROOT::Math::PxPyPzE4D< Double32_t >::M2(), ROOT::Math::PxPyPzE4D< Double32_t >::Negate(), ROOT::Math::PxPyPzE4D< Double32_t >::operator=(), ROOT::Math::PxPyPzE4D< Double32_t >::operator==(), ROOT::Math::PxPyPzE4D< Double32_t >::P2(), ROOT::Math::PxPyPzE4D< Double32_t >::Phi(), ROOT::Math::PxPyPzE4D< Double32_t >::Pt2(), ROOT::Math::PxPyPzE4D< Double32_t >::Px(), ROOT::Math::PxPyPzE4D< Double32_t >::Scale(), ROOT::Math::PxPyPzE4D< Double32_t >::SetCoordinates(), ROOT::Math::PxPyPzE4D< Double32_t >::SetPx(), ROOT::Math::PxPyPzE4D< Double32_t >::SetPxPyPzE(), ROOT::Math::PxPyPzE4D< Double32_t >::Theta(), ROOT::Math::PxPyPzE4D< Double32_t >::X(), and ROOT::Math::PxPyPzE4D< Double32_t >::x().
|
private |
Definition at line 347 of file PxPyPzE4D.h.
Referenced by ROOT::Math::PxPyPzE4D< Double32_t >::GetCoordinates(), ROOT::Math::PxPyPzE4D< Double32_t >::M2(), ROOT::Math::PxPyPzE4D< Double32_t >::Negate(), ROOT::Math::PxPyPzE4D< Double32_t >::operator=(), ROOT::Math::PxPyPzE4D< Double32_t >::operator==(), ROOT::Math::PxPyPzE4D< Double32_t >::P2(), ROOT::Math::PxPyPzE4D< Double32_t >::Phi(), ROOT::Math::PxPyPzE4D< Double32_t >::Pt2(), ROOT::Math::PxPyPzE4D< Double32_t >::Py(), ROOT::Math::PxPyPzE4D< Double32_t >::Scale(), ROOT::Math::PxPyPzE4D< Double32_t >::SetCoordinates(), ROOT::Math::PxPyPzE4D< Double32_t >::SetPxPyPzE(), ROOT::Math::PxPyPzE4D< Double32_t >::SetPy(), ROOT::Math::PxPyPzE4D< Double32_t >::Theta(), ROOT::Math::PxPyPzE4D< Double32_t >::Y(), and ROOT::Math::PxPyPzE4D< Double32_t >::y().
|
private |
Definition at line 348 of file PxPyPzE4D.h.
Referenced by ROOT::Math::PxPyPzE4D< Double32_t >::Et2(), ROOT::Math::PxPyPzE4D< Double32_t >::Eta(), ROOT::Math::PxPyPzE4D< Double32_t >::GetCoordinates(), ROOT::Math::PxPyPzE4D< Double32_t >::M2(), ROOT::Math::PxPyPzE4D< Double32_t >::Mt2(), ROOT::Math::PxPyPzE4D< Double32_t >::Negate(), ROOT::Math::PxPyPzE4D< Double32_t >::operator=(), ROOT::Math::PxPyPzE4D< Double32_t >::operator==(), ROOT::Math::PxPyPzE4D< Double32_t >::P2(), ROOT::Math::PxPyPzE4D< Double32_t >::Pz(), ROOT::Math::PxPyPzE4D< Double32_t >::Scale(), ROOT::Math::PxPyPzE4D< Double32_t >::SetCoordinates(), ROOT::Math::PxPyPzE4D< Double32_t >::SetPxPyPzE(), ROOT::Math::PxPyPzE4D< Double32_t >::SetPz(), ROOT::Math::PxPyPzE4D< Double32_t >::Theta(), ROOT::Math::PxPyPzE4D< Double32_t >::Z(), and ROOT::Math::PxPyPzE4D< Double32_t >::z().