CLHEP 2.4.7.1
C++ Class Library for High Energy Physics
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
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]

CLHEP::HepBoost::HepBoost ( )
inline

Definition at line 16 of file Boost.icc.

Referenced by inverse().

◆ HepBoost() [2/11]

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

Definition at line 18 of file Boost.icc.

◆ HepBoost() [3/11]

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

◆ 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.

◆ 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.

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().

◆ boostVector()

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

◆ col1()

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

Definition at line 107 of file Boost.icc.

References tx(), xx(), yx(), and zx().

Referenced by row1().

◆ col2()

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

Definition at line 110 of file Boost.icc.

References ty(), xy(), yy(), and zy().

Referenced by row2().

◆ col3()

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

Definition at line 113 of file Boost.icc.

References tz(), xz(), yz(), and zz().

Referenced by row3().

◆ col4()

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

Definition at line 116 of file Boost.icc.

References tt(), xt(), yt(), and zt().

Referenced by row4().

◆ compare()

int CLHEP::HepBoost::compare ( const HepBoost & b) const
inline

◆ 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

◆ decompose() [4/4]

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

◆ direction()

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

Definition at line 86 of file Boost.icc.

References getDirection().

◆ 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_.

◆ getDirection()

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

Definition at line 81 of file Boost.icc.

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

Referenced by direction().

◆ getTolerance()

double CLHEP::HepBoost::getTolerance ( )
inlinestatic

Definition at line 282 of file Boost.icc.

References CLHEP::Hep4RotationInterface::tolerance.

◆ howNear() [1/3]

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

Definition at line 223 of file Boost.icc.

References 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().

◆ 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().

◆ 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().

◆ 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

◆ norm2()

double CLHEP::HepBoost::norm2 ( ) const

◆ operator!=()

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

Definition at line 176 of file Boost.icc.

◆ operator()()

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

Definition at line 247 of file Boost.icc.

References vectorMultiplication().

◆ operator*() [1/4]

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

◆ operator*() [2/4]

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

◆ 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().

◆ operator<=()

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

Definition at line 179 of file Boost.icc.

References compare().

◆ operator=() [1/2]

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

Definition at line 20 of file Boost.icc.

References rep_.

◆ operator=() [2/2]

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

◆ operator==()

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

◆ operator>()

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

Definition at line 185 of file Boost.icc.

References compare().

◆ operator>=()

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

Definition at line 181 of file Boost.icc.

References compare().

◆ print()

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

◆ rectify()

void CLHEP::HepBoost::rectify ( )

◆ rep4x4()

HepRep4x4 CLHEP::HepBoost::rep4x4 ( ) const
inline

◆ rep4x4Symmetric()

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

Definition at line 137 of file Boost.icc.

References rep_.

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

◆ row1()

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

Definition at line 120 of file Boost.icc.

References col1().

◆ row2()

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

Definition at line 123 of file Boost.icc.

References col2().

◆ row3()

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

Definition at line 126 of file Boost.icc.

References col3().

◆ row4()

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

Definition at line 129 of file Boost.icc.

References col4().

◆ set() [1/7]

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

◆ set() [2/7]

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

Definition at line 52 of file Boost.icc.

References CLHEP::HepBoostX::boostVector(), 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(), 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(), and set().

◆ set() [5/7]

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

◆ set() [6/7]

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

◆ set() [7/7]

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

◆ setBoost()

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

Definition at line 142 of file Boost.icc.

References set().

◆ setTolerance()

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

Definition at line 285 of file Boost.icc.

References CLHEP::Hep4RotationInterface::setTolerance().

◆ 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(), and isIdentity().

◆ tx()

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

Definition at line 102 of file Boost.icc.

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

Referenced by col1(), and inverse().

◆ ty()

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

Definition at line 103 of file Boost.icc.

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

Referenced by col2(), and inverse().

◆ tz()

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

Definition at line 104 of file Boost.icc.

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

Referenced by col3(), and inverse().

◆ vectorMultiplication()

HepLorentzVector CLHEP::HepBoost::vectorMultiplication ( const HepLorentzVector & w) const
inlineprotected

◆ xt()

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

Definition at line 93 of file Boost.icc.

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

Referenced by col4(), and isIdentity().

◆ 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(), and isIdentity().

◆ xy()

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

Definition at line 91 of file Boost.icc.

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

Referenced by col2(), and isIdentity().

◆ xz()

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

Definition at line 92 of file Boost.icc.

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

Referenced by col3(), and isIdentity().

◆ yt()

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

Definition at line 97 of file Boost.icc.

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

Referenced by col4(), and isIdentity().

◆ yx()

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

Definition at line 94 of file Boost.icc.

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

Referenced by col1(), and inverse().

◆ 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(), and isIdentity().

◆ yz()

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

Definition at line 96 of file Boost.icc.

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

Referenced by col3(), and isIdentity().

◆ zt()

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

Definition at line 101 of file Boost.icc.

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

Referenced by col4(), and isIdentity().

◆ zx()

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

Definition at line 98 of file Boost.icc.

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

Referenced by col1(), and inverse().

◆ zy()

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

Definition at line 99 of file Boost.icc.

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

Referenced by col2(), and inverse().

◆ 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(), and isIdentity().

Friends And Related Symbol Documentation

◆ inverseOf

HepBoost inverseOf ( const HepBoost & lt)
friend

Definition at line 266 of file Boost.icc.

Member Data Documentation

◆ rep_

HepRep4x4Symmetric CLHEP::HepBoost::rep_
protected

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