CLHEP 2.4.7.2
C++ Class Library for High Energy Physics
CLHEP::HepBoost Class Reference

#include <CLHEP/Vector/Boost.h>

Public Member Functions

 HepBoost ()
 HepBoost (const HepBoost &m)
 HepBoost (HepBoost &&m)=default
HepBoostoperator= (const HepBoost &m)
HepBoostoperator= (HepBoost &&m)=default
HepBoostset (double betaX, double betaY, double betaZ)
 HepBoost (double betaX, double betaY, double betaZ)
HepBoostset (const HepRep4x4Symmetric &m)
 HepBoost (const HepRep4x4Symmetric &m)
HepBoostset (Hep3Vector direction, double beta)
 HepBoost (Hep3Vector direction, double beta)
HepBoostset (const Hep3Vector &boost)
 HepBoost (const Hep3Vector &boost)
HepBoostset (const HepBoostX &boost)
HepBoostset (const HepBoostY &boost)
HepBoostset (const HepBoostZ &boost)
 HepBoost (const HepBoostX &boost)
 HepBoost (const HepBoostY &boost)
 HepBoost (const HepBoostZ &boost)
double beta () const
double gamma () const
Hep3Vector boostVector () const
Hep3Vector getDirection () const
Hep3Vector direction () const
double xx () const
double xy () const
double xz () const
double xt () const
double yx () const
double yy () const
double yz () const
double yt () const
double zx () const
double zy () const
double zz () const
double zt () const
double tx () const
double ty () const
double tz () const
double tt () const
HepLorentzVector col1 () const
HepLorentzVector col2 () const
HepLorentzVector col3 () const
HepLorentzVector col4 () const
HepLorentzVector row1 () const
HepLorentzVector row2 () const
HepLorentzVector row3 () const
HepLorentzVector row4 () const
HepRep4x4 rep4x4 () const
HepRep4x4Symmetric rep4x4Symmetric () const
void decompose (HepRotation &rotation, HepBoost &boost) const
void decompose (HepAxisAngle &rotation, Hep3Vector &boost) const
void decompose (HepBoost &boost, HepRotation &rotation) const
void decompose (Hep3Vector &boost, HepAxisAngle &rotation) const
int compare (const HepBoost &b) const
bool operator== (const HepBoost &b) const
bool operator!= (const HepBoost &b) const
bool operator<= (const HepBoost &b) const
bool operator>= (const HepBoost &b) const
bool operator< (const HepBoost &b) const
bool operator> (const HepBoost &b) const
bool isIdentity () const
double distance2 (const HepBoost &b) const
double distance2 (const HepBoostX &bx) const
double distance2 (const HepBoostY &by) const
double distance2 (const HepBoostZ &bz) const
double distance2 (const HepRotation &r) const
double distance2 (const HepLorentzRotation &lt) const
double howNear (const HepBoost &b) const
bool isNear (const HepBoost &b, double epsilon=Hep4RotationInterface::tolerance) const
double howNear (const HepRotation &r) const
double howNear (const HepLorentzRotation &lt) const
bool isNear (const HepRotation &r, double epsilon=Hep4RotationInterface::tolerance) const
bool isNear (const HepLorentzRotation &lt, double epsilon=Hep4RotationInterface::tolerance) const
double norm2 () const
void rectify ()
HepLorentzVector operator() (const HepLorentzVector &p) const
HepLorentzVector operator* (const HepLorentzVector &p) const
HepLorentzRotation operator* (const HepBoost &b) const
HepLorentzRotation operator* (const HepRotation &r) const
HepLorentzRotation operator* (const HepLorentzRotation &lt) const
HepBoost inverse () const
HepBoostinvert ()
std::ostream & print (std::ostream &os) const

Static Public Member Functions

static double getTolerance ()
static double setTolerance (double tol)

Protected Member Functions

HepLorentzVector vectorMultiplication (const HepLorentzVector &w) const
HepLorentzRotation matrixMultiplication (const HepRep4x4 &m) const
HepLorentzRotation matrixMultiplication (const HepRep4x4Symmetric &m) const
 HepBoost (double xx, double xy, double xz, double xt, double yy, double yz, double yt, double zz, double zt, double tt)
void setBoost (double bx, double by, double bz)

Protected Attributes

HepRep4x4Symmetric rep_

Friends

HepBoost inverseOf (const HepBoost &lt)

Detailed Description

Author

Definition at line 39 of file Boost.h.

Constructor & Destructor Documentation

◆ HepBoost() [1/11]

