12 #pragma implementation
26 (
double bx,
double by,
double bz) {
27 double bp2 = bx*bx + by*by + bz*bz;
33 double gamma = 1.0 / std::sqrt(1.0 - bp2);
34 double bgamma = gamma * gamma / (1.0 + gamma);
35 mxx = 1.0 + bgamma * bx * bx;
36 myy = 1.0 + bgamma * by * by;
37 mzz = 1.0 + bgamma * bz * bz;
38 mxy = myx = bgamma * bx * by;
39 mxz = mzx = bgamma * bx * bz;
40 myz = mzy = bgamma * by * bz;
41 mxt = mtx = gamma * bx;
42 myt = mty = gamma * by;
43 mzt = mtz = gamma * bz;
51 *
this = matrixMultiplication ( R.
rep4x4() );
58 *
this = matrixMultiplication ( B.
rep4x4() );
68 if (j == 0) {
return xx(); }
69 if (j == 1) {
return xy(); }
70 if (j == 2) {
return xz(); }
71 if (j == 3) {
return xt(); }
73 if (j == 0) {
return yx(); }
74 if (j == 1) {
return yy(); }
75 if (j == 2) {
return yz(); }
76 if (j == 3) {
return yt(); }
78 if (j == 0) {
return zx(); }
79 if (j == 1) {
return zy(); }
80 if (j == 2) {
return zz(); }
81 if (j == 3) {
return zt(); }
83 if (j == 0) {
return tx(); }
84 if (j == 1) {
return ty(); }
85 if (j == 2) {
return tz(); }
86 if (j == 3) {
return tt(); }
88 std::cerr <<
"HepLorentzRotation subscripting: bad indeces "
89 <<
"(" << i <<
"," << j <<
")\n";
99 if (
mtt<m1.
mtt)
return -1;
else if (
mtt>m1.
mtt)
return 1;
100 else if (
mtz<m1.
mtz)
return -1;
else if (
mtz>m1.
mtz)
return 1;
101 else if (
mty<m1.
mty)
return -1;
else if (
mty>m1.
mty)
return 1;
102 else if (
mtx<m1.
mtx)
return -1;
else if (
mtx>m1.
mtx)
return 1;
104 else if (
mzt<m1.
mzt)
return -1;
else if (
mzt>m1.
mzt)
return 1;
105 else if (
mzz<m1.
mzz)
return -1;
else if (
mzz>m1.
mzz)
return 1;
106 else if (
mzy<m1.
mzy)
return -1;
else if (
mzy>m1.
mzy)
return 1;
107 else if (
mzx<m1.
mzx)
return -1;
else if (
mzx>m1.
mzx)
return 1;
109 else if (
myt<m1.
myt)
return -1;
else if (
myt>m1.
myt)
return 1;
110 else if (
myz<m1.
myz)
return -1;
else if (
myz>m1.
myz)
return 1;
111 else if (
myy<m1.
myy)
return -1;
else if (
myy>m1.
myy)
return 1;
112 else if (
myx<m1.
myx)
return -1;
else if (
myx>m1.
myx)
return 1;
114 else if (
mxt<m1.
mxt)
return -1;
else if (
mxt>m1.
mxt)
return 1;
115 else if (
mxz<m1.
mxz)
return -1;
else if (
mxz>m1.
mxz)
return 1;
116 else if (
mxy<m1.
mxy)
return -1;
else if (
mxy>m1.
mxy)
return 1;
117 else if (
mxx<m1.
mxx)
return -1;
else if (
mxx>m1.
mxx)
return 1;
150 double c1 = std::cos (delta);
151 double s1 = std::sin (delta);
162 double c1 = std::cos (delta);
163 double s1 = std::sin (delta);
174 double c1 = std::cos (delta);
175 double s1 = std::sin (delta);
186 double b2 = beta*beta;
192 double g1 = 1.0/std::sqrt(1.0-b2);
204 double b2 = beta*beta;
210 double g1 = 1.0/std::sqrt(1.0-b2);
222 double b2 = beta*beta;
228 double g1 = 1.0/std::sqrt(1.0-b2);
241 std::setw(11) << std::setprecision(6) <<
xx() <<
" " <<
242 std::setw(11) << std::setprecision(6) <<
xy() <<
" " <<
243 std::setw(11) << std::setprecision(6) <<
xz() <<
" " <<
244 std::setw(11) << std::setprecision(6) <<
xt() <<
")\n"
246 std::setw(11) << std::setprecision(6) <<
yx() <<
" " <<
247 std::setw(11) << std::setprecision(6) <<
yy() <<
" " <<
248 std::setw(11) << std::setprecision(6) <<
yz() <<
" " <<
249 std::setw(11) << std::setprecision(6) <<
yt() <<
")\n"
251 std::setw(11) << std::setprecision(6) <<
zx() <<
" " <<
252 std::setw(11) << std::setprecision(6) <<
zy() <<
" " <<
253 std::setw(11) << std::setprecision(6) <<
zz() <<
" " <<
254 std::setw(11) << std::setprecision(6) <<
zt() <<
")\n"
256 std::setw(11) << std::setprecision(6) <<
tx() <<
" " <<
257 std::setw(11) << std::setprecision(6) <<
ty() <<
" " <<
258 std::setw(11) << std::setprecision(6) <<
tz() <<
" " <<
259 std::setw(11) << std::setprecision(6) <<
tt() <<
") ]\n";