34 #ifndef LORENTZVECTOR_H
35 #define LORENTZVECTOR_H
51 void SetXYZT(
double x,
double y,
double z,
double t);
76 const double mag2 =
M2();
77 return (mag2 < 0) ? -sqrt(-mag2) : sqrt(mag2);
84 const double beta2 = beta.
Mag2();
85 const double gamma = 1 / sqrt(1 - beta2);
87 const double gamma2 = (beta2 > 0) ? (gamma - 1) / beta2 : 0;
91 gamma * (
fTime + betaTimesMom));
98 <<
"; " << vec.
GetE() <<
")";
110 #endif // LORENTZVECTOR_H