◆ HepBoost() [2/11]

CLHEP::HepBoost::HepBoost ( const HepBoost & m)
inline

Definition at line 18 of file Boost.icc.

References HepBoost(), and rep_.

◆ HepBoost() [3/11]

CLHEP::HepBoost::HepBoost ( HepBoost && m)
inlinedefault

References HepBoost().

◆ HepBoost() [4/11]

CLHEP::HepBoost::HepBoost ( double betaX,
double betaY,
double betaZ )
inline

Definition at line 25 of file Boost.icc.

References set().

◆ HepBoost() [5/11]

CLHEP::HepBoost::HepBoost ( const HepRep4x4Symmetric & m)
inline

Definition at line 30 of file Boost.icc.

References rep_.

◆ HepBoost() [6/11]

CLHEP::HepBoost::HepBoost ( Hep3Vector direction,
double beta )
inline

◆ HepBoost() [7/11]

CLHEP::HepBoost::HepBoost ( const Hep3Vector & boost)
inline

◆ HepBoost() [8/11]

CLHEP::HepBoost::HepBoost ( const HepBoostX & boost)
inline

Definition at line 49 of file Boost.icc.

References CLHEP::HepBoostX::boostVector(), and set().

◆ HepBoost() [9/11]

CLHEP::HepBoost::HepBoost ( const HepBoostY & boost)
inline

Definition at line 50 of file Boost.icc.

References CLHEP::HepBoostY::boostVector(), and set().

◆ HepBoost() [10/11]

CLHEP::HepBoost::HepBoost ( const HepBoostZ & boost)
inline

Definition at line 51 of file Boost.icc.

References CLHEP::HepBoostZ::boostVector(), and set().

◆ HepBoost() [11/11]

CLHEP::HepBoost::HepBoost ( double xx,
double xy,
double xz,
double xt,
double yy,
double yz,
double yt,
double zz,
double zt,
double tt )
inlineprotected

Definition at line 60 of file Boost.icc.

References rep_.

Member Function Documentation

◆ beta()

double CLHEP::HepBoost::beta ( ) const
inline

Definition at line 69 of file Boost.icc.

References rep_, and CLHEP::HepRep4x4Symmetric::tt_.

Referenced by getDirection(), set(), and set().

◆ boostVector()

◆ col1()

HepLorentzVector CLHEP::HepBoost::col1 ( ) const
inline

Definition at line 107 of file Boost.icc.

References CLHEP::HepLorentzVector::HepLorentzVector(), tx(), xx(), yx(), and zx().

Referenced by row1(), and set().

◆ col2()

HepLorentzVector CLHEP::HepBoost::col2 ( ) const
inline

Definition at line 110 of file Boost.icc.

References CLHEP::HepLorentzVector::HepLorentzVector(), ty(), xy(), yy(), and zy().

Referenced by row2(), and set().

◆ col3()

HepLorentzVector CLHEP::HepBoost::col3 ( ) const
inline

Definition at line 113 of file Boost.icc.

References CLHEP::HepLorentzVector::HepLorentzVector(), tz(), xz(), yz(), and zz().

Referenced by row3(), and set().

◆ col4()

HepLorentzVector CLHEP::HepBoost::col4 ( ) const
inline

Definition at line 116 of file Boost.icc.

References CLHEP::HepLorentzVector::HepLorentzVector(), tt(), xt(), yt(), and zt().

Referenced by row4(), and set().

◆ compare()

◆ decompose() [1/4]

void CLHEP::HepBoost::decompose ( Hep3Vector & boost,
HepAxisAngle & rotation ) const

◆ decompose() [2/4]

void CLHEP::HepBoost::decompose ( HepAxisAngle & rotation,
Hep3Vector & boost ) const

◆ decompose() [3/4]

void CLHEP::HepBoost::decompose ( HepBoost & boost,
HepRotation & rotation ) const

References HepBoost().

◆ decompose() [4/4]

void CLHEP::HepBoost::decompose ( HepRotation & rotation,
HepBoost & boost ) const

References HepBoost().

◆ direction()

Hep3Vector CLHEP::HepBoost::direction ( ) const
inline

Definition at line 86 of file Boost.icc.

References getDirection().

Referenced by set(), and set().

◆ distance2() [1/6]

double CLHEP::HepBoost::distance2 ( const HepBoost & b) const
inline

◆ distance2() [2/6]

double CLHEP::HepBoost::distance2 ( const HepBoostX & bx) const
inline

◆ distance2() [3/6]

