![]() |
ROOT
6.06/09
Reference Guide
|
Class describing a 4D cylindrical coordinate system using Pt , Phi, Eta and M (mass) 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 Phi is restricted to be in the range [-PI,PI)
Definition at line 56 of file PtEtaPhiM4D.h.
Public Types | |
typedef ScalarType | Scalar |
Public Member Functions | |
PtEtaPhiM4D () | |
Default constructor gives zero 4-vector (with zero mass) More... | |
PtEtaPhiM4D (Scalar pt, Scalar eta, Scalar phi, Scalar mass) | |
Constructor from pt, eta, phi, mass values. More... | |
template<class CoordSystem > | |
PtEtaPhiM4D (const CoordSystem &c) | |
Generic constructor from any 4D coordinate system implementing Pt(), Eta(), Phi() and M() More... | |
PtEtaPhiM4D (const PtEtaPhiM4D &v) | |
copy constructor More... | |
PtEtaPhiM4D & | operator= (const PtEtaPhiM4D &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 mass) |
Set internal data based on 4 Scalar numbers. More... | |
void | GetCoordinates (Scalar &pt, Scalar &eta, Scalar &phi, Scalar &mass) const |
get internal data into 4 Scalar numbers More... | |
Scalar | Pt () const |
Scalar | Eta () const |
Scalar | Phi () const |
Scalar | M () const |
M() is the invariant mass; in this coordinate system it can be negagative if set that way. More... | |
Scalar | Mag () const |
Scalar | Perp () const |
Scalar | Rho () 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 | E2 () const |
energy squared More... | |
Scalar | E () const |
Energy (timelike component of momentum-energy 4-vector) More... | |
Scalar | T () 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 | Pt2 () const |
transverse spatial component squared More... | |
Scalar | Perp2 () const |
Scalar | Mt2 () const |
transverse mass squared More... | |
Scalar | Mt () const |
transverse mass - will be negative if Mt2() is negative More... | |
Scalar | Et2 () const |
transverse energy squared More... | |
Scalar | Et () const |
transverse energy 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 | SetM (Scalar mass) |
set M 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 – 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 More... | |
void | Scale (Scalar a) |
Scale coordinate values by a scalar quantity a. More... | |
template<class CoordSystem > | |
PtEtaPhiM4D & | operator= (const CoordSystem &c) |
Assignment from a generic coordinate system implementing Pt(), Eta(), Phi() and M() More... | |
bool | operator== (const PtEtaPhiM4D &rhs) const |
Exact equality. More... | |
bool | operator!= (const PtEtaPhiM4D &rhs) const |
Scalar | x () const |
Scalar | y () const |
Scalar | z () const |
Scalar | t () const |
Private Member Functions | |
void | RestrictPhi () |
void | RestrictNegMass () |
Static Private Member Functions | |
static Scalar | pi () |
Private Attributes | |
ScalarType | fPt |
ScalarType | fEta |
ScalarType | fPhi |
ScalarType | fM |
#include <Math/GenVector/PtEtaPhiM4D.h>
typedef ScalarType ROOT::Math::PtEtaPhiM4D< ScalarType >::Scalar |
Definition at line 60 of file PtEtaPhiM4D.h.
|
inline |
Default constructor gives zero 4-vector (with zero mass)
Definition at line 67 of file PtEtaPhiM4D.h.
|
inline |
Constructor from pt, eta, phi, mass values.
Definition at line 72 of file PtEtaPhiM4D.h.
|
inlineexplicit |
|
inline |
copy constructor
Definition at line 92 of file PtEtaPhiM4D.h.
|
inline |
Energy (timelike component of momentum-energy 4-vector)
Definition at line 197 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::Et(), ROOT::Math::PtEtaPhiM4D< ScalarType >::T(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::t().
|
inline |
energy squared
Definition at line 188 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::E(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::Et2().
|
inline |
transverse energy
Definition at line 246 of file PtEtaPhiM4D.h.
|
inline |
transverse energy squared
Definition at line 238 of file PtEtaPhiM4D.h.
|
inline |
Definition at line 143 of file PtEtaPhiM4D.h.
|
inline |
get internal data into an array of 4 Scalar numbers
Definition at line 119 of file PtEtaPhiM4D.h.
|
inline |
get internal data into 4 Scalar numbers
Definition at line 135 of file PtEtaPhiM4D.h.
|
inline |
M() is the invariant mass; in this coordinate system it can be negagative if set that way.
Definition at line 149 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::Mag().
|
inline |
vector magnitude squared (or mass squared) In case of negative mass (spacelike particles return negative values)
Definition at line 205 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::E2(), ROOT::Math::PtEtaPhiM4D< ScalarType >::Mag2(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::Mt2().
|
inline |
Definition at line 150 of file PtEtaPhiM4D.h.
|
inline |
Definition at line 208 of file PtEtaPhiM4D.h.
|
inline |
transverse mass - will be negative if Mt2() is negative
Definition at line 224 of file PtEtaPhiM4D.h.
|
inline |
transverse mass squared
Definition at line 219 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< 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 321 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::Scale().
|
inline |
Definition at line 358 of file PtEtaPhiM4D.h.
|
inline |
assignment operator
Definition at line 98 of file PtEtaPhiM4D.h.
|
inline |
|
inline |
Exact equality.
Definition at line 354 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::operator!=().
|
inline |
magnitude of momentum
Definition at line 172 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::P2(), ROOT::Math::PtEtaPhiM4D< ScalarType >::R(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::RestrictNegMass().
|
inline |
squared magnitude of spatial components (momentum squared)
Definition at line 183 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::E2(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::RestrictNegMass().
|
inline |
Definition at line 152 of file PtEtaPhiM4D.h.
|
inline |
Definition at line 214 of file PtEtaPhiM4D.h.
|
inline |
Definition at line 144 of file PtEtaPhiM4D.h.
|
inlinestaticprivate |
Definition at line 251 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::Negate(), ROOT::Math::PtEtaPhiM4D< ScalarType >::RestrictPhi(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::Theta().
|
inline |
Definition at line 142 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::Perp(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::Rho().
|
inline |
transverse spatial component squared
Definition at line 213 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::Perp2().
|
inline |
Definition at line 157 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::X().
|
inline |
Definition at line 159 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::Y().
|
inline |
Definition at line 161 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::Z().
|
inline |
Definition at line 178 of file PtEtaPhiM4D.h.
|
inlineprivate |
Definition at line 259 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::PtEtaPhiM4D(), ROOT::Math::PtEtaPhiM4D< ScalarType >::SetCoordinates(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::SetM().
|
inlineprivate |
Definition at line 252 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::PtEtaPhiM4D(), ROOT::Math::PtEtaPhiM4D< ScalarType >::SetCoordinates(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::SetPhi().
|
inline |
Definition at line 153 of file PtEtaPhiM4D.h.
|
inline |
Scale coordinate values by a scalar quantity a.
Definition at line 330 of file PtEtaPhiM4D.h.
|
inline |
Set internal data based on an array of 4 Scalar numbers.
Definition at line 110 of file PtEtaPhiM4D.h.
|
inline |
Set internal data based on 4 Scalar numbers.
Definition at line 125 of file PtEtaPhiM4D.h.
|
inline |
set eta value
Definition at line 290 of file PtEtaPhiM4D.h.
|
inline |
set M value
Definition at line 303 of file PtEtaPhiM4D.h.
|
inline |
set phi value
Definition at line 296 of file PtEtaPhiM4D.h.
|
inline |
set Pt value
Definition at line 284 of file PtEtaPhiM4D.h.
|
inline |
set values using cartesian coordinate system
Definition at line 411 of file PtEtaPhiM4D.h.
|
inline |
Definition at line 199 of file PtEtaPhiM4D.h.
|
inline |
Definition at line 367 of file PtEtaPhiM4D.h.
|
inline |
polar angle
Definition at line 273 of file PtEtaPhiM4D.h.
|
inline |
Definition at line 158 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::x().
|
inline |
Definition at line 364 of file PtEtaPhiM4D.h.
|
inline |
Definition at line 160 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::y().
|
inline |
Definition at line 365 of file PtEtaPhiM4D.h.
|
inline |
Definition at line 167 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::z().
|
inline |
Definition at line 366 of file PtEtaPhiM4D.h.
|
private |
Definition at line 387 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::Et(), ROOT::Math::PtEtaPhiM4D< ScalarType >::Et2(), ROOT::Math::PtEtaPhiM4D< ScalarType >::Eta(), ROOT::Math::PtEtaPhiM4D< ScalarType >::GetCoordinates(), ROOT::Math::PtEtaPhiM4D< ScalarType >::Negate(), ROOT::Math::PtEtaPhiM4D< ScalarType >::operator=(), ROOT::Math::PtEtaPhiM4D< ScalarType >::operator==(), ROOT::Math::PtEtaPhiM4D< ScalarType >::P(), ROOT::Math::PtEtaPhiM4D< ScalarType >::Pz(), ROOT::Math::PtEtaPhiM4D< ScalarType >::SetCoordinates(), ROOT::Math::PtEtaPhiM4D< ScalarType >::SetEta(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::Theta().
|
private |
Definition at line 389 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::GetCoordinates(), ROOT::Math::PtEtaPhiM4D< ScalarType >::M(), ROOT::Math::PtEtaPhiM4D< ScalarType >::M2(), ROOT::Math::PtEtaPhiM4D< ScalarType >::operator=(), ROOT::Math::PtEtaPhiM4D< ScalarType >::operator==(), ROOT::Math::PtEtaPhiM4D< ScalarType >::PtEtaPhiM4D(), ROOT::Math::PtEtaPhiM4D< ScalarType >::RestrictNegMass(), ROOT::Math::PtEtaPhiM4D< ScalarType >::Scale(), ROOT::Math::PtEtaPhiM4D< ScalarType >::SetCoordinates(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::SetM().
|
private |
Definition at line 388 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::GetCoordinates(), ROOT::Math::PtEtaPhiM4D< ScalarType >::Negate(), ROOT::Math::PtEtaPhiM4D< ScalarType >::operator=(), ROOT::Math::PtEtaPhiM4D< ScalarType >::operator==(), ROOT::Math::PtEtaPhiM4D< ScalarType >::Phi(), ROOT::Math::PtEtaPhiM4D< ScalarType >::Px(), ROOT::Math::PtEtaPhiM4D< ScalarType >::Py(), ROOT::Math::PtEtaPhiM4D< ScalarType >::RestrictPhi(), ROOT::Math::PtEtaPhiM4D< ScalarType >::SetCoordinates(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::SetPhi().
|
private |
Definition at line 386 of file PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::GetCoordinates(), ROOT::Math::PtEtaPhiM4D< ScalarType >::Mt2(), ROOT::Math::PtEtaPhiM4D< ScalarType >::operator=(), ROOT::Math::PtEtaPhiM4D< ScalarType >::operator==(), ROOT::Math::PtEtaPhiM4D< ScalarType >::P(), ROOT::Math::PtEtaPhiM4D< ScalarType >::Pt(), ROOT::Math::PtEtaPhiM4D< ScalarType >::Pt2(), ROOT::Math::PtEtaPhiM4D< ScalarType >::Px(), ROOT::Math::PtEtaPhiM4D< ScalarType >::Py(), ROOT::Math::PtEtaPhiM4D< ScalarType >::Pz(), ROOT::Math::PtEtaPhiM4D< ScalarType >::Scale(), ROOT::Math::PtEtaPhiM4D< ScalarType >::SetCoordinates(), ROOT::Math::PtEtaPhiM4D< ScalarType >::SetPt(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::Theta().