21#include "EvtGenBase/EvtPatches.hh"
25#include "EvtGenBase/EvtComplex.hh"
26#include "EvtGenBase/EvtDiracParticle.hh"
27#include "EvtGenBase/EvtVector4R.hh"
28#include "EvtGenBase/EvtPDL.hh"
29#include "EvtGenBase/EvtReport.hh"
30#include "EvtGenBase/EvtSpinDensity.hh"
31#include "EvtGenBase/EvtGammaMatrix.hh"
51 report(
ERROR,
"EvtGen") <<
"Error in EvtDiracParticle::init, part_n="
52 << part_n.
getId()<<endl;
63 _spinorParent[0]=
boostTo(_spinorRest[0],p4);
64 _spinorParent[1]=
boostTo(_spinorRest[1],p4);
75 _spinorParent[0]=
boostTo(_spinorRest[0],p4);
76 _spinorParent[1]=
boostTo(_spinorRest[1],p4);
96 spplus.
set(1.0,0.0,0.0,0.0);
97 spminus.
set(0.0,1.0,0.0,0.0);
99 spplus.
set(0.0,0.0,1.0,0.0);
100 spminus.
set(0.0,0.0,0.0,1.0);
107 for (
int i=0; i<2; i++) {
108 R.Set(0,i,(spplus*_spinorRest[i])/sqmt2);
109 R.Set(1,i,(spminus*_spinorRest[i])/sqmt2);
128 spplus.
set(1.0,0.0,0.0,0.0);
129 spminus.
set(0.0,1.0,0.0,0.0);
131 spplus.
set(0.0,0.0,1.0,0.0);
132 spminus.
set(0.0,0.0,0.0,1.0);
141 for (
int i=0; i<2; i++) {
142 R.Set(0,i,(spplus*_spinorRest[i])/sqmt2);
143 R.Set(1,i,(spminus*_spinorRest[i])/sqmt2);
EvtDiracSpinor boostTo(const EvtDiracSpinor &sp, const EvtVector4R p4)
ostream & report(Severity severity, const char *facility)
void init(EvtId part_n, const EvtVector4R &p4)
EvtSpinDensity rotateToHelicityBasis() const
virtual ~EvtDiracParticle()
void set(const EvtComplex &sp0, const EvtComplex &sp1, const EvtComplex &sp2, const EvtComplex &sp3)
void applyRotateEuler(double alpha, double beta, double gamma)
static int getStdHep(EvtId id)
const EvtVector4R & getP4() const
void setp(double e, double px, double py, double pz)
void setpart_num(EvtId particle_number)