double CLHEP::HepBoost::distance2 ( const HepBoostY & by) const
inline

◆ distance2() [4/6]

double CLHEP::HepBoost::distance2 ( const HepBoostZ & bz) const
inline

◆ distance2() [5/6]

double CLHEP::HepBoost::distance2 ( const HepLorentzRotation & lt) const

◆ distance2() [6/6]

double CLHEP::HepBoost::distance2 ( const HepRotation & r) const

◆ gamma()

double CLHEP::HepBoost::gamma ( ) const
inline

Definition at line 73 of file Boost.icc.

References rep_, and CLHEP::HepRep4x4Symmetric::tt_.

Referenced by set().

◆ getDirection()

Hep3Vector CLHEP::HepBoost::getDirection ( ) const
inline

Definition at line 81 of file Boost.icc.

References beta(), boostVector(), and CLHEP::norm().

Referenced by direction(), and set().

◆ getTolerance()

double CLHEP::HepBoost::getTolerance ( )
inlinestatic

Definition at line 282 of file Boost.icc.

References CLHEP::Hep4RotationInterface::tolerance.

Referenced by print().

◆ howNear() [1/3]

double CLHEP::HepBoost::howNear ( const HepBoost & b) const
inline

Definition at line 223 of file Boost.icc.

References distance2(), and HepBoost().

Referenced by distance2().

◆ howNear() [2/3]

double CLHEP::HepBoost::howNear ( const HepLorentzRotation & lt) const

◆ howNear() [3/3]

double CLHEP::HepBoost::howNear ( const HepRotation & r) const

◆ inverse()

HepBoost CLHEP::HepBoost::inverse ( ) const
inline

Definition at line 259 of file Boost.icc.

References HepBoost(), tt(), tx(), ty(), tz(), xx(), yx(), yy(), zx(), zy(), and zz().

Referenced by operator*().

◆ invert()

HepBoost & CLHEP::HepBoost::invert ( )
inline

◆ isIdentity()

bool CLHEP::HepBoost::isIdentity ( ) const
inline

Definition at line 188 of file Boost.icc.

References tt(), xt(), xx(), xy(), xz(), yt(), yy(), yz(), zt(), and zz().

Referenced by decompose().

◆ isNear() [1/3]

bool CLHEP::HepBoost::isNear ( const HepBoost & b,
double epsilon = Hep4RotationInterface::tolerance ) const
inline

Definition at line 227 of file Boost.icc.

References distance2(), and HepBoost().

Referenced by distance2().

◆ isNear() [2/3]

bool CLHEP::HepBoost::isNear ( const HepLorentzRotation & lt,
double epsilon = Hep4RotationInterface::tolerance ) const

◆ isNear() [3/3]

bool CLHEP::HepBoost::isNear ( const HepRotation & r,
double epsilon = Hep4RotationInterface::tolerance ) const

◆ matrixMultiplication() [1/2]

HepLorentzRotation CLHEP::HepBoost::matrixMultiplication ( const HepRep4x4 & m) const
protected

◆ matrixMultiplication() [2/2]

HepLorentzRotation CLHEP::HepBoost::matrixMultiplication ( const HepRep4x4Symmetric & m) const
protected

References setBoost(), tt(), xt(), xx(), xy(), xz(), yt(), yy(), yz(), zt(), and zz().

◆ norm2()

double CLHEP::HepBoost::norm2 ( ) const

◆ operator!=()

bool CLHEP::HepBoost::operator!= ( const HepBoost & b) const
inline

Definition at line 176 of file Boost.icc.

References HepBoost().

◆ operator()()

HepLorentzVector CLHEP::HepBoost::operator() ( const HepLorentzVector & p) const
inline

Definition at line 247 of file Boost.icc.

References vectorMultiplication().

Referenced by rectify().

◆ operator*() [1/4]

HepLorentzRotation CLHEP::HepBoost::operator* ( const HepBoost & b) const

References HepBoost().

◆ operator*() [2/4]

HepLorentzRotation CLHEP::HepBoost::operator* ( const HepLorentzRotation & lt) const

References HepBoost(), inverse(), inverseOf, and invert().

◆ operator*() [3/4]

HepLorentzVector CLHEP::HepBoost::operator* ( const HepLorentzVector & p) const
inline

Definition at line 252 of file Boost.icc.

References vectorMultiplication().

◆ operator*() [4/4]

HepLorentzRotation CLHEP::HepBoost::operator* ( const HepRotation & r) const

◆ operator<()

