#include <PxPyPzM4D.h>
Public Types | |
| typedef ScalarType | Scalar |
Public Member Functions | |
| PxPyPzM4D () | |
| Default constructor with x=y=z=m=0. | |
| PxPyPzM4D (Scalar px, Scalar py, Scalar pz, Scalar m) | |
| Constructor from x, y , z , m values. | |
| template<class CoordSystem > | |
| PxPyPzM4D (const CoordSystem &v) | |
| construct from any 4D coordinate system class implementing X(), Y(), X() and M() | |
| PxPyPzM4D (const PxPyPzM4D &v) | |
| copy constructor | |
| PxPyPzM4D & | operator= (const PxPyPzM4D &v) |
| assignment operator | |
| template<class AnyCoordSystem > | |
| PxPyPzM4D & | operator= (const AnyCoordSystem &v) |
| construct from any 4D coordinate system class implementing X(), Y(), X() and M() | |
| void | SetCoordinates (const Scalar src[]) |
| Set internal data based on an array of 4 Scalar numbers. | |
| void | GetCoordinates (Scalar dest[]) const |
| get internal data into an array of 4 Scalar numbers | |
| void | SetCoordinates (Scalar px, Scalar py, Scalar pz, Scalar m) |
| Set internal data based on 4 Scalar numbers. | |
| void | GetCoordinates (Scalar &px, Scalar &py, Scalar &pz, Scalar &m) const |
| get internal data into 4 Scalar numbers | |
| 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. | |
| Scalar | T () const |
| Scalar | P2 () const |
| squared magnitude of spatial components | |
| Scalar | P () const |
| magnitude of spatial components (magnitude of 3-momentum) | |
| Scalar | R () const |
| Scalar | M2 () const |
| vector magnitude squared (or mass squared) In case of negative mass (spacelike particles return negative values) | |
| Scalar | Mag2 () const |
| Scalar | Mag () const |
| Scalar | E2 () const |
| energy squared | |
| Scalar | Pt2 () const |
| transverse spatial component squared | |
| Scalar | Perp2 () const |
| Scalar | Pt () const |
| Transverse spatial component (P_perp or rho). | |
| Scalar | Perp () const |
| Scalar | Rho () const |
| Scalar | Mt2 () const |
| transverse mass squared | |
| Scalar | Mt () const |
| transverse mass | |
| Scalar | Et2 () const |
| transverse energy squared | |
| Scalar | Et () const |
| transverse energy | |
| Scalar | Phi () const |
| azimuthal angle | |
| Scalar | Theta () const |
| polar angle | |
| Scalar | Eta () const |
| pseudorapidity | |
| void | SetPx (Scalar px) |
| set X value | |
| void | SetPy (Scalar py) |
| set Y value | |
| void | SetPz (Scalar pz) |
| set Z value | |
| void | SetM (Scalar m) |
| set T value | |
| void | SetPxPyPzE (Scalar px, Scalar py, Scalar pz, Scalar e) |
| set all values | |
| 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. | |
| void | Scale (const Scalar &a) |
| scale coordinate values by a scalar quantity a | |
| bool | operator== (const PxPyPzM4D &rhs) const |
| Exact equality. | |
| bool | operator!= (const PxPyPzM4D &rhs) const |
| Scalar | x () const |
| Scalar | y () const |
| Scalar | z () const |
| Scalar | t () const |
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 GenVector/PxPyPzM4D.h.
| typedef ScalarType ROOT::Math::PxPyPzM4D< ScalarType >::Scalar |
Definition at line 55 of file GenVector/PxPyPzM4D.h.
| ROOT::Math::PxPyPzM4D< ScalarType >::PxPyPzM4D | ( | ) | [inline] |
| ROOT::Math::PxPyPzM4D< ScalarType >::PxPyPzM4D | ( | const CoordSystem & | v | ) | [inline, explicit] |
| ROOT::Math::PxPyPzM4D< ScalarType >::PxPyPzM4D | ( | const PxPyPzM4D< ScalarType > & | v | ) | [inline] |
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::E | ( | ) | const [inline] |
Energy.
Definition at line 161 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::E2(), and ROOT::Math::sqrt().
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::t(), and ROOT::Math::PxPyPzM4D< ScalarType >::T().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::E2 | ( | ) | const [inline] |
energy squared
Definition at line 190 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::M2(), and ROOT::Math::PxPyPzM4D< ScalarType >::P2().
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::E(), ROOT::Math::PxPyPzM4D< ScalarType >::Et2(), and ROOT::Math::PxPyPzM4D< ScalarType >::Mt2().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Et | ( | ) | const [inline] |
transverse energy
Definition at line 240 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::Et2(), and ROOT::Math::sqrt().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Et2 | ( | ) | const [inline] |
transverse energy squared
Definition at line 231 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::E2(), and ROOT::Math::PxPyPzM4D< ScalarType >::Pt2().
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::Et().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Eta | ( | ) | const [inline] |
pseudorapidity
Definition at line 262 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::Impl::Eta_FromRhoZ(), and ROOT::Math::PxPyPzM4D< ScalarType >::Pt().
| void ROOT::Math::PxPyPzM4D< ScalarType >::GetCoordinates | ( | Scalar & | px, | |
| Scalar & | py, | |||
| Scalar & | pz, | |||
| Scalar & | m | |||
| ) | const [inline] |
| void ROOT::Math::PxPyPzM4D< ScalarType >::GetCoordinates | ( | Scalar | dest[] | ) | const [inline] |
get internal data into an array of 4 Scalar numbers
Definition at line 127 of file GenVector/PxPyPzM4D.h.
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::M | ( | ) | const [inline] |
Definition at line 151 of file GenVector/PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::Mag().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::M2 | ( | ) | const [inline] |
vector magnitude squared (or mass squared) In case of negative mass (spacelike particles return negative values)
Definition at line 180 of file GenVector/PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::E2(), and ROOT::Math::PxPyPzM4D< ScalarType >::Mag2().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Mag | ( | ) | const [inline] |
Definition at line 185 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::M().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Mag2 | ( | ) | const [inline] |
Definition at line 183 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::M2().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Mt | ( | ) | const [inline] |
transverse mass
Definition at line 217 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::Mt2(), ROOT::Math::sqrt(), and ROOT::Math::Throw().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Mt2 | ( | ) | const [inline] |
transverse mass squared
Definition at line 212 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::E2().
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::Mt().
| void ROOT::Math::PxPyPzM4D< ScalarType >::Negate | ( | ) | [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 GenVector/PxPyPzM4D.h.
References ROOT::Math::Throw().
| bool ROOT::Math::PxPyPzM4D< ScalarType >::operator!= | ( | const PxPyPzM4D< ScalarType > & | rhs | ) | const [inline] |
Definition at line 331 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::operator==().
| PxPyPzM4D& ROOT::Math::PxPyPzM4D< ScalarType >::operator= | ( | const AnyCoordSystem & | v | ) | [inline] |
| PxPyPzM4D& ROOT::Math::PxPyPzM4D< ScalarType >::operator= | ( | const PxPyPzM4D< ScalarType > & | v | ) | [inline] |
| bool ROOT::Math::PxPyPzM4D< ScalarType >::operator== | ( | const PxPyPzM4D< ScalarType > & | rhs | ) | const [inline] |
Exact equality.
Definition at line 328 of file GenVector/PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::operator!=().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::P | ( | ) | const [inline] |
magnitude of spatial components (magnitude of 3-momentum)
Definition at line 173 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::P2(), and ROOT::Math::sqrt().
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::R().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::P2 | ( | ) | const [inline] |
squared magnitude of spatial components
Definition at line 168 of file GenVector/PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::E2(), and ROOT::Math::PxPyPzM4D< ScalarType >::P().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Perp | ( | ) | const [inline] |
Definition at line 206 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::Pt().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Perp2 | ( | ) | const [inline] |
Definition at line 200 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::Pt2().
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::Pt().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Phi | ( | ) | const [inline] |
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Pt | ( | ) | const [inline] |
Transverse spatial component (P_perp or rho).
Definition at line 205 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::Perp2(), and ROOT::Math::sqrt().
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::Eta(), ROOT::Math::PxPyPzM4D< ScalarType >::Perp(), ROOT::Math::PxPyPzM4D< ScalarType >::Rho(), and ROOT::Math::PxPyPzM4D< ScalarType >::Theta().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Pt2 | ( | ) | const [inline] |
transverse spatial component squared
Definition at line 199 of file GenVector/PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::Et2(), and ROOT::Math::PxPyPzM4D< ScalarType >::Perp2().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Px | ( | ) | const [inline] |
Definition at line 148 of file GenVector/PxPyPzM4D.h.
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Py | ( | ) | const [inline] |
Definition at line 149 of file GenVector/PxPyPzM4D.h.
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Pz | ( | ) | const [inline] |
Definition at line 150 of file GenVector/PxPyPzM4D.h.
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::R | ( | ) | const [inline] |
Definition at line 174 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::P().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Rho | ( | ) | const [inline] |
Definition at line 207 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::Pt().
| void ROOT::Math::PxPyPzM4D< ScalarType >::Scale | ( | const Scalar & | a | ) | [inline] |
scale coordinate values by a scalar quantity a
Definition at line 317 of file GenVector/PxPyPzM4D.h.
| void ROOT::Math::PxPyPzM4D< ScalarType >::SetCoordinates | ( | Scalar | px, | |
| Scalar | py, | |||
| Scalar | pz, | |||
| Scalar | m | |||
| ) | [inline] |
| void ROOT::Math::PxPyPzM4D< ScalarType >::SetCoordinates | ( | const Scalar | src[] | ) | [inline] |
Set internal data based on an array of 4 Scalar numbers.
Definition at line 119 of file GenVector/PxPyPzM4D.h.
| void ROOT::Math::PxPyPzM4D< ScalarType >::SetM | ( | Scalar | m | ) | [inline] |
| void ROOT::Math::PxPyPzM4D< ScalarType >::SetPx | ( | Scalar | px | ) | [inline] |
| void ROOT::Math::PxPyPzM4D< ScalarType >::SetPxPyPzE | ( | Scalar | px, | |
| Scalar | py, | |||
| Scalar | pz, | |||
| Scalar | e | |||
| ) | [inline] |
| void ROOT::Math::PxPyPzM4D< ScalarType >::SetPy | ( | Scalar | py | ) | [inline] |
| void ROOT::Math::PxPyPzM4D< ScalarType >::SetPz | ( | Scalar | pz | ) | [inline] |
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::t | ( | ) | const [inline] |
Definition at line 341 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::E().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::T | ( | ) | const [inline] |
Definition at line 163 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::E().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Theta | ( | ) | const [inline] |
polar angle
Definition at line 255 of file GenVector/PxPyPzM4D.h.
References atan2(), and ROOT::Math::PxPyPzM4D< ScalarType >::Pt().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::x | ( | ) | const [inline] |
Definition at line 338 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::X().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::X | ( | ) | const [inline] |
Definition at line 153 of file GenVector/PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::x().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::y | ( | ) | const [inline] |
Definition at line 339 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::Y().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Y | ( | ) | const [inline] |
Definition at line 154 of file GenVector/PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::y().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::z | ( | ) | const [inline] |
Definition at line 340 of file GenVector/PxPyPzM4D.h.
References ROOT::Math::PxPyPzM4D< ScalarType >::Z().
| Scalar ROOT::Math::PxPyPzM4D< ScalarType >::Z | ( | ) | const [inline] |
Definition at line 155 of file GenVector/PxPyPzM4D.h.
Referenced by ROOT::Math::PxPyPzM4D< ScalarType >::z().
1.5.9