9 #ifndef ThePEG_LorentzRSSpinorBar_H 10 #define ThePEG_LorentzRSSpinorBar_H 13 #include "ThePEG/Config/ThePEG.h" 14 #include "ThePEG/Vectors/ThreeVector.h" 16 #include "LorentzRSSpinor.fh" 17 #include "LorentzRSSpinorBar.fh" 18 #include "LorentzSpinorBar.h" 19 #include "LorentzSpinor.h" 20 #include "LorentzPolarizationVector.h" 37 template <
typename Value>
48 for(
unsigned int ix=0;ix<4;++ix)
49 for(
unsigned int iy=0;iy<4;++iy)
50 _spin[ix][iy]=Value();
58 complex<Value> c1,complex<Value> d1,
59 complex<Value> a2,complex<Value> b2,
60 complex<Value> c2,complex<Value> d2,
61 complex<Value> a3,complex<Value> b3,
62 complex<Value> c3,complex<Value> d3,
63 complex<Value> a4,complex<Value> b4,
64 complex<Value> c4,complex<Value> d4,
80 assert( i >= 0 && i <= 3 && j>=0 && j<=3 );
88 assert( i >= 0 && i <= 3 && j>=0 && j<=3 );
95 complex<Value>
xs1()
const {
return _spin[0][0];}
260 for(
unsigned int ix=0;ix<4;++ix) {
261 output[ix]=
_spin[3][ix]*vec.t()-
_spin[0][ix]*vec.x()
274 for(ix=0;ix<4;++ix) {
275 output[ix]=
_spin[3][ix]*vec.t()-
_spin[0][ix]*vec.x()
319 template <
typename ValueB>
323 typedef complex<typename BinaryOpTraits<Value,ValueB>::MulT> ResultT;
331 output[2],output[3]);
347 #ifndef ThePEG_TEMPLATES_IN_CC_FILE 348 #include "LorentzRSSpinorBar.tcc" complex< Value > s2() const
Get second component.
std::complex< double > Complex
ThePEG code should use Complex for all complex scalars.
This file contains enumerations used by LorentzSpinor and LorentzSpinorBar classes.
The LorentzRotation class combine a SpinOneLorentzRotation and a spin SpinHalfLorentzRotation to prov...
This is the main namespace within which all identifiers in ThePEG are declared.
ostream & left(ostream &os)
Stream manipulator setting an ostream to left-adjust its ouput.
The LorentzSpinor class is designed to store a spinor.
complex< Value > s4() const
Get fourth component.
complex< Value > s3() const
Get third component.
complex< Value > s1() const
Get first component.
SpinorType
Enumeration to specify spinor type.
ostream & right(ostream &os)
Stream manipulator setting an ostream to right-adjust its ouput.
BinaryOpTraits should be specialized with typdefs called MulT and DivT which gives the type resulting...
The LorentzSpinorBar class implements the storage of a barred LorentzSpinor.