bool CLHEP::HepBoost::operator< ( const HepBoost & b) const
inline

Definition at line 183 of file Boost.icc.

References compare(), and HepBoost().

◆ operator<=()

bool CLHEP::HepBoost::operator<= ( const HepBoost & b) const
inline

Definition at line 179 of file Boost.icc.

References compare(), and HepBoost().

◆ operator=() [1/2]

HepBoost & CLHEP::HepBoost::operator= ( const HepBoost & m)
inline

Definition at line 20 of file Boost.icc.

References HepBoost(), and rep_.

◆ operator=() [2/2]

HepBoost & CLHEP::HepBoost::operator= ( HepBoost && m)
inlinedefault

References HepBoost().

◆ operator==()

◆ operator>()

bool CLHEP::HepBoost::operator> ( const HepBoost & b) const
inline

Definition at line 185 of file Boost.icc.

References compare(), and HepBoost().

◆ operator>=()

bool CLHEP::HepBoost::operator>= ( const HepBoost & b) const
inline

Definition at line 181 of file Boost.icc.

References compare(), and HepBoost().

◆ print()

std::ostream & CLHEP::HepBoost::print ( std::ostream & os) const

◆ rectify()

void CLHEP::HepBoost::rectify ( )

References operator()().

◆ rep4x4()

◆ rep4x4Symmetric()

HepRep4x4Symmetric CLHEP::HepBoost::rep4x4Symmetric ( ) const
inline

Definition at line 137 of file Boost.icc.

References rep_.

Referenced by compare(), operator==(), and set().

◆ row1()

HepLorentzVector CLHEP::HepBoost::row1 ( ) const
inline

Definition at line 120 of file Boost.icc.

References col1(), and CLHEP::HepLorentzVector::HepLorentzVector().

Referenced by set().

◆ row2()

HepLorentzVector CLHEP::HepBoost::row2 ( ) const
inline

Definition at line 123 of file Boost.icc.

References col2(), and CLHEP::HepLorentzVector::HepLorentzVector().

Referenced by set().

◆ row3()

HepLorentzVector CLHEP::HepBoost::row3 ( ) const
inline

Definition at line 126 of file Boost.icc.

References col3(), and CLHEP::HepLorentzVector::HepLorentzVector().

Referenced by set().

◆ row4()

HepLorentzVector CLHEP::HepBoost::row4 ( ) const
inline

Definition at line 129 of file Boost.icc.

References col4(), and CLHEP::HepLorentzVector::HepLorentzVector().

Referenced by set().

◆ set() [1/7]

◆ set() [2/7]

HepBoost & CLHEP::HepBoost::set ( const HepBoostX & boost)
inline

Definition at line 52 of file Boost.icc.

References CLHEP::HepBoostX::boostVector(), HepBoost(), and set().

◆ set() [3/7]

HepBoost & CLHEP::HepBoost::set ( const HepBoostY & boost)
inline

Definition at line 54 of file Boost.icc.

References CLHEP::HepBoostY::boostVector(), HepBoost(), and set().

◆ set() [4/7]

HepBoost & CLHEP::HepBoost::set ( const HepBoostZ & boost)
inline

Definition at line 56 of file Boost.icc.

References CLHEP::HepBoostZ::boostVector(), HepBoost(), and set().

◆ set() [5/7]

HepBoost & CLHEP::HepBoost::set ( const HepRep4x4Symmetric & m)

References HepBoost().

◆ set() [6/7]

HepBoost & CLHEP::HepBoost::set ( double betaX,
double betaY,
double betaZ )

◆ set() [7/7]

HepBoost & CLHEP::HepBoost::set ( Hep3Vector direction,
double beta )

References beta(), direction(), and HepBoost().

◆ setBoost()

void CLHEP::HepBoost::setBoost ( double bx,
double by,
double bz )
inlineprotected

Definition at line 142 of file Boost.icc.

References set().

Referenced by matrixMultiplication().

◆ setTolerance()

double CLHEP::HepBoost::setTolerance ( double tol)
inlinestatic

Definition at line 285 of file Boost.icc.

References CLHEP::Hep4RotationInterface::setTolerance().

Referenced by print().

◆ tt()

double CLHEP::HepBoost::tt ( ) const
inline

Definition at line 105 of file Boost.icc.

References rep_, and CLHEP::HepRep4x4Symmetric::tt_.

Referenced by col4(), inverse(), inverseOf, isIdentity(), matrixMultiplication(), and set().

◆ tx()

