9#include "CLHEP/Vector/defs.h"
10#include "CLHEP/Vector/BoostX.h"
11#include "CLHEP/Vector/Boost.h"
12#include "CLHEP/Vector/Rotation.h"
13#include "CLHEP/Vector/LorentzRotation.h"
14#include "CLHEP/Vector/ZMxpv.h"
25 double b2 = bbeta*bbeta;
28 "Beta supplied to set HepBoostX represents speed >= c."));
30 gamma_ = 1.0 / std::sqrt(1.0 - b2);
34 gamma_ = 1.0 / std::sqrt(1.0 - b2);
90 double dr2 = r.
norm2();
99 double dr2 = r1.
norm2();
104 double db2 =
norm2();
105 if (db2 > epsilon*epsilon)
return false;
106 double dr2 = r.
norm2();
107 return (db2+dr2 <= epsilon*epsilon);
111 double epsilon)
const {
116 if (db2 > epsilon*epsilon)
return false;
117 double dr2 = r1.
norm2();
130 beta_ = 1.0 - 1.0e-8;
133 gamma_ = 1.0 / std::sqrt(1.0 - b2);
159 os <<
"Boost in X direction (beta = " <<
beta_
160 <<
", gamma = " <<
gamma_ <<
") ";
double distance2(const HepBoostX &b) const
HepLorentzVector operator*(const HepLorentzVector &w) const
HepBoostX & set(double beta)
bool isNear(const HepBoostX &b, double epsilon=Hep4RotationInterface::tolerance) const
Hep3Vector boostVector() const
std::ostream & print(std::ostream &os) const
void decompose(HepRotation &rotation, HepBoost &boost) const
HepRep4x4Symmetric rep4x4Symmetric() const
double distance2(const HepBoost &b) const
void decompose(Hep3Vector &boost, HepAxisAngle &rotation) const