thepeg
is hosted by
Hepforge
,
IPPP Durham
ThePEG
2.3.0
Helicity
WaveFunction
SpinorBarWaveFunction.h
1
// -*- C++ -*-
2
//
3
// SpinorBarWaveFunction.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_SpinorBarWaveFunction_H
10
#define ThePEG_SpinorBarWaveFunction_H
11
//
12
// This is the declaration of the SpinorBarWaveFunction class.
13
14
#include "WaveFunctionBase.h"
15
#include <ThePEG/Helicity/LorentzSpinorBar.h>
16
#include <ThePEG/Helicity/FermionSpinInfo.h>
17
#include <ThePEG/EventRecord/Particle.h>
18
#include <ThePEG/EventRecord/RhoDMatrix.h>
19
20
namespace
ThePEG
{
21
22
namespace
Helicity {
23
27
class
SpinorWaveFunction;
28
57
class
SpinorBarWaveFunction
:
public
WaveFunctionBase
{
58
59
public
:
60
72
SpinorBarWaveFunction
(
const
Lorentz5Momentum
& p,
tcPDPtr
part,
73
complex<double>
s1
,complex<double>
s2
,
74
complex<double>
s3
,complex<double>
s4
)
75
:
WaveFunctionBase
(p,part),
_wf
(
s1
,
s2
,
s3
,
s4
)
76
{
77
assert(
iSpin
()==2);
78
}
79
80
88
SpinorBarWaveFunction
(
const
Lorentz5Momentum
& p,
tcPDPtr
part,
89
const
LorentzSpinorBar<double>
&
wave
,
90
Direction
dir=
intermediate
)
91
:
WaveFunctionBase
(p,part,dir),
_wf
(
wave
)
92
{
93
assert(
iSpin
()==2);
94
}
95
96
SpinorBarWaveFunction
(
const
tPPtr
& p,
97
const
LorentzSpinorBar<SqrtEnergy>
&
wave
,
98
Direction
dir=
intermediate
)
99
:
WaveFunctionBase
(p->
momentum
(),p->dataPtr(),dir),
100
_wf
(
wave
.Type())
101
{
102
assert(
iSpin
()==2);
103
for
(
unsigned
int
i=0; i<4; ++i)
104
_wf
[i]=
Complex
(
wave
[i]*UnitRemoval::InvSqrtE);
105
}
106
114
SpinorBarWaveFunction
(
const
Lorentz5Momentum
& p,
tcPDPtr
part,
115
unsigned
int
ihel,
Direction
dir)
116
:
WaveFunctionBase
(p,part,dir)
117
{
118
assert(
iSpin
()==2);
119
calculateWaveFunction
(ihel);
120
}
121
129
SpinorBarWaveFunction
(
const
Lorentz5Momentum
& p,
tcPDPtr
part,
130
Direction
dir)
131
:
WaveFunctionBase
(p,part,dir),
_wf
()
132
{
133
assert(
iSpin
()==2);
134
}
135
139
SpinorBarWaveFunction
()
140
:
WaveFunctionBase
(),
_wf
()
141
{}
142
146
SpinorBarWaveFunction
(vector<SpinorBarWaveFunction> &
wave
,
147
tPPtr
part,
Direction
dir,
bool
time,
bool
=
true
) {
148
calculateWaveFunctions
(
wave
,part,dir);
149
constructSpinInfo
(
wave
,part,dir,time);
150
}
152
160
complex<double>
operator ()
(
int
i)
const
{
161
assert(i>=0 &&i<=3);
162
return
_wf
(i);
163
}
164
168
const
LorentzSpinorBar<double>
&
wave
()
const
{
return
_wf
;}
169
171
LorentzSpinorBar<SqrtEnergy>
dimensionedWave
()
const
{
172
return
dimensionedWf
();
173
}
174
178
complex<double>
s1
()
const
{
return
_wf
.
s1
();}
179
183
complex<double>
s2
()
const
{
return
_wf
.
s2
();}
184
188
complex<double>
s3
()
const
{
return
_wf
.
s3
();}
189
193
complex<double>
s4
()
const
{
return
_wf
.
s4
();}
194
200
void
conjugate
();
201
205
SpinorWaveFunction
bar
();
206
215
void
reset
(
unsigned
int
ihel) {
216
calculateWaveFunction
(ihel);
217
}
219
220
private
:
221
226
void
calculateWaveFunction
(
unsigned
int
ihel);
227
228
229
public
:
230
234
void
transform
(
const
LorentzRotation
& r) {
235
_wf
.
transform
(r);
236
transformMomentum
(r);
237
}
238
239
public
:
240
244
static
void
calculateWaveFunctions
(vector<
LorentzSpinorBar<SqrtEnergy>
> & waves,
245
tPPtr
particle
,
Direction
);
246
250
static
void
calculateWaveFunctions
(vector<SpinorBarWaveFunction> & waves,
251
tPPtr
particle
,
Direction
);
252
256
static
void
calculateWaveFunctions
(vector<SpinorBarWaveFunction> & waves,
257
const
Lorentz5Momentum
&
momentum
,
258
tcPDPtr
parton,
Direction
);
259
263
static
void
calculateWaveFunctions
(vector<
LorentzSpinorBar<SqrtEnergy>
> & waves,
264
RhoDMatrix
& rho,
265
tPPtr
particle
,
Direction
);
266
270
static
void
calculateWaveFunctions
(vector<SpinorBarWaveFunction> & waves,
271
RhoDMatrix
& rho,
272
tPPtr
particle
,
Direction
);
273
277
static
void
constructSpinInfo
(
const
vector<
LorentzSpinorBar<SqrtEnergy>
> & waves,
278
tPPtr
part,
Direction
dir,
bool
time);
279
283
static
void
constructSpinInfo
(
const
vector<SpinorBarWaveFunction> & waves,
284
tPPtr
part,
Direction
dir,
bool
time);
285
286
private
:
287
291
LorentzSpinorBar<double>
_wf
;
292
294
LorentzSpinorBar<SqrtEnergy>
dimensionedWf
()
const
{
295
LorentzSpinorBar<SqrtEnergy>
temp(
_wf
.
Type
());
296
for
(
unsigned
int
i=0; i<4; ++i)
297
temp(i) =
_wf
(i)*UnitRemoval::SqrtE;
298
return
temp;
299
}
300
};
301
}
302
}
303
304
#endif
305
306
307
308
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::LorentzSpinorBar
The LorentzSpinorBar class implements the storage of a barred LorentzSpinor.
Definition:
LorentzSpinorBar.h:35
ThePEG::Helicity::LorentzSpinorBar::s4
complex< Value > s4() const
Get fourth component.
Definition:
LorentzSpinorBar.h:112
ThePEG::Helicity::LorentzSpinorBar::Type
SpinorType Type() const
Return the type of the spinor.
Definition:
LorentzSpinorBar.h:203
ThePEG::Helicity::LorentzSpinorBar::transform
LorentzSpinorBar & transform(const SpinHalfLorentzRotation &)
General Lorentz transformation.
ThePEG::Helicity::LorentzSpinorBar::s3
complex< Value > s3() const
Get third component.
Definition:
LorentzSpinorBar.h:107
ThePEG::Helicity::LorentzSpinorBar::s2
complex< Value > s2() const
Get second component.
Definition:
LorentzSpinorBar.h:102
ThePEG::Helicity::LorentzSpinorBar::s1
complex< Value > s1() const
Get first component.
Definition:
LorentzSpinorBar.h:97
ThePEG::Helicity::SpinorBarWaveFunction
Definition:
SpinorBarWaveFunction.h:57
ThePEG::Helicity::SpinorBarWaveFunction::calculateWaveFunctions
static void calculateWaveFunctions(vector< SpinorBarWaveFunction > &waves, const Lorentz5Momentum &momentum, tcPDPtr parton, Direction)
Calculate the wavefunctions.
ThePEG::Helicity::SpinorBarWaveFunction::s4
complex< double > s4() const
Get the fourth spin component component.
Definition:
SpinorBarWaveFunction.h:193
ThePEG::Helicity::SpinorBarWaveFunction::operator()
complex< double > operator()(int i) const
Access to the wavefunction and its components.
Definition:
SpinorBarWaveFunction.h:160
ThePEG::Helicity::SpinorBarWaveFunction::SpinorBarWaveFunction
SpinorBarWaveFunction(const Lorentz5Momentum &p, tcPDPtr part, complex< double > s1, complex< double > s2, complex< double > s3, complex< double > s4)
Constructor, set the momentum and the components of the spinor.
Definition:
SpinorBarWaveFunction.h:72
ThePEG::Helicity::SpinorBarWaveFunction::_wf
LorentzSpinorBar< double > _wf
Storage of the Lorentz SpinorBar wavefunction.
Definition:
SpinorBarWaveFunction.h:291
ThePEG::Helicity::SpinorBarWaveFunction::calculateWaveFunctions
static void calculateWaveFunctions(vector< SpinorBarWaveFunction > &waves, tPPtr particle, Direction)
Calculate the wavefunctions.
ThePEG::Helicity::SpinorBarWaveFunction::SpinorBarWaveFunction
SpinorBarWaveFunction(const Lorentz5Momentum &p, tcPDPtr part, unsigned int ihel, Direction dir)
Constructor, set the momentum, helicity, direction.
Definition:
SpinorBarWaveFunction.h:114
ThePEG::Helicity::SpinorBarWaveFunction::s1
complex< double > s1() const
Get the first spin component component.
Definition:
SpinorBarWaveFunction.h:178
ThePEG::Helicity::SpinorBarWaveFunction::dimensionedWf
LorentzSpinorBar< SqrtEnergy > dimensionedWf() const
Return wavefunction as LorentzSpinorBar<SqrtEnergy>
Definition:
SpinorBarWaveFunction.h:294
ThePEG::Helicity::SpinorBarWaveFunction::s2
complex< double > s2() const
Get the second spin component component.
Definition:
SpinorBarWaveFunction.h:183
ThePEG::Helicity::SpinorBarWaveFunction::wave
const LorentzSpinorBar< double > & wave() const
Return wavefunction as LorentzSpinorBar<double>.
Definition:
SpinorBarWaveFunction.h:168
ThePEG::Helicity::SpinorBarWaveFunction::reset
void reset(unsigned int ihel)
Reset functions.
Definition:
SpinorBarWaveFunction.h:215
ThePEG::Helicity::SpinorBarWaveFunction::constructSpinInfo
static void constructSpinInfo(const vector< SpinorBarWaveFunction > &waves, tPPtr part, Direction dir, bool time)
Construct the SpinInfo object.
ThePEG::Helicity::SpinorBarWaveFunction::bar
SpinorWaveFunction bar()
Return the barred spinor.
ThePEG::Helicity::SpinorBarWaveFunction::constructSpinInfo
static void constructSpinInfo(const vector< LorentzSpinorBar< SqrtEnergy > > &waves, tPPtr part, Direction dir, bool time)
Construct the SpinInfo object.
ThePEG::Helicity::SpinorBarWaveFunction::transform
void transform(const LorentzRotation &r)
Perform the Lorentz transformation of the wave function.
Definition:
SpinorBarWaveFunction.h:234
ThePEG::Helicity::SpinorBarWaveFunction::SpinorBarWaveFunction
SpinorBarWaveFunction(const Lorentz5Momentum &p, tcPDPtr part, const LorentzSpinorBar< double > &wave, Direction dir=intermediate)
Constructor, set the momentum and the wavefunction.
Definition:
SpinorBarWaveFunction.h:88
ThePEG::Helicity::SpinorBarWaveFunction::SpinorBarWaveFunction
SpinorBarWaveFunction(vector< SpinorBarWaveFunction > &wave, tPPtr part, Direction dir, bool time, bool=true)
Special for spin correlations.
Definition:
SpinorBarWaveFunction.h:146
ThePEG::Helicity::SpinorBarWaveFunction::SpinorBarWaveFunction
SpinorBarWaveFunction(const Lorentz5Momentum &p, tcPDPtr part, Direction dir)
Constructor, set the momentum, direction, zero the wavefunction.
Definition:
SpinorBarWaveFunction.h:129
ThePEG::Helicity::SpinorBarWaveFunction::s3
complex< double > s3() const
Get the third spin component component.
Definition:
SpinorBarWaveFunction.h:188
ThePEG::Helicity::SpinorBarWaveFunction::calculateWaveFunctions
static void calculateWaveFunctions(vector< LorentzSpinorBar< SqrtEnergy > > &waves, RhoDMatrix &rho, tPPtr particle, Direction)
Calculate the wavefunctions.
ThePEG::Helicity::SpinorBarWaveFunction::conjugate
void conjugate()
Take the conjugate of the spinor .
ThePEG::Helicity::SpinorBarWaveFunction::SpinorBarWaveFunction
SpinorBarWaveFunction()
Default constructor.
Definition:
SpinorBarWaveFunction.h:139
ThePEG::Helicity::SpinorBarWaveFunction::calculateWaveFunctions
static void calculateWaveFunctions(vector< SpinorBarWaveFunction > &waves, RhoDMatrix &rho, tPPtr particle, Direction)
Calculate the wavefunctions.
ThePEG::Helicity::SpinorBarWaveFunction::calculateWaveFunctions
static void calculateWaveFunctions(vector< LorentzSpinorBar< SqrtEnergy > > &waves, tPPtr particle, Direction)
Calculate the wavefunctions.
ThePEG::Helicity::SpinorBarWaveFunction::dimensionedWave
LorentzSpinorBar< SqrtEnergy > dimensionedWave() const
Return wavefunction as LorentzSpinorBar<SqrtEnergy>
Definition:
SpinorBarWaveFunction.h:171
ThePEG::Helicity::SpinorBarWaveFunction::calculateWaveFunction
void calculateWaveFunction(unsigned int ihel)
Calcuate the wavefunction.
ThePEG::Helicity::SpinorWaveFunction
Definition:
SpinorWaveFunction.h:56
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