#include <FourVector.h>
Collaboration diagram for FourVector:
Public Member Functions | |
FourVector () | |
Default constructor. | |
FourVector (double E_, double px_, double py_, double pz_) | |
Constructor from the components. | |
FourVector (double E_, const ThreeVector &p_) | |
Constructor from energy and three momentum. | |
FourVector (const ThreeVector &p_, double m_) | |
Constructor from three momentum and mass. | |
double | getE () const |
Returns the energy / 0 component. | |
double | getPx () const |
Returns the x momentum / 1 component. | |
double | getPy () const |
Returns the y momentum / 2 component. | |
double | getPz () const |
Returns the z momentum / 3 component. | |
double | getM2 () const |
Returns the mass squared / magnitude squared. | |
double | getM () const |
Returns the mass / magnitude. | |
double | getMass () const |
Returns the mass / magnitude. | |
double | getP2 () const |
Returns the momentum squared / magnitude of the three vector squared. | |
double | getP () const |
Returns the momentum / magnitude of the three vector. | |
double | getPt2 () const |
Returns the transverse momentum squared / magnitude of the 1 and 2 component vector squared. | |
double | getPt () const |
Returns the transverse momentum / magnitude of the 1 and 2 component vector. | |
double | getPhi () const |
Returns the azimuthal angle of the momentum / three vector squared. | |
double | getTheta () const |
Returns the polar angle of the momentum / three vector squared. | |
double | getEta () const |
Returns the pseudo rapidity of the momentum / three vector squared. | |
double | getComponent (int i) const |
Returns the i'th component (starting from 0=energy). | |
ThreeVector | getBeta () const |
double | getGamma () const |
ThreeVector | getBetaGamma () const |
const ThreeVector & | getThreeVector () const |
Returns the momentum three vector. | |
FourVector & | boost (const FourVector &P) |
void | decayto (FourVector &d1, FourVector &d2) const |
void | setValues (double E_, double px_, double py_, double pz_) |
FourVector & | operator+= (const FourVector &rhs) |
FourVector & | operator-= (const FourVector &rhs) |
FourVector & | operator *= (double rhs) |
Private Attributes | |
double | E |
The energy / 0 component. | |
ThreeVector | p |
The momentum three vector. | |
Related Functions | |
(Note that these are not member functions.) | |
FourVector | operator+ (const FourVector &lhs, const FourVector &rhs) |
Sum of two four vectors. | |
FourVector | operator- (const FourVector &lhs, const FourVector &rhs) |
Difference of two four vectors. | |
FourVector | operator- (const FourVector &rhs) |
Negative of a four vector. | |
FourVector | operator * (double lhs, const FourVector &rhs) |
Scalar product of a four vector. | |
double | operator * (const FourVector &lhs, const FourVector &rhs) |
Scalar product of a four vector. | |
std::ostream & | operator<< (std::ostream &os, const FourVector &rhs) |
Prints a four vector. |
Author: Benno List Last update:
Definition at line 34 of file FourVector.h.
|
Default constructor.
Definition at line 102 of file FourVector.h. Referenced by decayto(). |
|
Constructor from the components.
Definition at line 106 of file FourVector.h. |
|
Constructor from energy and three momentum.
Definition at line 110 of file FourVector.h. |
|
Constructor from three momentum and mass.
Definition at line 114 of file FourVector.h. |
|
Definition at line 20 of file FourVector.C. References E, getE(), getM(), and p. Referenced by decayto(). |
|
Definition at line 33 of file FourVector.C. References boost(), FInteger, FourVector(), FReal, getM(), getM2(), and ranmar(). Referenced by TopEvent::genEvent(), and K0Event::genEvent(). |
|
Definition at line 80 of file FourVector.h. |
|
Definition at line 82 of file FourVector.h. Referenced by K0Event::genEvent(), and main(). |
|
Returns the i'th component (starting from 0=energy).
Definition at line 138 of file FourVector.h. References getE(), getPx(), getPy(), and getPz(). Referenced by main(). |
|
Returns the energy / 0 component.
Definition at line 118 of file FourVector.h. Referenced by boost(), TopEvent::genEvent(), getComponent(), getGamma(), VertexFitObject::initForFit(), operator *(), operator+(), operator-(), and operator<<(). |
|
Returns the pseudo rapidity of the momentum / three vector squared.
Definition at line 136 of file FourVector.h. References ThreeVector::getEta(), and p. |
|
Definition at line 81 of file FourVector.h. |
|
Returns the mass / magnitude.
Definition at line 130 of file FourVector.h. Referenced by boost(), decayto(), getBetaGamma(), and getGamma(). |
|
Returns the mass squared / magnitude squared.
Definition at line 129 of file FourVector.h. |
|
Returns the mass / magnitude.
Definition at line 131 of file FourVector.h. References getM2(). Referenced by ChargedParticleTrack::setParameters(). |
|
Returns the momentum / magnitude of the three vector.
Definition at line 127 of file FourVector.h. |
|
Returns the momentum squared / magnitude of the three vector squared.
Definition at line 126 of file FourVector.h. References ThreeVector::getP2(), and p. |
|
Returns the azimuthal angle of the momentum / three vector squared.
Definition at line 133 of file FourVector.h. Referenced by ChargedParticleTrack::ChargedParticleTrack(), NeutralParticleTrack::setParameters(), and ChargedParticleTrack::setParameters(). |
|
Returns the transverse momentum / magnitude of the 1 and 2 component vector.
Definition at line 124 of file FourVector.h. Referenced by ChargedParticleTrack::ChargedParticleTrack(), NeutralParticleTrack::setParameters(), and ChargedParticleTrack::setParameters(). |
|
Returns the transverse momentum squared / magnitude of the 1 and 2 component vector squared.
Definition at line 123 of file FourVector.h. References ThreeVector::getPt2(), and p. |
|
Returns the x momentum / 1 component.
Definition at line 119 of file FourVector.h. References ThreeVector::getPx(), and p. Referenced by getComponent(), operator *(), operator+(), operator-(), and operator<<(). |
|
Returns the y momentum / 2 component.
Definition at line 120 of file FourVector.h. References ThreeVector::getPy(), and p. Referenced by getComponent(), operator *(), operator+(), operator-(), and operator<<(). |
|
Returns the z momentum / 3 component.
Definition at line 121 of file FourVector.h. References ThreeVector::getPz(), and p. Referenced by getComponent(), operator *(), operator+(), operator-(), and operator<<(). |
|
Returns the polar angle of the momentum / three vector squared.
Definition at line 134 of file FourVector.h. References ThreeVector::getTheta(), and p. Referenced by ChargedParticleTrack::ChargedParticleTrack(), NeutralParticleTrack::setParameters(), and ChargedParticleTrack::setParameters(). |
|
Returns the momentum three vector.
Definition at line 85 of file FourVector.h. References p. Referenced by K0Event::genEvent(). |
|
Definition at line 164 of file FourVector.h. |
|
Definition at line 152 of file FourVector.h. |
|
Definition at line 158 of file FourVector.h. |
|
|
Scalar product of a four vector.
Definition at line 206 of file FourVector.h. |
|
Scalar product of a four vector.
Definition at line 198 of file FourVector.h. |
|
Sum of two four vectors.
Definition at line 174 of file FourVector.h. |
|
Negative of a four vector.
Definition at line 190 of file FourVector.h. |
|
Difference of two four vectors.
Definition at line 182 of file FourVector.h. |
|
Prints a four vector.
Definition at line 215 of file FourVector.h. |
|
The energy / 0 component.
Definition at line 98 of file FourVector.h. Referenced by boost(), getBeta(), operator *=(), operator+=(), operator-=(), and setValues(). |
|
The momentum three vector.
Definition at line 99 of file FourVector.h. Referenced by boost(), getBeta(), getBetaGamma(), getEta(), getP2(), getPt2(), getPx(), getPy(), getPz(), getTheta(), getThreeVector(), operator *=(), operator+=(), operator-=(), and setValues(). |