thepeg is hosted by Hepforge, IPPP Durham
ThePEG  2.2.1
LorentzVector.h File Reference

contains the LorentzVector class. More...

#include "LorentzVector.fh"
#include "ThePEG/Utilities/Direction.h"
#include "ThePEG/Utilities/UnitIO.h"
#include "LorentzRotation.h"
#include "ThreeVector.h"
#include "Transverse.h"

Go to the source code of this file.

Classes

class  ThePEG::LorentzVector< Value >
 A 4-component Lorentz vector. More...
 
class  ThePEG::LorentzVector< Value >
 A 4-component Lorentz vector. More...
 

Namespaces

 ThePEG
 This is the main namespace within which all identifiers in ThePEG are declared.
 

Macros

#define ERROR_IF(condition, message)   if ( condition ) throw ThePEG::Exception( (message) , ThePEG::Exception::eventerror)
 Debug helper function.
 

Functions

template<typename Value >
bool ThePEG::operator== (const LorentzVector< Value > &a, const LorentzVector< Value > &b)
 Equality.
 
ostream & ThePEG::operator<< (ostream &os, const LorentzVector< double > &v)
 Stream output. Format $(x,y,z;t)$.
 
template<typename Value >
Value ThePEG::dirPlus (const LorentzVector< Value > &p)
 Return the positive light-cone component. More...
 
template<typename Value >
Value ThePEG::dirMinus (const LorentzVector< Value > &p)
 Return the negative light-cone component. More...
 
template<typename Value >
Value ThePEG::dirZ (const LorentzVector< Value > &p)
 Return the component along the positive z-axis. More...
 
template<typename Value >
double ThePEG::dirTheta (const LorentzVector< Value > &p)
 Return the polar angle wrt. More...
 
template<typename Value >
double ThePEG::dirCosTheta (const LorentzVector< Value > &p)
 Return the cosine of the polar angle wrt. More...
 
template<typename Value >
ThreeVector< Value > ThePEG::dirBoostVector (const LorentzVector< Value > &p)
 Get the boost vector for the LorentzVector. More...
 
template<typename Value >
LorentzVector< Value > ThePEG::lightCone (Value plus, Value minus, Value x, Value y)
 Create a LorentzVector giving its light-cone and transverse components. More...
 
template<typename Value >
LorentzVector< Value > ThePEG::lightCone (Value plus, Value minus)
 Create a LorentzVector giving its light-cone components. More...
 
template<typename Value >
LorentzVector< Value > ThePEG::lightCone (Value plus, Value minus, Transverse< Value > pt)
 Create a LorentzVector giving its light-cone and transverse components. More...
 
template<typename Value >
LorentzVector< Value > ThePEG::lightConeDir (Value plus, Value minus, Value x=Value(), Value y=Value())
 Create a LorentzVector giving its light-cone and transverse components. More...
 
template<typename Value >
LorentzVector< Value > ThePEG::lightConeDir (Value plus, Value minus, Transverse< Value > pt)
 Create a LorentzVector giving its light-cone and transverse components. More...
 
template<typename OStream , typename UnitT , typename Value >
void ThePEG::ounitstream (OStream &os, const LorentzVector< Value > &p, UnitT &u)
 Output a LorentzVector with units to a stream. More...
 
template<typename IStream , typename UnitT , typename Value >
void ThePEG::iunitstream (IStream &is, LorentzVector< Value > &p, UnitT &u)
 Input a LorentzVector with units from a stream. More...
 
Basic mathematical operations
template<typename Value >
LorentzVector< double > ThePEG::operator/ (const LorentzVector< Value > &v, Value a)
 
LorentzVector< Complex > ThePEG::operator/ (const LorentzVector< Complex > &v, Complex a)
 
template<typename Value >
LorentzVector< Value > ThePEG::operator- (const LorentzVector< Value > &v)
 
template<typename ValueA , typename ValueB >
LorentzVector< ValueA > ThePEG::operator+ (LorentzVector< ValueA > a, const LorentzVector< ValueB > &b)
 
template<typename ValueA , typename ValueB >
LorentzVector< ValueA > ThePEG::operator- (LorentzVector< ValueA > a, const LorentzVector< ValueB > &b)
 
template<typename Value >
LorentzVector< Value > ThePEG::operator* (const LorentzVector< Value > &a, double b)
 
template<typename Value >
LorentzVector< Value > ThePEG::operator* (double b, LorentzVector< Value > a)
 
template<typename ValueA , typename ValueB >
auto ThePEG::operator* (ValueB a, const LorentzVector< ValueA > &v) -> LorentzVector< decltype(a *v.x())>
 
template<typename ValueA , typename ValueB >
auto ThePEG::operator* (const LorentzVector< ValueA > &v, ValueB b) -> LorentzVector< decltype(b *v.x())>
 
template<typename ValueA , typename ValueB >
auto ThePEG::operator/ (const LorentzVector< ValueA > &v, ValueB b) -> LorentzVector< decltype(v.x()/b)>
 
Scalar product with metric \f$(+,-,-,-)\f$
template<typename ValueA , typename ValueB >
auto ThePEG::operator* (const LorentzVector< ValueA > &a, const LorentzVector< ValueB > &b) -> decltype(a.dot(b))
 

Detailed Description

contains the LorentzVector class.

Lorentz vectors can be created with any unit type as template parameter. All basic mathematical operations are supported, as well as a subset of the CLHEP LorentzVector functionality.

Definition in file LorentzVector.h.