ROOT
6.07/01
Reference Guide
|
Class describing a 4D coordinate system or momentum-energy vectors stored as (Px, Py, Pz, M).
This system is useful to describe ultra-relativistic particles (like electrons at LHC) to avoid numerical errors evaluating the mass when E >>> m The metric used is (-,-,-,+) Spacelike particles (M2 < 0) are described with negative mass values, but in this case m2 must alwasy be less than P2 to preserve a positive value of E2
Definition at line 51 of file PxPyPzM4D.h.
Public Types | |
typedef ScalarType | Scalar |
Public Member Functions | |
PxPyPzM4D () | |
Default constructor with x=y=z=m=0. More... | |
PxPyPzM4D (Scalar px, Scalar py, Scalar pz, Scalar m) | |
Constructor from x, y , z , m values. More... | |
template<class CoordSystem > | |
PxPyPzM4D (const CoordSystem &v) | |
construct from any 4D coordinate system class implementing X(), Y(), X() and M() More... | |
PxPyPzM4D (const PxPyPzM4D &v) | |
copy constructor More... | |
PxPyPzM4D & | operator= (const PxPyPzM4D &v) |
assignment operator More... | |
template<class AnyCoordSystem > | |
PxPyPzM4D & | operator= (const AnyCoordSystem &v) |
construct from any 4D coordinate system class implementing X(), Y(), X() and M() 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 m) |
Set internal data based on 4 Scalar numbers. More... | |
void | GetCoordinates (Scalar &px, Scalar &py, Scalar &pz, Scalar &m) const |
get internal data into 4 Scalar numbers More... | |
Scalar | Px () const |
Scalar | Py () const |
Scalar | Pz () const |
Scalar | M () const |
Scalar | X () const |
Scalar | Y () const |
Scalar | Z () const |
Scalar | E () const |
Energy. More... | |
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) In case of negative mass (spacelike particles return negative values) More... | |
Scalar | Mag2 () const |
Scalar | Mag () const |
Scalar | E2 () const |
energy squared More... | |
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 | SetM (Scalar m) |
set T value More... | |
void | SetPxPyPzE (Scalar px, Scalar py, Scalar pz, Scalar e) |
set all values More... | |
void | Negate () |
negate the 4-vector - Note that the energy cannot be negate (would need an additional data member) therefore negate will work only on the spatial components. More... | |
void | Scale (const Scalar &a) |
scale coordinate values by a scalar quantity a More... | |
bool | operator== (const PxPyPzM4D &rhs) const |
Exact equality. More... | |
bool | operator!= (const PxPyPzM4D &rhs) const |
Scalar | x () const |
Scalar | y () const |
Scalar | z () const |
Scalar | t () const |
Private Member Functions | |
void | RestrictNegMass () |
Private Attributes | |
ScalarType | fX |
(contigous) data containing the coordinate values x,y,z,t More... | |
ScalarType | fY |
ScalarType | fZ |
ScalarType | fM |
#include <Math/GenVector/PxPyPzM4D.h>
typedef ScalarType ROOT::Math::PxPyPzM4D< ScalarType >::Scalar |
Definition at line 55 of file PxPyPzM4D.h.
|
inline |
Default constructor with x=y=z=m=0.
Definition at line 62 of file PxPyPzM4D.h.
|
inline |
Constructor from x, y , z , m values.
Definition at line 68 of file PxPyPzM4D.h.
|
inlineexplicit |
|
inline |
copy constructor
Definition at line 88 of file PxPyPzM4D.h.
|
inline |
Energy.
Definition at line 161 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::T(), and ROOT::Math::PxPyPzM4D< ScalarType >::t().
|
inline |
energy squared
Definition at line 190 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::E(), ROOT::Math::PxPyPzM4D< ScalarType >::Et2(), and ROOT::Math::PxPyPzM4D< ScalarType >::Mt2().
|
inline |
transverse energy
Definition at line 240 of file PxPyPzM4D.h.
|
inline |
transverse energy squared
Definition at line 231 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::Et().
|
inline |
pseudorapidity
Definition at line 262 of file PxPyPzM4D.h.
|
inline |
get internal data into an array of 4 Scalar numbers
Definition at line 127 of file PxPyPzM4D.h.
|
inline |
get internal data into 4 Scalar numbers
Definition at line 141 of file PxPyPzM4D.h.
|
inline |
Definition at line 151 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::Mag().
|
inline |
vector magnitude squared (or mass squared) In case of negative mass (spacelike particles return negative values)
Definition at line 180 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::E2(), and ROOT::Math::PxPyPzM4D< ScalarType >::Mag2().
|
inline |
Definition at line 185 of file PxPyPzM4D.h.
|
inline |
Definition at line 183 of file PxPyPzM4D.h.
|
inline |
transverse mass
Definition at line 217 of file PxPyPzM4D.h.
|
inline |
transverse mass squared
Definition at line 212 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::Mt().
|
inline |
negate the 4-vector - Note that the energy cannot be negate (would need an additional data member) therefore negate will work only on the spatial components.
One would need to use negate only with vectors having the energy as data members
Definition at line 307 of file PxPyPzM4D.h.
|
inline |
Definition at line 331 of file PxPyPzM4D.h.
|
inline |
assignment operator
Definition at line 94 of file PxPyPzM4D.h.
|
inline |
|
inline |
Exact equality.
Definition at line 328 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::operator!=().
|
inline |
magnitude of spatial components (magnitude of 3-momentum)
Definition at line 173 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::R(), and ROOT::Math::PxPyPzM4D< ScalarType >::RestrictNegMass().
|
inline |
squared magnitude of spatial components
Definition at line 168 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::E2(), ROOT::Math::PxPyPzM4D< ScalarType >::P(), and ROOT::Math::PxPyPzM4D< ScalarType >::RestrictNegMass().
|
inline |
Definition at line 206 of file PxPyPzM4D.h.
|
inline |
Definition at line 200 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::Pt().
|
inline |
azimuthal angle
Definition at line 248 of file PxPyPzM4D.h.
|
inline |
Transverse spatial component (P_perp or rho)
Definition at line 205 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::Eta(), ROOT::Math::PxPyPzM4D< ScalarType >::Perp(), ROOT::Math::PxPyPzM4D< ScalarType >::Rho(), and ROOT::Math::PxPyPzM4D< ScalarType >::Theta().
|
inline |
transverse spatial component squared
Definition at line 199 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::Et2(), and ROOT::Math::PxPyPzM4D< ScalarType >::Perp2().
|
inline |
Definition at line 148 of file PxPyPzM4D.h.
|
inline |
Definition at line 149 of file PxPyPzM4D.h.
|
inline |
Definition at line 150 of file PxPyPzM4D.h.
|
inline |
Definition at line 174 of file PxPyPzM4D.h.
|
inlineprivate |
Definition at line 363 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::PxPyPzM4D(), ROOT::Math::PxPyPzM4D< ScalarType >::SetCoordinates(), and ROOT::Math::PxPyPzM4D< ScalarType >::SetM().
|
inline |
Definition at line 207 of file PxPyPzM4D.h.
|
inline |
scale coordinate values by a scalar quantity a
Definition at line 317 of file PxPyPzM4D.h.
|
inline |
Set internal data based on an array of 4 Scalar numbers.
Definition at line 119 of file PxPyPzM4D.h.
|
inline |
Set internal data based on 4 Scalar numbers.
Definition at line 133 of file PxPyPzM4D.h.
|
inline |
set T value
Definition at line 290 of file PxPyPzM4D.h.
|
inline |
set X value
Definition at line 272 of file PxPyPzM4D.h.
|
inline |
set all values
Definition at line 402 of file PxPyPzM4D.h.
|
inline |
set Y value
Definition at line 278 of file PxPyPzM4D.h.
|
inline |
set Z value
Definition at line 284 of file PxPyPzM4D.h.
|
inline |
Definition at line 163 of file PxPyPzM4D.h.
|
inline |
Definition at line 341 of file PxPyPzM4D.h.
|
inline |
polar angle
Definition at line 255 of file PxPyPzM4D.h.
|
inline |
Definition at line 153 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::x().
|
inline |
Definition at line 338 of file PxPyPzM4D.h.
|
inline |
Definition at line 154 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::y().
|
inline |
Definition at line 339 of file PxPyPzM4D.h.
|
inline |
Definition at line 155 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::z().
|
inline |
Definition at line 340 of file PxPyPzM4D.h.
|
private |
Definition at line 380 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::GetCoordinates(), ROOT::Math::PxPyPzM4D< ScalarType >::M(), ROOT::Math::PxPyPzM4D< ScalarType >::M2(), ROOT::Math::PxPyPzM4D< ScalarType >::operator=(), ROOT::Math::PxPyPzM4D< ScalarType >::operator==(), ROOT::Math::PxPyPzM4D< ScalarType >::PxPyPzM4D(), ROOT::Math::PxPyPzM4D< ScalarType >::RestrictNegMass(), ROOT::Math::PxPyPzM4D< ScalarType >::Scale(), ROOT::Math::PxPyPzM4D< ScalarType >::SetCoordinates(), and ROOT::Math::PxPyPzM4D< ScalarType >::SetM().
|
private |
(contigous) data containing the coordinate values x,y,z,t
Definition at line 377 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::GetCoordinates(), ROOT::Math::PxPyPzM4D< ScalarType >::Negate(), ROOT::Math::PxPyPzM4D< ScalarType >::operator=(), ROOT::Math::PxPyPzM4D< ScalarType >::operator==(), ROOT::Math::PxPyPzM4D< ScalarType >::P2(), ROOT::Math::PxPyPzM4D< ScalarType >::Phi(), ROOT::Math::PxPyPzM4D< ScalarType >::Pt2(), ROOT::Math::PxPyPzM4D< ScalarType >::Px(), ROOT::Math::PxPyPzM4D< ScalarType >::Scale(), ROOT::Math::PxPyPzM4D< ScalarType >::SetCoordinates(), ROOT::Math::PxPyPzM4D< ScalarType >::SetPx(), ROOT::Math::PxPyPzM4D< ScalarType >::Theta(), and ROOT::Math::PxPyPzM4D< ScalarType >::X().
|
private |
Definition at line 378 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::GetCoordinates(), ROOT::Math::PxPyPzM4D< ScalarType >::Negate(), ROOT::Math::PxPyPzM4D< ScalarType >::operator=(), ROOT::Math::PxPyPzM4D< ScalarType >::operator==(), ROOT::Math::PxPyPzM4D< ScalarType >::P2(), ROOT::Math::PxPyPzM4D< ScalarType >::Phi(), ROOT::Math::PxPyPzM4D< ScalarType >::Pt2(), ROOT::Math::PxPyPzM4D< ScalarType >::Py(), ROOT::Math::PxPyPzM4D< ScalarType >::Scale(), ROOT::Math::PxPyPzM4D< ScalarType >::SetCoordinates(), ROOT::Math::PxPyPzM4D< ScalarType >::SetPy(), ROOT::Math::PxPyPzM4D< ScalarType >::Theta(), and ROOT::Math::PxPyPzM4D< ScalarType >::Y().
|
private |
Definition at line 379 of file PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::Et2(), ROOT::Math::PxPyPzM4D< ScalarType >::Eta(), ROOT::Math::PxPyPzM4D< ScalarType >::GetCoordinates(), ROOT::Math::PxPyPzM4D< ScalarType >::Mt2(), ROOT::Math::PxPyPzM4D< ScalarType >::Negate(), ROOT::Math::PxPyPzM4D< ScalarType >::operator=(), ROOT::Math::PxPyPzM4D< ScalarType >::operator==(), ROOT::Math::PxPyPzM4D< ScalarType >::P2(), ROOT::Math::PxPyPzM4D< ScalarType >::Pz(), ROOT::Math::PxPyPzM4D< ScalarType >::Scale(), ROOT::Math::PxPyPzM4D< ScalarType >::SetCoordinates(), ROOT::Math::PxPyPzM4D< ScalarType >::SetPz(), ROOT::Math::PxPyPzM4D< ScalarType >::Theta(), and ROOT::Math::PxPyPzM4D< ScalarType >::Z().