thepeg
is hosted by
Hepforge
,
IPPP Durham
ThePEG
2.3.0
Helicity
WaveFunction
RSSpinorWaveFunction.h
1
// -*- C++ -*-
2
//
3
// RSSpinorWaveFunction.h is a part of ThePEG - Toolkit for HEP Event Generation
4
// Copyright (C) 2003-2019 Peter Richardson, Leif Lonnblad
5
//
6
// ThePEG is licenced under version 3 of the GPL, see COPYING for details.
7
// Please respect the MCnet academic guidelines, see GUIDELINES for details.
8
//
9
#ifndef ThePEG_RSSpinorWaveFunction_H
10
#define ThePEG_RSSpinorWaveFunction_H
11
// This is the declaration of the RSSpinorWaveFunction class.
12
13
#include "WaveFunctionBase.h"
14
#include <ThePEG/Helicity/LorentzRSSpinor.h>
15
#include <ThePEG/Helicity/RSFermionSpinInfo.h>
16
#include <ThePEG/EventRecord/Particle.h>
17
#include <ThePEG/EventRecord/RhoDMatrix.h>
18
19
namespace
ThePEG
{
20
21
namespace
Helicity {
22
58
class
RSSpinorWaveFunction
:
public
WaveFunctionBase
{
59
60
public
:
61
85
RSSpinorWaveFunction
(
const
Lorentz5Momentum
& p,
tcPDPtr
part,
86
complex<double>
xs1
, complex<double>
xs2
,
87
complex<double>
xs3
, complex<double>
xs4
,
88
complex<double>
ys1
, complex<double>
ys2
,
89
complex<double>
ys3
, complex<double>
ys4
,
90
complex<double>
zs1
, complex<double>
zs2
,
91
complex<double>
zs3
, complex<double>
zs4
,
92
complex<double>
ts1
, complex<double>
ts2
,
93
complex<double>
ts3
, complex<double>
ts4
)
94
:
WaveFunctionBase
(p,part),
_wf
(
xs1
,
xs2
,
xs3
,
xs4
,
95
ys1
,
ys2
,
ys3
,
ys4
,
96
zs1
,
zs2
,
zs3
,
zs4
,
97
ts1
,
ts2
,
ts3
,
ts4
)
98
{
99
assert(
iSpin
()==4);
100
}
101
109
RSSpinorWaveFunction
(
const
Lorentz5Momentum
& p,
tcPDPtr
part,
110
const
LorentzRSSpinor<double>
&
wave
,
111
Direction
dir=
intermediate
)
112
:
WaveFunctionBase
(p,part,dir),
_wf
(
wave
)
113
{
114
assert(
iSpin
()==4);
115
}
116
123
RSSpinorWaveFunction
(
const
tPPtr
& p,
124
const
LorentzRSSpinor<SqrtEnergy>
&
wave
,
125
Direction
dir=
intermediate
)
126
:
WaveFunctionBase
(p->
momentum
(),p->dataPtr(),dir),
_wf
(
wave
.Type())
127
{
128
assert(
iSpin
()==4);
129
for
(
unsigned
int
i=0; i<4; ++i)
130
for
(
unsigned
int
j=0; j<4; ++j)
131
_wf
(i,j)=
Complex
(
wave
(i,j)*UnitRemoval::InvSqrtE);
132
}
133
141
RSSpinorWaveFunction
(
const
Lorentz5Momentum
& p,
tcPDPtr
part,
142
unsigned
int
ihel,
Direction
dir)
143
:
WaveFunctionBase
(p,part,dir)
144
{
145
assert(
iSpin
()==4);
146
calculateWaveFunction
(ihel);
147
}
148
156
RSSpinorWaveFunction
(
const
Lorentz5Momentum
& p,
tcPDPtr
part,
Direction
dir)
157
:
WaveFunctionBase
(p,part,dir),
_wf
()
158
{
159
assert(
iSpin
()==4);
160
}
161
165
RSSpinorWaveFunction
()
166
:
WaveFunctionBase
(),
_wf
()
167
{}
168
172
RSSpinorWaveFunction
(vector<RSSpinorWaveFunction> &
wave
,
173
tPPtr
part,
Direction
dir,
bool
time,
bool
=
true
) {
174
calculateWaveFunctions
(
wave
,part,dir);
175
constructSpinInfo
(
wave
,part,dir,time);
176
}
178
187
complex<double>
operator ()
(
int
i,
int
j)
const
{
188
assert( i>=0 && i<=3 && j>=0 && j<=3);
189
return
_wf
(i,j);
190
}
191
195
const
LorentzRSSpinor<double>
&
wave
()
const
{
return
_wf
;}
196
198
LorentzRSSpinor<SqrtEnergy>
dimensionedWf
()
const
{
199
LorentzRSSpinor<SqrtEnergy>
temp(
_wf
.
Type
());
200
for
(
unsigned
int
i=0; i<4; ++i)
201
for
(
unsigned
int
j=0; j<4; ++j)
202
temp(i,j) =
_wf
(i,j)*UnitRemoval::SqrtE;
203
return
temp;
204
}
205
209
complex<double>
xs1
()
const
{
return
_wf
.
xs1
();}
210
214
complex<double>
xs2
()
const
{
return
_wf
.
xs2
();}
215
219
complex<double>
xs3
()
const
{
return
_wf
.
xs3
();}
220
224
complex<double>
xs4
()
const
{
return
_wf
.
xs4
();}
225
229
complex<double>
ys1
()
const
{
return
_wf
.
ys1
();}
230
234
complex<double>
ys2
()
const
{
return
_wf
.
ys2
();}
235
239
complex<double>
ys3
()
const
{
return
_wf
.
ys3
();}
240
244
complex<double>
ys4
()
const
{
return
_wf
.
ys4
();}
245
249
complex<double>
zs1
()
const
{
return
_wf
.
zs1
();}
250
254
complex<double>
zs2
()
const
{
return
_wf
.
zs2
();}
255
259
complex<double>
zs3
()
const
{
return
_wf
.
zs3
();}
260
264
complex<double>
zs4
()
const
{
return
_wf
.
zs4
();}
265
269
complex<double>
ts1
()
const
{
return
_wf
.
ts1
();}
270
274
complex<double>
ts2
()
const
{
return
_wf
.
ts2
();}
275
279
complex<double>
ts3
()
const
{
return
_wf
.
ts3
();}
280
284
complex<double>
ts4
()
const
{
return
_wf
.
ts4
();}
286
295
void
reset
(
unsigned
int
ihel) {
296
calculateWaveFunction
(ihel);
297
}
299
300
public
:
301
305
void
transform
(
const
LorentzRotation
& r) {
306
_wf
.
transform
(r);
307
transformMomentum
(r);
308
}
309
310
public
:
311
315
static
void
calculateWaveFunctions
(vector<
LorentzRSSpinor<SqrtEnergy>
> & waves,
316
tPPtr
particle
,
Direction
);
317
321
static
void
calculateWaveFunctions
(vector<RSSpinorWaveFunction> & waves,
322
tPPtr
particle
,
Direction
);
323
327
static
void
calculateWaveFunctions
(vector<RSSpinorWaveFunction> & waves,
328
const
Lorentz5Momentum
&
momentum
,
329
tcPDPtr
parton,
Direction
);
330
334
static
void
calculateWaveFunctions
(vector<
LorentzRSSpinor<SqrtEnergy>
> & waves,
335
RhoDMatrix
& rho,
336
tPPtr
particle
,
Direction
);
337
341
static
void
calculateWaveFunctions
(vector<RSSpinorWaveFunction> & waves,
342
RhoDMatrix
& rho,
343
tPPtr
particle
,
Direction
);
344
348
static
void
constructSpinInfo
(
const
vector<
LorentzRSSpinor<SqrtEnergy>
> & waves,
349
tPPtr
part,
Direction
dir,
bool
time);
350
354
static
void
constructSpinInfo
(
const
vector<RSSpinorWaveFunction> & waves,
355
tPPtr
part,
Direction
dir,
bool
time);
356
357
private
:
358
363
void
calculateWaveFunction
(
unsigned
int
ihel);
364
365
private
:
366
370
LorentzRSSpinor<double>
_wf
;
371
};
372
373
}
374
}
375
376
#endif
/* ThePEG_RSSpinorWaveFunction_H */
ThePEG::Direction
A Direction object can be used to specify that some following operations should be assumed to be perf...
Definition:
Direction.h:41
ThePEG::Helicity::LorentzRSSpinor
The LorentzRSSpinor class is designed to store a Rarita-Schwinger spinor for a spin-3/2 particle.
Definition:
LorentzRSSpinor.h:73
ThePEG::Helicity::LorentzRSSpinor::xs4
complex< Value > xs4() const
Get fourth spinor component for the x vector.
Definition:
LorentzRSSpinor.h:144
ThePEG::Helicity::LorentzRSSpinor::ys4
complex< Value > ys4() const
Get fourth spinor component for the y vector.
Definition:
LorentzRSSpinor.h:164
ThePEG::Helicity::LorentzRSSpinor::zs2
complex< Value > zs2() const
Get second spinor component for the z vector.
Definition:
LorentzRSSpinor.h:174
ThePEG::Helicity::LorentzRSSpinor::zs1
complex< Value > zs1() const
Get first spinor component for the z vector.
Definition:
LorentzRSSpinor.h:169
ThePEG::Helicity::LorentzRSSpinor::ys2
complex< Value > ys2() const
Get second spinor component for the y vector.
Definition:
LorentzRSSpinor.h:154
ThePEG::Helicity::LorentzRSSpinor::ts4
complex< Value > ts4() const
Get fourth spinor component for the t vector.
Definition:
LorentzRSSpinor.h:204
ThePEG::Helicity::LorentzRSSpinor::ts3
complex< Value > ts3() const
Get third spinor component for the t vector.
Definition:
LorentzRSSpinor.h:199
ThePEG::Helicity::LorentzRSSpinor::xs2
complex< Value > xs2() const
Get second spinor component for the x vector.
Definition:
LorentzRSSpinor.h:134
ThePEG::Helicity::LorentzRSSpinor::ys3
complex< Value > ys3() const
Get third spinor component for the y vector.
Definition:
LorentzRSSpinor.h:159
ThePEG::Helicity::LorentzRSSpinor::transform
LorentzRSSpinor & transform(const LorentzRotation &)
General transform.
ThePEG::Helicity::LorentzRSSpinor::xs1
complex< Value > xs1() const
Get first spinor component for the x vector.
Definition:
LorentzRSSpinor.h:129
ThePEG::Helicity::LorentzRSSpinor::zs4
complex< Value > zs4() const
Get fourth spinor component for the z vector.
Definition:
LorentzRSSpinor.h:184
ThePEG::Helicity::LorentzRSSpinor::ts2
complex< Value > ts2() const
Get second spinor component for the t vector.
Definition:
LorentzRSSpinor.h:194
ThePEG::Helicity::LorentzRSSpinor::xs3
complex< Value > xs3() const
Get third spinor component for the x vector.
Definition:
LorentzRSSpinor.h:139
ThePEG::Helicity::LorentzRSSpinor::zs3
complex< Value > zs3() const
Get third spinor component for the z vector.
Definition:
LorentzRSSpinor.h:179
ThePEG::Helicity::LorentzRSSpinor::ts1
complex< Value > ts1() const
Get first spinor component for the t vector.
Definition:
LorentzRSSpinor.h:189
ThePEG::Helicity::LorentzRSSpinor::Type
SpinorType Type() const
Return the type of the spinor.
Definition:
LorentzRSSpinor.h:385
ThePEG::Helicity::LorentzRSSpinor::ys1
complex< Value > ys1() const
Get first spinor component for the y vector.
Definition:
LorentzRSSpinor.h:149
ThePEG::Helicity::RSSpinorWaveFunction
The RSSpinorWaveFunction class is designed to store the wavefunction of a spin-3/2 particle in a form...
Definition:
RSSpinorWaveFunction.h:58
ThePEG::Helicity::RSSpinorWaveFunction::RSSpinorWaveFunction
RSSpinorWaveFunction(const Lorentz5Momentum &p, tcPDPtr part, complex< double > xs1, complex< double > xs2, complex< double > xs3, complex< double > xs4, complex< double > ys1, complex< double > ys2, complex< double > ys3, complex< double > ys4, complex< double > zs1, complex< double > zs2, complex< double > zs3, complex< double > zs4, complex< double > ts1, complex< double > ts2, complex< double > ts3, complex< double > ts4)
Constructor, set the momentum and the components of the spinor.
Definition:
RSSpinorWaveFunction.h:85
ThePEG::Helicity::RSSpinorWaveFunction::xs1
complex< double > xs1() const
Get first spinor component for the x vector.
Definition:
RSSpinorWaveFunction.h:209
ThePEG::Helicity::RSSpinorWaveFunction::RSSpinorWaveFunction
RSSpinorWaveFunction(vector< RSSpinorWaveFunction > &wave, tPPtr part, Direction dir, bool time, bool=true)
Special for spin correlations.
Definition:
RSSpinorWaveFunction.h:172
ThePEG::Helicity::RSSpinorWaveFunction::ys3
complex< double > ys3() const
Get third spinor component for the y vector.
Definition:
RSSpinorWaveFunction.h:239
ThePEG::Helicity::RSSpinorWaveFunction::ts3
complex< double > ts3() const
Get third spinor component for the t vector.
Definition:
RSSpinorWaveFunction.h:279
ThePEG::Helicity::RSSpinorWaveFunction::ts1
complex< double > ts1() const
Get first spinor component for the t vector.
Definition:
RSSpinorWaveFunction.h:269
ThePEG::Helicity::RSSpinorWaveFunction::RSSpinorWaveFunction
RSSpinorWaveFunction(const Lorentz5Momentum &p, tcPDPtr part, const LorentzRSSpinor< double > &wave, Direction dir=intermediate)
Constructor, set the momentum and the wavefunction.
Definition:
RSSpinorWaveFunction.h:109
ThePEG::Helicity::RSSpinorWaveFunction::calculateWaveFunction
void calculateWaveFunction(unsigned int ihel)
Calcuate the wavefunction.
ThePEG::Helicity::RSSpinorWaveFunction::transform
void transform(const LorentzRotation &r)
Perform the Lorentz transformation of the wave function.
Definition:
RSSpinorWaveFunction.h:305
ThePEG::Helicity::RSSpinorWaveFunction::zs2
complex< double > zs2() const
Get second spinor component for the z vector.
Definition:
RSSpinorWaveFunction.h:254
ThePEG::Helicity::RSSpinorWaveFunction::RSSpinorWaveFunction
RSSpinorWaveFunction(const Lorentz5Momentum &p, tcPDPtr part, unsigned int ihel, Direction dir)
Constructor, set the momentum, helicity, direction.
Definition:
RSSpinorWaveFunction.h:141
ThePEG::Helicity::RSSpinorWaveFunction::zs3
complex< double > zs3() const
Get third spinor component for the z vector.
Definition:
RSSpinorWaveFunction.h:259
ThePEG::Helicity::RSSpinorWaveFunction::constructSpinInfo
static void constructSpinInfo(const vector< LorentzRSSpinor< SqrtEnergy > > &waves, tPPtr part, Direction dir, bool time)
Construct the SpinInfo object.
ThePEG::Helicity::RSSpinorWaveFunction::RSSpinorWaveFunction
RSSpinorWaveFunction(const tPPtr &p, const LorentzRSSpinor< SqrtEnergy > &wave, Direction dir=intermediate)
Constructor, set the momentum and the wavefunction.
Definition:
RSSpinorWaveFunction.h:123
ThePEG::Helicity::RSSpinorWaveFunction::calculateWaveFunctions
static void calculateWaveFunctions(vector< RSSpinorWaveFunction > &waves, const Lorentz5Momentum &momentum, tcPDPtr parton, Direction)
Calculate the wavefunctions.
ThePEG::Helicity::RSSpinorWaveFunction::zs4
complex< double > zs4() const
Get fourth spinor component for the z vector.
Definition:
RSSpinorWaveFunction.h:264
ThePEG::Helicity::RSSpinorWaveFunction::ts4
complex< double > ts4() const
Get fourth spinor component for the t vector.
Definition:
RSSpinorWaveFunction.h:284
ThePEG::Helicity::RSSpinorWaveFunction::RSSpinorWaveFunction
RSSpinorWaveFunction()
Default constructor.
Definition:
RSSpinorWaveFunction.h:165
ThePEG::Helicity::RSSpinorWaveFunction::calculateWaveFunctions
static void calculateWaveFunctions(vector< RSSpinorWaveFunction > &waves, RhoDMatrix &rho, tPPtr particle, Direction)
Calculate the wavefunctions.
ThePEG::Helicity::RSSpinorWaveFunction::ts2
complex< double > ts2() const
Get second spinor component for the t vector.
Definition:
RSSpinorWaveFunction.h:274
ThePEG::Helicity::RSSpinorWaveFunction::dimensionedWf
LorentzRSSpinor< SqrtEnergy > dimensionedWf() const
Return wavefunction as LorentzRSSpinor<SqrtEnergy>
Definition:
RSSpinorWaveFunction.h:198
ThePEG::Helicity::RSSpinorWaveFunction::calculateWaveFunctions
static void calculateWaveFunctions(vector< LorentzRSSpinor< SqrtEnergy > > &waves, tPPtr particle, Direction)
Calculate the wavefunctions.
ThePEG::Helicity::RSSpinorWaveFunction::xs4
complex< double > xs4() const
Get fourth spinor component for the x vector.
Definition:
RSSpinorWaveFunction.h:224
ThePEG::Helicity::RSSpinorWaveFunction::ys2
complex< double > ys2() const
Get second spinor component for the y vector.
Definition:
RSSpinorWaveFunction.h:234
ThePEG::Helicity::RSSpinorWaveFunction::ys1
complex< double > ys1() const
Get first spinor component for the y vector.
Definition:
RSSpinorWaveFunction.h:229
ThePEG::Helicity::RSSpinorWaveFunction::calculateWaveFunctions
static void calculateWaveFunctions(vector< RSSpinorWaveFunction > &waves, tPPtr particle, Direction)
Calculate the wavefunctions.
ThePEG::Helicity::RSSpinorWaveFunction::wave
const LorentzRSSpinor< double > & wave() const
return wavefunction as LorentzRSSpinor
Definition:
RSSpinorWaveFunction.h:195
ThePEG::Helicity::RSSpinorWaveFunction::constructSpinInfo
static void constructSpinInfo(const vector< RSSpinorWaveFunction > &waves, tPPtr part, Direction dir, bool time)
Construct the SpinInfo object.
ThePEG::Helicity::RSSpinorWaveFunction::RSSpinorWaveFunction
RSSpinorWaveFunction(const Lorentz5Momentum &p, tcPDPtr part, Direction dir)
Constructor, set the momentum, direction, zero the wavefunction.
Definition:
RSSpinorWaveFunction.h:156
ThePEG::Helicity::RSSpinorWaveFunction::ys4
complex< double > ys4() const
Get fourth spinor component for the y vector.
Definition:
RSSpinorWaveFunction.h:244
ThePEG::Helicity::RSSpinorWaveFunction::reset
void reset(unsigned int ihel)
reset functions
Definition:
RSSpinorWaveFunction.h:295
ThePEG::Helicity::RSSpinorWaveFunction::xs2
complex< double > xs2() const
Get second spinor component for the x vector.
Definition:
RSSpinorWaveFunction.h:214
ThePEG::Helicity::RSSpinorWaveFunction::_wf
LorentzRSSpinor< double > _wf
storage of the Lorentz RSSpinor
Definition:
RSSpinorWaveFunction.h:370
ThePEG::Helicity::RSSpinorWaveFunction::zs1
complex< double > zs1() const
Get first spinor component for the z vector.
Definition:
RSSpinorWaveFunction.h:249
ThePEG::Helicity::RSSpinorWaveFunction::calculateWaveFunctions
static void calculateWaveFunctions(vector< LorentzRSSpinor< SqrtEnergy > > &waves, RhoDMatrix &rho, tPPtr particle, Direction)
Calculate the wavefunctions.
ThePEG::Helicity::RSSpinorWaveFunction::operator()
complex< double > operator()(int i, int j) const
Access to the wavefunction and its components.
Definition:
RSSpinorWaveFunction.h:187
ThePEG::Helicity::RSSpinorWaveFunction::xs3
complex< double > xs3() const
Get third spinor component for the x vector.
Definition:
RSSpinorWaveFunction.h:219
ThePEG::Helicity::WaveFunctionBase
Definition:
WaveFunctionBase.h:58
ThePEG::Helicity::WaveFunctionBase::iSpin
PDT::Spin iSpin() const
Get 2s+1 for the particle.
Definition:
WaveFunctionBase.h:139
ThePEG::Helicity::WaveFunctionBase::particle
tcPDPtr particle() const
Get the particle pointer.
Definition:
WaveFunctionBase.h:144
ThePEG::Helicity::WaveFunctionBase::transformMomentum
void transformMomentum(const LorentzRotation &r)
Perform the Lorentz transformation of the wave function.
Definition:
WaveFunctionBase.h:162
ThePEG::Helicity::WaveFunctionBase::momentum
const Lorentz5Momentum & momentum() const
Access to the 5-momentum.
Definition:
WaveFunctionBase.h:124
ThePEG::Lorentz5Vector< Energy >
ThePEG::LorentzRotation
The LorentzRotation class combine a SpinOneLorentzRotation and a spin SpinHalfLorentzRotation to prov...
Definition:
LorentzRotation.h:27
ThePEG::Pointer::TransientConstRCPtr
TransientConstRCPtr is a simple wrapper around a bare const pointer which can be assigned to and from...
Definition:
RCPtr.h:696
ThePEG::Pointer::TransientRCPtr
TransientRCPtr is a simple wrapper around a bare pointer which can be assigned to and from an RCPtr a...
Definition:
RCPtr.h:519
ThePEG::RhoDMatrix
The RhoDMatrix class is designed to implement the storage of the rho and D matrices which are require...
Definition:
RhoDMatrix.h:28
ThePEG::Helicity::intermediate
@ intermediate
An intermediate particle.
Definition:
WaveFunctionBase.h:33
ThePEG
This is the main namespace within which all identifiers in ThePEG are declared.
Definition:
FactoryBase.h:28
ThePEG::Complex
std::complex< double > Complex
ThePEG code should use Complex for all complex scalars.
Definition:
Complex.h:23
Generated on Thu Jun 20 2024 14:47:00 for ThePEG by
1.9.6