double CLHEP::HepBoost::tx ( ) const
inline

Definition at line 102 of file Boost.icc.

References rep_, and CLHEP::HepRep4x4Symmetric::xt_.

Referenced by col1(), inverse(), inverseOf, and set().

◆ ty()

double CLHEP::HepBoost::ty ( ) const
inline

Definition at line 103 of file Boost.icc.

References rep_, and CLHEP::HepRep4x4Symmetric::yt_.

Referenced by col2(), inverse(), inverseOf, and set().

◆ tz()

double CLHEP::HepBoost::tz ( ) const
inline

Definition at line 104 of file Boost.icc.

References rep_, and CLHEP::HepRep4x4Symmetric::zt_.

Referenced by col3(), inverse(), inverseOf, and set().

◆ vectorMultiplication()

◆ xt()

double CLHEP::HepBoost::xt ( ) const
inline

Definition at line 93 of file Boost.icc.

References rep_, and CLHEP::HepRep4x4Symmetric::xt_.

Referenced by col4(), isIdentity(), matrixMultiplication(), and set().

◆ xx()

double CLHEP::HepBoost::xx ( ) const
inline

Definition at line 90 of file Boost.icc.

References rep_, and CLHEP::HepRep4x4Symmetric::xx_.

Referenced by col1(), inverse(), inverseOf, isIdentity(), matrixMultiplication(), and set().

◆ xy()

double CLHEP::HepBoost::xy ( ) const
inline

Definition at line 91 of file Boost.icc.

References rep_, and CLHEP::HepRep4x4Symmetric::xy_.

Referenced by col2(), isIdentity(), matrixMultiplication(), and set().

◆ xz()

double CLHEP::HepBoost::xz ( ) const
inline

Definition at line 92 of file Boost.icc.

References rep_, and CLHEP::HepRep4x4Symmetric::xz_.

Referenced by col3(), isIdentity(), matrixMultiplication(), and set().

◆ yt()

double CLHEP::HepBoost::yt ( ) const
inline

Definition at line 97 of file Boost.icc.

References rep_, and CLHEP::HepRep4x4Symmetric::yt_.

Referenced by col4(), isIdentity(), matrixMultiplication(), and set().

◆ yx()

double CLHEP::HepBoost::yx ( ) const
inline

Definition at line 94 of file Boost.icc.

References rep_, and CLHEP::HepRep4x4Symmetric::xy_.

Referenced by col1(), inverse(), inverseOf, and set().

◆ yy()

double CLHEP::HepBoost::yy ( ) const
inline

Definition at line 95 of file Boost.icc.

References rep_, and CLHEP::HepRep4x4Symmetric::yy_.

Referenced by col2(), inverse(), inverseOf, isIdentity(), matrixMultiplication(), and set().

◆ yz()

double CLHEP::HepBoost::yz ( ) const
inline

Definition at line 96 of file Boost.icc.

References rep_, and CLHEP::HepRep4x4Symmetric::yz_.

Referenced by col3(), isIdentity(), matrixMultiplication(), and set().

◆ zt()

double CLHEP::HepBoost::zt ( ) const
inline

Definition at line 101 of file Boost.icc.

References rep_, and CLHEP::HepRep4x4Symmetric::zt_.

Referenced by col4(), isIdentity(), matrixMultiplication(), and set().

◆ zx()

double CLHEP::HepBoost::zx ( ) const
inline

Definition at line 98 of file Boost.icc.

References rep_, and CLHEP::HepRep4x4Symmetric::xz_.

Referenced by col1(), inverse(), inverseOf, and set().

◆ zy()

double CLHEP::HepBoost::zy ( ) const
inline

Definition at line 99 of file Boost.icc.

References rep_, and CLHEP::HepRep4x4Symmetric::yz_.

Referenced by col2(), inverse(), inverseOf, and set().

◆ zz()

double CLHEP::HepBoost::zz ( ) const
inline

Definition at line 100 of file Boost.icc.

References rep_, and CLHEP::HepRep4x4Symmetric::zz_.

Referenced by col3(), inverse(), inverseOf, isIdentity(), matrixMultiplication(), and set().

◆ inverseOf

HepBoost inverseOf ( const HepBoost & lt)
friend

Definition at line 266 of file Boost.icc.

References HepBoost(), inverseOf, tt(), tx(), ty(), tz(), xx(), yx(), yy(), zx(), zy(), and zz().

Referenced by inverseOf, and operator*().

Member Data Documentation

◆ rep_


The documentation for this class was generated from the following files: