File indexing completed on 2026-08-06 09:38:33
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef THEPEG_SpinHalfLorentzRotation_H
0010 #define THEPEG_SpinHalfLorentzRotation_H
0011
0012
0013
0014 #include "ThePEG/Helicity/HelicityDefinitions.h"
0015 #include "ThreeVector.h"
0016
0017 namespace ThePEG {
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031 class SpinHalfLorentzRotation {
0032
0033
0034
0035
0036 friend SpinHalfLorentzRotation inverseOf ( const SpinHalfLorentzRotation & lt );
0037
0038 public:
0039
0040
0041
0042
0043
0044
0045
0046 SpinHalfLorentzRotation();
0047
0048
0049
0050
0051
0052
0053
0054
0055 SpinHalfLorentzRotation (double bx, double by, double bz, double gamma=-1.);
0056
0057
0058
0059
0060
0061
0062 SpinHalfLorentzRotation (const Boost & b,double gamma=-1.);
0063
0064
0065
0066
0067
0068 bool isIdentity() const;
0069
0070
0071
0072
0073 SpinHalfLorentzRotation inverse() const;
0074
0075
0076
0077
0078 SpinHalfLorentzRotation & invert() { return *this = inverse(); }
0079
0080
0081
0082
0083 std::ostream & print( std::ostream & os ) const;
0084
0085
0086
0087
0088
0089
0090
0091
0092
0093
0094
0095 SpinHalfLorentzRotation & setBoost (double bx, double by, double bz,double gamma=-1.);
0096
0097
0098
0099
0100
0101
0102 SpinHalfLorentzRotation & setBoost (const Boost & b,double gamma=-1.);
0103
0104
0105
0106
0107
0108 SpinHalfLorentzRotation & setBoostX (double & boost);
0109
0110
0111
0112
0113
0114 SpinHalfLorentzRotation & setBoostY (double & boost);
0115
0116
0117
0118
0119
0120 SpinHalfLorentzRotation & setBoostZ (double & boost);
0121
0122
0123
0124
0125
0126
0127 SpinHalfLorentzRotation & setRotate(double delta, const Axis & axis);
0128
0129
0130
0131
0132
0133 SpinHalfLorentzRotation & setRotateX (double & angle);
0134
0135
0136
0137
0138
0139 SpinHalfLorentzRotation & setRotateY (double & angle);
0140
0141
0142
0143
0144
0145 SpinHalfLorentzRotation & setRotateZ (double & angle);
0146
0147
0148
0149
0150
0151
0152
0153
0154
0155 Complex s1s1() const { return _mx[0][0]; }
0156
0157
0158
0159
0160 Complex s1s2() const { return _mx[0][1]; }
0161
0162
0163
0164
0165 Complex s1s3() const { return _mx[0][2]; }
0166
0167
0168
0169
0170 Complex s1s4() const { return _mx[0][3]; }
0171
0172
0173
0174
0175 Complex s2s1() const { return _mx[1][0]; }
0176
0177
0178
0179
0180 Complex s2s2() const { return _mx[1][1]; }
0181
0182
0183
0184
0185 Complex s2s3() const { return _mx[1][2]; }
0186
0187
0188
0189
0190 Complex s2s4() const { return _mx[1][3]; }
0191
0192
0193
0194
0195 Complex s3s1() const { return _mx[2][0]; }
0196
0197
0198
0199
0200 Complex s3s2() const { return _mx[2][1]; }
0201
0202
0203
0204
0205 Complex s3s3() const { return _mx[2][2]; }
0206
0207
0208
0209
0210 Complex s3s4() const { return _mx[2][3]; }
0211
0212
0213
0214
0215 Complex s4s1() const { return _mx[3][0]; }
0216
0217
0218
0219
0220 Complex s4s2() const { return _mx[3][1]; }
0221
0222
0223
0224
0225 Complex s4s3() const { return _mx[3][2]; }
0226
0227
0228
0229
0230 Complex s4s4() const { return _mx[3][3]; }
0231
0232
0233
0234
0235 Complex operator()(unsigned int i, unsigned int j) const {
0236 assert(i<=3 && j<=3);
0237 return _mx[i][j];
0238 }
0239
0240
0241
0242
0243
0244
0245
0246
0247
0248
0249 SpinHalfLorentzRotation operator * (const SpinHalfLorentzRotation & lt) const;
0250
0251
0252
0253
0254 SpinHalfLorentzRotation & operator *= (const SpinHalfLorentzRotation & );
0255
0256
0257
0258
0259 SpinHalfLorentzRotation & transform (const SpinHalfLorentzRotation & );
0260
0261
0262
0263
0264 SpinHalfLorentzRotation & rotateX(double delta);
0265
0266
0267
0268
0269 SpinHalfLorentzRotation & rotateY(double delta);
0270
0271
0272
0273
0274 SpinHalfLorentzRotation & rotateZ(double delta);
0275
0276
0277
0278
0279 SpinHalfLorentzRotation & rotate(double delta, const Axis & axis);
0280
0281
0282
0283
0284 SpinHalfLorentzRotation & boostX(double beta);
0285
0286
0287
0288
0289 SpinHalfLorentzRotation & boostY(double beta);
0290
0291
0292
0293
0294 SpinHalfLorentzRotation & boostZ(double beta);
0295
0296
0297
0298
0299
0300
0301
0302
0303 SpinHalfLorentzRotation & boost(double bx, double by, double bz, double gamma=-1.);
0304
0305
0306
0307
0308
0309
0310 SpinHalfLorentzRotation & boost(const Boost & bv, double gamma=-1.);
0311
0312
0313 protected:
0314
0315
0316
0317
0318
0319 SpinHalfLorentzRotation(Complex s1s1,Complex s1s2,Complex s1s3,Complex s1s4,
0320 Complex s2s1,Complex s2s2,Complex s2s3,Complex s2s4,
0321 Complex s3s1,Complex s3s2,Complex s3s3,Complex s3s4,
0322 Complex s4s1,Complex s4s2,Complex s4s3,Complex s4s4);
0323
0324 private:
0325
0326 using MatrixT = array<array<Complex,4>,4>;
0327
0328 SpinHalfLorentzRotation(const MatrixT & m) : _mx(m) {}
0329
0330
0331
0332
0333 MatrixT _mx;
0334 };
0335
0336
0337
0338
0339 inline SpinHalfLorentzRotation inverseOf ( const SpinHalfLorentzRotation & lt ) {
0340 return lt.inverse();
0341 }
0342
0343
0344
0345
0346 inline std::ostream & operator<< ( std::ostream & os,
0347 const SpinHalfLorentzRotation& lt ) {
0348 return lt.print(os);
0349 }
0350
0351 }
0352
0353 #endif