#include <PtEtaPhiM4D.h>
Public Types | |
| typedef ScalarType | Scalar |
Public Member Functions | |
| PtEtaPhiM4D () | |
| Default constructor gives zero 4-vector (with zero mass). | |
| PtEtaPhiM4D (Scalar pt, Scalar eta, Scalar phi, Scalar mass) | |
| Constructor from pt, eta, phi, mass values. | |
| template<class CoordSystem > | |
| PtEtaPhiM4D (const CoordSystem &c) | |
| Generic constructor from any 4D coordinate system implementing Pt(), Eta(), Phi() and M(). | |
| PtEtaPhiM4D (const PtEtaPhiM4D &v) | |
| copy constructor | |
| PtEtaPhiM4D & | operator= (const PtEtaPhiM4D &v) |
| assignment operator | |
| 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 pt, Scalar eta, Scalar phi, Scalar mass) |
| Set internal data based on 4 Scalar numbers. | |
| void | GetCoordinates (Scalar &pt, Scalar &eta, Scalar &phi, Scalar &mass) const |
| get internal data into 4 Scalar numbers | |
| 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. | |
| 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 | |
| Scalar | R () const |
| Scalar | P2 () const |
| squared magnitude of spatial components (momentum squared) | |
| Scalar | E2 () const |
| energy squared | |
| Scalar | E () const |
| Energy (timelike component of momentum-energy 4-vector). | |
| Scalar | T () const |
| Scalar | M2 () const |
| vector magnitude squared (or mass squared) In case of negative mass (spacelike particles return negative values) | |
| Scalar | Mag2 () const |
| Scalar | Pt2 () const |
| transverse spatial component squared | |
| Scalar | Perp2 () const |
| Scalar | Mt2 () const |
| transverse mass squared | |
| Scalar | Mt () const |
| transverse mass - will be negative if Mt2() is negative | |
| Scalar | Et2 () const |
| transverse energy squared | |
| Scalar | Et () const |
| transverse energy | |
| Scalar | Theta () const |
| polar angle | |
| void | SetPt (Scalar pt) |
| set Pt value | |
| void | SetEta (Scalar eta) |
| set eta value | |
| void | SetPhi (Scalar phi) |
| set phi value | |
| void | SetM (Scalar mass) |
| set M value | |
| void | SetPxPyPzE (Scalar px, Scalar py, Scalar pz, Scalar e) |
| set values using cartesian coordinate system | |
| 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 | |
| void | Scale (Scalar a) |
| Scale coordinate values by a scalar quantity a. | |
| template<class CoordSystem > | |
| PtEtaPhiM4D & | operator= (const CoordSystem &c) |
| Assignment from a generic coordinate system implementing Pt(), Eta(), Phi() and M(). | |
| bool | operator== (const PtEtaPhiM4D &rhs) const |
| Exact equality. | |
| bool | operator!= (const PtEtaPhiM4D &rhs) const |
| Scalar | x () const |
| Scalar | y () const |
| Scalar | z () const |
| Scalar | t () const |
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 GenVector/PtEtaPhiM4D.h.
| typedef ScalarType ROOT::Math::PtEtaPhiM4D< ScalarType >::Scalar |
Definition at line 60 of file GenVector/PtEtaPhiM4D.h.
| ROOT::Math::PtEtaPhiM4D< ScalarType >::PtEtaPhiM4D | ( | ) | [inline] |
Default constructor gives zero 4-vector (with zero mass).
Definition at line 67 of file GenVector/PtEtaPhiM4D.h.
| ROOT::Math::PtEtaPhiM4D< ScalarType >::PtEtaPhiM4D | ( | Scalar | pt, | |
| Scalar | eta, | |||
| Scalar | phi, | |||
| Scalar | mass | |||
| ) | [inline] |
| ROOT::Math::PtEtaPhiM4D< ScalarType >::PtEtaPhiM4D | ( | const CoordSystem & | c | ) | [inline, explicit] |
| ROOT::Math::PtEtaPhiM4D< ScalarType >::PtEtaPhiM4D | ( | const PtEtaPhiM4D< ScalarType > & | v | ) | [inline] |
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::E | ( | ) | const [inline] |
Energy (timelike component of momentum-energy 4-vector).
Definition at line 197 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::E2(), and ROOT::Math::sqrt().
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::Et(), ROOT::Math::PtEtaPhiM4D< ScalarType >::t(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::T().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::E2 | ( | ) | const [inline] |
energy squared
Definition at line 188 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::M2(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::P2().
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::E(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::Et2().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Et | ( | ) | const [inline] |
transverse energy
Definition at line 246 of file GenVector/PtEtaPhiM4D.h.
References cosh(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::E().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Et2 | ( | ) | const [inline] |
transverse energy squared
Definition at line 238 of file GenVector/PtEtaPhiM4D.h.
References cosh(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::E2().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Eta | ( | ) | const [inline] |
Definition at line 143 of file GenVector/PtEtaPhiM4D.h.
| void ROOT::Math::PtEtaPhiM4D< ScalarType >::GetCoordinates | ( | Scalar & | pt, | |
| Scalar & | eta, | |||
| Scalar & | phi, | |||
| Scalar & | mass | |||
| ) | const [inline] |
| void ROOT::Math::PtEtaPhiM4D< ScalarType >::GetCoordinates | ( | Scalar | dest[] | ) | const [inline] |
get internal data into an array of 4 Scalar numbers
Definition at line 119 of file GenVector/PtEtaPhiM4D.h.
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::M | ( | ) | const [inline] |
M() is the invariant mass; in this coordinate system it can be negagative if set that way.
Definition at line 149 of file GenVector/PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::Mag().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::M2 | ( | ) | const [inline] |
vector magnitude squared (or mass squared) In case of negative mass (spacelike particles return negative values)
Definition at line 205 of file GenVector/PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::E2(), ROOT::Math::PtEtaPhiM4D< ScalarType >::Mag2(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::Mt2().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Mag | ( | ) | const [inline] |
Definition at line 150 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::M().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Mag2 | ( | ) | const [inline] |
Definition at line 208 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::M2().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Mt | ( | ) | const [inline] |
transverse mass - will be negative if Mt2() is negative
Definition at line 224 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::Mt2(), ROOT::Math::sqrt(), and ROOT::Math::Throw().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Mt2 | ( | ) | const [inline] |
transverse mass squared
Definition at line 219 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::M2().
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::Mt().
| void ROOT::Math::PtEtaPhiM4D< 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 321 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::Throw().
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::Scale().
| bool ROOT::Math::PtEtaPhiM4D< ScalarType >::operator!= | ( | const PtEtaPhiM4D< ScalarType > & | rhs | ) | const [inline] |
Definition at line 358 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::operator==().
| PtEtaPhiM4D& ROOT::Math::PtEtaPhiM4D< ScalarType >::operator= | ( | const CoordSystem & | c | ) | [inline] |
| PtEtaPhiM4D& ROOT::Math::PtEtaPhiM4D< ScalarType >::operator= | ( | const PtEtaPhiM4D< ScalarType > & | v | ) | [inline] |
| bool ROOT::Math::PtEtaPhiM4D< ScalarType >::operator== | ( | const PtEtaPhiM4D< ScalarType > & | rhs | ) | const [inline] |
Exact equality.
Definition at line 354 of file GenVector/PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::operator!=().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::P | ( | ) | const [inline] |
magnitude of momentum
Definition at line 172 of file GenVector/PtEtaPhiM4D.h.
References cosh().
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::P2(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::R().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::P2 | ( | ) | const [inline] |
squared magnitude of spatial components (momentum squared)
Definition at line 183 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::P().
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::E2().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Perp | ( | ) | const [inline] |
Definition at line 152 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::Pt().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Perp2 | ( | ) | const [inline] |
Definition at line 214 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::Pt2().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Phi | ( | ) | const [inline] |
Definition at line 144 of file GenVector/PtEtaPhiM4D.h.
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Pt | ( | ) | const [inline] |
Definition at line 142 of file GenVector/PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::Perp(), and ROOT::Math::PtEtaPhiM4D< ScalarType >::Rho().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Pt2 | ( | ) | const [inline] |
transverse spatial component squared
Definition at line 213 of file GenVector/PtEtaPhiM4D.h.
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::Perp2().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Px | ( | ) | const [inline] |
Definition at line 157 of file GenVector/PtEtaPhiM4D.h.
References cos().
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::X().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Py | ( | ) | const [inline] |
Definition at line 159 of file GenVector/PtEtaPhiM4D.h.
References sin().
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::Y().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Pz | ( | ) | const [inline] |
Definition at line 161 of file GenVector/PtEtaPhiM4D.h.
References sinh().
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::Z().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::R | ( | ) | const [inline] |
Definition at line 178 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::P().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Rho | ( | ) | const [inline] |
Definition at line 153 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::Pt().
| void ROOT::Math::PtEtaPhiM4D< ScalarType >::Scale | ( | Scalar | a | ) | [inline] |
Scale coordinate values by a scalar quantity a.
Definition at line 330 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::Negate().
| void ROOT::Math::PtEtaPhiM4D< ScalarType >::SetCoordinates | ( | Scalar | pt, | |
| Scalar | eta, | |||
| Scalar | phi, | |||
| Scalar | mass | |||
| ) | [inline] |
Set internal data based on 4 Scalar numbers.
Definition at line 125 of file GenVector/PtEtaPhiM4D.h.
| void ROOT::Math::PtEtaPhiM4D< ScalarType >::SetCoordinates | ( | const Scalar | src[] | ) | [inline] |
Set internal data based on an array of 4 Scalar numbers.
Definition at line 110 of file GenVector/PtEtaPhiM4D.h.
| void ROOT::Math::PtEtaPhiM4D< ScalarType >::SetEta | ( | Scalar | eta | ) | [inline] |
| void ROOT::Math::PtEtaPhiM4D< ScalarType >::SetM | ( | Scalar | mass | ) | [inline] |
| void ROOT::Math::PtEtaPhiM4D< ScalarType >::SetPhi | ( | Scalar | phi | ) | [inline] |
| void ROOT::Math::PtEtaPhiM4D< ScalarType >::SetPt | ( | Scalar | pt | ) | [inline] |
| void ROOT::Math::PtEtaPhiM4D< ScalarType >::SetPxPyPzE | ( | Scalar | px, | |
| Scalar | py, | |||
| Scalar | pz, | |||
| Scalar | e | |||
| ) | [inline] |
set values using cartesian coordinate system
Definition at line 411 of file GenVector/PtEtaPhiM4D.h.
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::t | ( | ) | const [inline] |
Definition at line 367 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::E().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::T | ( | ) | const [inline] |
Definition at line 199 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::E().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Theta | ( | ) | const [inline] |
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::x | ( | ) | const [inline] |
Definition at line 364 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::X().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::X | ( | ) | const [inline] |
Definition at line 158 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::Px().
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::x().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::y | ( | ) | const [inline] |
Definition at line 365 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::Y().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Y | ( | ) | const [inline] |
Definition at line 160 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::Py().
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::y().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::z | ( | ) | const [inline] |
Definition at line 366 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::Z().
| Scalar ROOT::Math::PtEtaPhiM4D< ScalarType >::Z | ( | ) | const [inline] |
Definition at line 167 of file GenVector/PtEtaPhiM4D.h.
References ROOT::Math::PtEtaPhiM4D< ScalarType >::Pz().
Referenced by ROOT::Math::PtEtaPhiM4D< ScalarType >::z().
1.5.9