File indexing completed on 2026-08-06 09:38:24
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef ThePEG_SpinorBarWaveFunction_H
0010 #define ThePEG_SpinorBarWaveFunction_H
0011
0012
0013
0014 #include "WaveFunctionBase.h"
0015 #include <ThePEG/Helicity/LorentzSpinorBar.h>
0016 #include <ThePEG/Helicity/FermionSpinInfo.h>
0017 #include <ThePEG/EventRecord/Particle.h>
0018 #include <ThePEG/EventRecord/RhoDMatrix.h>
0019
0020 namespace ThePEG {
0021
0022 namespace Helicity {
0023
0024
0025
0026
0027 class SpinorWaveFunction;
0028
0029
0030
0031
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 class SpinorBarWaveFunction : public WaveFunctionBase {
0058
0059 public:
0060
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072 SpinorBarWaveFunction(const Lorentz5Momentum & p,tcPDPtr part,
0073 complex<double> s1,complex<double> s2,
0074 complex<double> s3,complex<double> s4)
0075 : WaveFunctionBase(p,part), _wf(s1,s2,s3,s4)
0076 {
0077 assert(iSpin()==2);
0078 }
0079
0080
0081
0082
0083
0084
0085
0086
0087
0088 SpinorBarWaveFunction(const Lorentz5Momentum & p,tcPDPtr part,
0089 const LorentzSpinorBar<double> & wave,
0090 Direction dir=intermediate)
0091 : WaveFunctionBase(p,part,dir), _wf(wave)
0092 {
0093 assert(iSpin()==2);
0094 }
0095
0096 SpinorBarWaveFunction(const tPPtr & p,
0097 const LorentzSpinorBar<SqrtEnergy> & wave,
0098 Direction dir=intermediate)
0099 : WaveFunctionBase(p->momentum(),p->dataPtr(),dir),
0100 _wf(wave.Type())
0101 {
0102 assert(iSpin()==2);
0103 for (unsigned int i=0; i<4; ++i)
0104 _wf[i]=Complex(wave[i]*UnitRemoval::InvSqrtE);
0105 }
0106
0107
0108
0109
0110
0111
0112
0113
0114 SpinorBarWaveFunction(const Lorentz5Momentum & p,tcPDPtr part,
0115 unsigned int ihel,Direction dir)
0116 : WaveFunctionBase(p,part,dir)
0117 {
0118 assert(iSpin()==2);
0119 calculateWaveFunction(ihel);
0120 }
0121
0122
0123
0124
0125
0126
0127
0128
0129 SpinorBarWaveFunction(const Lorentz5Momentum & p,tcPDPtr part,
0130 Direction dir)
0131 : WaveFunctionBase(p,part,dir), _wf()
0132 {
0133 assert(iSpin()==2);
0134 }
0135
0136
0137
0138
0139 SpinorBarWaveFunction()
0140 : WaveFunctionBase(), _wf()
0141 {}
0142
0143
0144
0145
0146 SpinorBarWaveFunction(vector<SpinorBarWaveFunction> & wave,
0147 tPPtr part,Direction dir,bool time,bool=true) {
0148 calculateWaveFunctions(wave,part,dir);
0149 constructSpinInfo(wave,part,dir,time);
0150 }
0151
0152
0153
0154
0155
0156
0157
0158
0159
0160 complex<double> operator ()(int i) const {
0161 assert(i>=0 &&i<=3);
0162 return _wf(i);
0163 }
0164
0165
0166
0167
0168 const LorentzSpinorBar<double> & wave() const {return _wf;}
0169
0170
0171 LorentzSpinorBar<SqrtEnergy> dimensionedWave() const {
0172 return dimensionedWf();
0173 }
0174
0175
0176
0177
0178 complex<double> s1() const {return _wf.s1();}
0179
0180
0181
0182
0183 complex<double> s2() const {return _wf.s2();}
0184
0185
0186
0187
0188 complex<double> s3() const {return _wf.s3();}
0189
0190
0191
0192
0193 complex<double> s4() const {return _wf.s4();}
0194
0195
0196
0197
0198
0199
0200 void conjugate();
0201
0202
0203
0204
0205 SpinorWaveFunction bar();
0206
0207
0208
0209
0210
0211
0212
0213
0214
0215 void reset(unsigned int ihel) {
0216 calculateWaveFunction(ihel);
0217 }
0218
0219
0220 private:
0221
0222
0223
0224
0225
0226 void calculateWaveFunction(unsigned int ihel);
0227
0228
0229 public:
0230
0231
0232
0233
0234 void transform(const LorentzRotation & r) {
0235 _wf.transform(r);
0236 transformMomentum(r);
0237 }
0238
0239 public:
0240
0241
0242
0243
0244 static void calculateWaveFunctions(vector<LorentzSpinorBar<SqrtEnergy> > & waves,
0245 tPPtr particle,Direction);
0246
0247
0248
0249
0250 static void calculateWaveFunctions(vector<SpinorBarWaveFunction> & waves,
0251 tPPtr particle,Direction);
0252
0253
0254
0255
0256 static void calculateWaveFunctions(vector<SpinorBarWaveFunction> & waves,
0257 const Lorentz5Momentum & momentum,
0258 tcPDPtr parton,Direction);
0259
0260
0261
0262
0263 static void calculateWaveFunctions(vector<LorentzSpinorBar<SqrtEnergy> > & waves,
0264 RhoDMatrix & rho,
0265 tPPtr particle,Direction);
0266
0267
0268
0269
0270 static void calculateWaveFunctions(vector<SpinorBarWaveFunction> & waves,
0271 RhoDMatrix & rho,
0272 tPPtr particle,Direction);
0273
0274
0275
0276
0277 static void constructSpinInfo(const vector<LorentzSpinorBar<SqrtEnergy> > & waves,
0278 tPPtr part,Direction dir, bool time);
0279
0280
0281
0282
0283 static void constructSpinInfo(const vector<SpinorBarWaveFunction> & waves,
0284 tPPtr part,Direction dir, bool time);
0285
0286 private:
0287
0288
0289
0290
0291 LorentzSpinorBar<double> _wf;
0292
0293
0294 LorentzSpinorBar<SqrtEnergy> dimensionedWf() const {
0295 LorentzSpinorBar<SqrtEnergy> temp(_wf.Type());
0296 for (unsigned int i=0; i<4; ++i)
0297 temp(i) = _wf(i)*UnitRemoval::SqrtE;
0298 return temp;
0299 }
0300 };
0301 }
0302 }
0303
0304 #endif
0305
0306
0307
0308