#include <Transverse.h>
Inherits pair.
Public Types | |
typedef BinaryOpTraits< Value, Value >::MulT | Value2 |
Template argument typedef. | |
typedef pair< Value, Value > | BasePair |
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. |
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.
typedef BinaryOpTraits<Value,Value>::MulT ThePEG::Transverse< Value >::Value2 |
typedef pair<Value,Value> ThePEG::Transverse< Value >::BasePair |