File indexing completed on 2026-08-06 09:38:24
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef ThePEG_TensorWaveFunction_H
0010 #define ThePEG_TensorWaveFunction_H
0011
0012
0013
0014 #include "WaveFunctionBase.h"
0015 #include "VectorWaveFunction.h"
0016 #include <ThePEG/Helicity/LorentzTensor.h>
0017 #include <ThePEG/Helicity/TensorSpinInfo.h>
0018 #include <ThePEG/EventRecord/Particle.h>
0019 #include <ThePEG/EventRecord/RhoDMatrix.h>
0020
0021 namespace ThePEG {
0022 namespace Helicity {
0023
0024
0025
0026
0027
0028 enum TensorPhase {
0029 tensor_phase,
0030 tensor_nophase,
0031 default_tensor_phase=tensor_nophase
0032 };
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067 class TensorWaveFunction : public WaveFunctionBase {
0068
0069 public:
0070
0071
0072
0073
0074
0075
0076
0077
0078
0079
0080
0081 TensorWaveFunction(const Lorentz5Momentum & p,tcPDPtr part,
0082 const LorentzTensor<double> & wave,
0083 Direction dir=intermediate)
0084 : WaveFunctionBase(p,part,dir), _wf(wave)
0085 {
0086 assert(iSpin()==PDT::Spin2);
0087 }
0088
0089
0090
0091
0092
0093
0094
0095
0096
0097
0098
0099
0100
0101
0102
0103
0104
0105
0106
0107
0108
0109
0110 TensorWaveFunction(const Lorentz5Momentum & p,tcPDPtr part,
0111 Complex xx,Complex xy,Complex xz,Complex xt,Complex yx,
0112 Complex yy,Complex yz,Complex yt,Complex zx,Complex zy,
0113 Complex zz,Complex zt,Complex tx,Complex ty,Complex tz,
0114 Complex tt)
0115 : WaveFunctionBase(p,part), _wf(xx,xy,xz,xt,
0116 yx,yy,yz,yt,
0117 zx,zy,zz,zt,
0118 tx,ty,tz,tt)
0119 {
0120 assert(iSpin()==PDT::Spin2);
0121 }
0122
0123
0124
0125
0126
0127
0128
0129
0130
0131 TensorWaveFunction(const Lorentz5Momentum & p,tcPDPtr part,
0132 unsigned int ihel,Direction dir,
0133 TensorPhase phase=default_tensor_phase)
0134 : WaveFunctionBase(p,part,dir)
0135 {
0136 assert(iSpin()==PDT::Spin2);
0137 calculateWaveFunction(ihel,phase);
0138 }
0139
0140
0141
0142
0143
0144
0145
0146 TensorWaveFunction(const Lorentz5Momentum & p,
0147 tcPDPtr part,Direction dir)
0148 : WaveFunctionBase(p,part,dir), _wf()
0149 {
0150 assert(iSpin()==PDT::Spin2);
0151 }
0152
0153
0154
0155
0156 TensorWaveFunction() {}
0157
0158
0159
0160
0161 TensorWaveFunction(vector<TensorWaveFunction> & wave,
0162 tPPtr part,Direction dir,bool time,bool massless,
0163 bool=true,
0164 TensorPhase phase=default_tensor_phase) {
0165 calculateWaveFunctions(wave,part,dir,massless,phase);
0166 constructSpinInfo(wave,part,dir,time,massless);
0167 }
0168
0169
0170
0171
0172
0173
0174
0175
0176
0177 Complex operator ()(int i, int j) const {
0178 return _wf(i,j);
0179 }
0180
0181
0182
0183
0184 Complex & operator () (int i, int j) {
0185 return _wf(i,j);
0186 }
0187
0188
0189
0190
0191 const LorentzTensor<double> & wave() const {return _wf;}
0192
0193
0194
0195
0196 Complex xx() const {return _wf.xx();}
0197
0198
0199
0200
0201 Complex yx() const {return _wf.yx();}
0202
0203
0204
0205
0206 Complex zx() const {return _wf.zx();}
0207
0208
0209
0210
0211 Complex tx() const {return _wf.tx();}
0212
0213
0214
0215
0216 Complex xy() const {return _wf.xy();}
0217
0218
0219
0220
0221 Complex yy() const {return _wf.yy();}
0222
0223
0224
0225
0226 Complex zy() const {return _wf.zy();}
0227
0228
0229
0230
0231 Complex ty() const {return _wf.ty();}
0232
0233
0234
0235
0236 Complex xz() const {return _wf.xz();}
0237
0238
0239
0240
0241 Complex yz() const {return _wf.yz();}
0242
0243
0244
0245
0246 Complex zz() const {return _wf.zz();}
0247
0248
0249
0250
0251 Complex tz() const {return _wf.tz();}
0252
0253
0254
0255
0256 Complex xt() const {return _wf.xt();}
0257
0258
0259
0260
0261 Complex yt() const {return _wf.yt();}
0262
0263
0264
0265
0266 Complex zt() const {return _wf.zt();}
0267
0268
0269
0270
0271 Complex tt() const {return _wf.tt();}
0272
0273
0274
0275
0276
0277
0278
0279
0280
0281
0282
0283
0284 void reset(unsigned int ihel,TensorPhase phase=default_tensor_phase) {
0285 calculateWaveFunction(ihel,phase);
0286 }
0287
0288
0289 public:
0290
0291
0292
0293
0294 void transform(const LorentzRotation & r) {
0295 _wf.transform(r);
0296 transformMomentum(r);
0297 }
0298
0299 public:
0300
0301
0302
0303
0304 static void calculateWaveFunctions(vector<LorentzTensor<double> > & waves,
0305 tPPtr particle,Direction,bool massless,
0306 TensorPhase phase=default_tensor_phase);
0307
0308
0309
0310
0311 static void calculateWaveFunctions(vector<TensorWaveFunction> & waves,
0312 tPPtr particle,Direction,bool massless,
0313 TensorPhase phase=default_tensor_phase);
0314
0315
0316
0317
0318 static void calculateWaveFunctions(vector<LorentzTensor<double> > & waves,
0319 RhoDMatrix & rho,
0320 tPPtr particle,Direction,bool massless,
0321 TensorPhase phase=default_tensor_phase);
0322
0323
0324
0325
0326 static void calculateWaveFunctions(vector<TensorWaveFunction> & waves,
0327 RhoDMatrix & rho,
0328 tPPtr particle,Direction,bool massless,
0329 TensorPhase phase=default_tensor_phase);
0330
0331
0332
0333
0334 static void constructSpinInfo(const vector<LorentzTensor<double> > & waves,
0335 tPPtr part,Direction dir, bool time,bool massless);
0336
0337
0338
0339
0340 static void constructSpinInfo(const vector<TensorWaveFunction> & waves,
0341 tPPtr part,Direction dir, bool time,bool massless);
0342
0343 private:
0344
0345
0346
0347
0348
0349
0350 void calculateWaveFunction(unsigned int ihel,
0351 TensorPhase phase=default_tensor_phase);
0352
0353 private:
0354
0355
0356
0357
0358 LorentzTensor<double> _wf;
0359
0360 };
0361 }
0362 }
0363
0364 #endif