Rivet API documentation
![]() |
Rivet 4.1.3
|
LorentzTrans.hh
Specialized version of the FourVector with momentum/energy functionality.
Definition Vector4.hh:327
double E() const
Get energy (time component of momentum).
Definition Vector4.hh:572
Specialisation of VectorN to a general (non-momentum) Lorentz 4-vector.
Definition Vector4.hh:30
Object implementing Lorentz transform calculations and boosts.
Definition LorentzTrans.hh:21
static LorentzTransform mkFrameTransformFromGamma(const Vector3 &vgamma)
Make an LT for a passive boost (i.e. object velocity -= in boost direction).
Definition LorentzTrans.hh:73
LorentzTransform rotate(const Vector3 &from, const Vector3 &to) const
Rotate the transformation cf. the difference between vectors from and to.
Definition LorentzTrans.hh:193
LorentzTransform & setBetaVec(const Vector3 &vbeta)
Set up an active Lorentz boost from the vector.
Definition LorentzTrans.hh:116
static LorentzTransform mkObjTransformFromBeta(const Vector3 &vbeta)
Make an LT for an active boost (i.e. object velocity += in boost direction).
Definition LorentzTrans.hh:54
static LorentzTransform mkFrameTransformFromBeta(const Vector3 &vbeta)
Make an LT for a passive boost (i.e. object velocity -= in boost direction).
Definition LorentzTrans.hh:60
FourVector operator()(const FourVector &v4) const
Apply this transformation to the given 4-vector.
Definition LorentzTrans.hh:179
LorentzTransform preMult(const Matrix3 &m3)
Pre-multiply m3 by this LT.
Definition LorentzTrans.hh:231
LorentzTransform rotate(const Matrix3 &rot) const
Rotate the transformation by the 3D rotation matrix rot.
Definition LorentzTrans.hh:203
static LorentzTransform mkObjTransformFromGamma(const Vector3 &vgamma)
Make an LT for an active boost (i.e. object velocity += in boost direction).
Definition LorentzTrans.hh:66
Vector3 betaVec() const
Get the vector for an active Lorentz boost.
Definition LorentzTrans.hh:126
LorentzTransform operator*(const LorentzTransform <) const
Operator combination of two LTs.
Definition LorentzTrans.hh:226
static double beta2gamma(double beta)
Calculate the factor from .
Definition LorentzTrans.hh:28
LorentzTransform()
Default (identity) constructor.
Definition LorentzTrans.hh:44
static LorentzTransform mkFrameTransform(const FourMomentum &p4)
Make an LT for a passive boost (i.e. object velocity -= in boost direction).
Definition LorentzTrans.hh:85
LorentzTransform postMult(const Matrix3 &m3)
Post-multiply m3 by this LT.
Definition LorentzTrans.hh:237
static LorentzTransform mkObjTransform(const FourMomentum &p4)
Make an LT for an active boost (i.e. object velocity += in boost direction).
Definition LorentzTrans.hh:80
Matrix4 toMatrix() const
Return the matrix form.
Definition LorentzTrans.hh:246
LorentzTransform inverse() const
Calculate the inverse transform.
Definition LorentzTrans.hh:212
static double gamma2beta(double gamma)
Calculate from the factor.
Definition LorentzTrans.hh:33
LorentzTransform(const Matrix< 4 > &boostMatrix)
Constructor from a 4x4 matrix.
Definition LorentzTrans.hh:49
FourMomentum transform(const FourMomentum &v4) const
Apply this transformation to the given 4-mometum.
Definition LorentzTrans.hh:174
LorentzTransform & setGammaVec(const Vector3 &vgamma)
Set up an active Lorentz boost from the vector.
Definition LorentzTrans.hh:142
FourVector transform(const FourVector &v4) const
Apply this transformation to the given 4-vector.
Definition LorentzTrans.hh:169
LorentzTransform rotate(const Vector3 &axis, double angle) const
Rotate the transformation by angle radians about axis.
Definition LorentzTrans.hh:198
Vector3 gammaVec() const
Get the vector for an active Lorentz boost.
Definition LorentzTrans.hh:152
LorentzTransform combine(const LorentzTransform <) const
Combine LTs, treating this as the LH matrix.
Definition LorentzTrans.hh:219
double mod2() const
Calculate the modulus-squared of a vector. .
Definition VectorN.hh:84
bool isZero(double tolerance=1E-5) const
Check for nullness, allowing for numerical precision.
Definition VectorN.hh:75
FourMomentum p4(const ParticleBase &p)
Unbound function access to momentum.
Definition ParticleBaseUtils.hh:644
Definition MC_CENT_PPB_Projections.hh:10
constexpr std::enable_if_t< std::is_arithmetic_v< NUM >, int > sign(NUM val)
Find the sign of a number.
Definition MathUtils.hh:275
std::ostream & operator<<(std::ostream &os, const AnalysisInfo &ai)
Stream an AnalysisInfo as a text description.
Definition AnalysisInfo.hh:362
std::enable_if_t< std::is_floating_point_v< NUM >, bool > isZero(NUM val, double tolerance=1e-8)
Compare a number to zero.
Definition MathUtils.hh:24
std::enable_if_t< std::is_arithmetic_v< NUM >, NUM > sqr(NUM a)
Named number-type squaring operation.
Definition MathUtils.hh:218
double angle(const Vector2 &a, const Vector2 &b)
Angle (in radians) between two 2-vectors.
Definition Vector2.hh:177
Generated on for Rivet by
