ThePEG 2.3.0
|
Transverse represents the transverse components of a LorentzVector. More...
#include <Transverse.h>
Public Types | |
using | Value2 = decltype(sqr(std::declval< Value >())) |
Template argument typedef. | |
using | BasePair = pair< Value, Value > |
Template argument typedef. | |
Public Member Functions | |
Constructors. | |
Transverse () | |
Default constructor. | |
Transverse (const BasePair &p) | |
Constructor from underlying representation. | |
Transverse (Value x, Value y) | |
Constructor from x and y components. | |
Transverse (const ThreeVector< Value > &p) | |
Constructor taking the transverse parts of a ThreeVector. | |
Transverse (const LorentzVector< Value > &p) | |
Constructor taking the transverse parts of a LorentzVector. | |
Transverse (const Lorentz5Vector< Value > &p) | |
Constructor taking the transverse parts of a Lorentz5Vector. | |
Assignment operators. | |
const Transverse & | operator= (const BasePair &p) |
Assignment from underlying representation. | |
const Transverse & | operator= (const ThreeVector< Value > &p) |
Assignment taking the transverse parts of a ThreeVector. | |
const Transverse & | operator= (const LorentzVector< Value > &p) |
Assignment taking the transverse parts of a LorentzVector. | |
const Transverse & | operator= (const Lorentz5Vector< Value > &p) |
Assignment taking the transverse parts of a Lorentz5Vector. | |
Arithmetric operations | |
Transverse | operator- () const |
Unary minus. | |
Transverse | operator- (const Transverse &pt) const |
Binary minus. | |
Transverse & | operator-= (const Transverse &pt) |
Assign-subtract. | |
Transverse | operator+ (const Transverse &pt) const |
Addition. | |
Transverse & | operator+= (const Transverse &pt) |
Assign-add. | |
Transverse & | operator*= (double a) |
Multiply-assign with a scalar. | |
Transverse & | operator/= (double a) |
Divide-assign with a scalar. | |
Access coordinates. | |
Value | x () const |
The x-component. | |
Value | y () const |
The y-component. | |
Value2 | pt2 () const |
The magnitude squared. | |
Value | pt () const |
The magnitude. | |
double | phi () const |
The azimuth angle. | |
Transverse represents the transverse components of a LorentzVector.
It inherits from std::pair<Value,Value>
and can be used anywhere such a pair is called for. It can also be created directly from a ThreeVector
, LorentzVector
and Lorentz5Momentum
.
Definition at line 30 of file Transverse.h.
using ThePEG::Transverse< Value >::BasePair = pair<Value,Value> |
Template argument typedef.
Definition at line 38 of file Transverse.h.
using ThePEG::Transverse< Value >::Value2 = decltype(sqr(std::declval<Value>())) |
Template argument typedef.
Definition at line 35 of file Transverse.h.
|
inline |
Default constructor.
Definition at line 47 of file Transverse.h.
Referenced by ThePEG::Transverse< Value >::operator+(), and ThePEG::Transverse< Value >::operator-().
|
inline |
Constructor from underlying representation.
Definition at line 52 of file Transverse.h.
|
inline |
Constructor from x and y components.
Definition at line 57 of file Transverse.h.
|
inline |
Constructor taking the transverse parts of a ThreeVector.
Definition at line 62 of file Transverse.h.
|
inline |
Constructor taking the transverse parts of a LorentzVector.
Definition at line 67 of file Transverse.h.
|
inline |
Constructor taking the transverse parts of a Lorentz5Vector.
Definition at line 72 of file Transverse.h.
|
inline |
Multiply-assign with a scalar.
Definition at line 153 of file Transverse.h.
|
inline |
Addition.
Definition at line 137 of file Transverse.h.
References ThePEG::Transverse< Value >::pt(), ThePEG::Transverse< Value >::Transverse(), ThePEG::Transverse< Value >::x(), and ThePEG::Transverse< Value >::y().
|
inline |
Assign-add.
Definition at line 144 of file Transverse.h.
References ThePEG::Transverse< Value >::pt().
|
inline |
Unary minus.
Definition at line 116 of file Transverse.h.
References ThePEG::Transverse< Value >::Transverse(), ThePEG::Transverse< Value >::x(), and ThePEG::Transverse< Value >::y().
|
inline |
Binary minus.
Definition at line 121 of file Transverse.h.
References ThePEG::Transverse< Value >::pt(), ThePEG::Transverse< Value >::Transverse(), ThePEG::Transverse< Value >::x(), and ThePEG::Transverse< Value >::y().
|
inline |
Assign-subtract.
Definition at line 128 of file Transverse.h.
References ThePEG::Transverse< Value >::pt().
|
inline |
Divide-assign with a scalar.
Definition at line 162 of file Transverse.h.
|
inline |
Assignment from underlying representation.
Definition at line 80 of file Transverse.h.
|
inline |
Assignment taking the transverse parts of a Lorentz5Vector.
Definition at line 104 of file Transverse.h.
References ThePEG::Lorentz5Vector< Value >::x().
|
inline |
Assignment taking the transverse parts of a LorentzVector.
Definition at line 96 of file Transverse.h.
|
inline |
Assignment taking the transverse parts of a ThreeVector.
Definition at line 88 of file Transverse.h.
|
inline |
The azimuth angle.
Definition at line 194 of file Transverse.h.
References ThePEG::Transverse< Value >::x(), and ThePEG::Transverse< Value >::y().
|
inline |
The magnitude.
Definition at line 189 of file Transverse.h.
References ThePEG::Transverse< Value >::pt2().
Referenced by ThePEG::Transverse< Value >::operator+(), ThePEG::Transverse< Value >::operator+=(), ThePEG::Transverse< Value >::operator-(), and ThePEG::Transverse< Value >::operator-=().
|
inline |
The magnitude squared.
Definition at line 184 of file Transverse.h.
References ThePEG::sqr(), ThePEG::Transverse< Value >::x(), and ThePEG::Transverse< Value >::y().
Referenced by ThePEG::Transverse< Value >::pt().
|
inline |
The x-component.
Definition at line 174 of file Transverse.h.
Referenced by ThePEG::lightCone(), ThePEG::lightConeDir(), ThePEG::Transverse< Value >::operator+(), ThePEG::Transverse< Value >::operator-(), ThePEG::ounitstream(), ThePEG::Transverse< Value >::phi(), and ThePEG::Transverse< Value >::pt2().
|
inline |
The y-component.
Definition at line 179 of file Transverse.h.
Referenced by ThePEG::lightCone(), ThePEG::lightConeDir(), ThePEG::Transverse< Value >::operator+(), ThePEG::Transverse< Value >::operator-(), ThePEG::ounitstream(), ThePEG::Transverse< Value >::phi(), and ThePEG::Transverse< Value >::pt2().