BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtHighSpinParticle Class Reference

#include <EvtHighSpinParticle.hh>

+ Inheritance diagram for EvtHighSpinParticle:

Public Member Functions

 EvtHighSpinParticle ()
 
virtual ~EvtHighSpinParticle ()
 
void init (EvtId id, const EvtVector4R &p)
 
EvtSpinDensity rotateToHelicityBasis () const
 
EvtSpinDensity rotateToHelicityBasis (double alpha, double beta, double gamma) const
 
- Public Member Functions inherited from EvtParticle
 EvtParticle ()
 
virtual ~EvtParticle ()
 
virtual EvtVector4C epsParent (int i) const
 
virtual EvtVector4C eps (int i) const
 
virtual EvtVector4C epsParentPhoton (int i)
 
virtual EvtVector4C epsPhoton (int i)
 
virtual EvtDiracSpinor spParent (int) const
 
virtual EvtDiracSpinor sp (int) const
 
virtual EvtDiracSpinor spParentNeutrino () const
 
virtual EvtDiracSpinor spNeutrino () const
 
virtual EvtTensor4C epsTensorParent (int i) const
 
virtual EvtTensor4C epsTensor (int i) const
 
virtual void init (EvtId part_n, const EvtVector4R &p4)=0
 
void addDaug (EvtParticle *node)
 
void decay ()
 
void deleteTree ()
 
void deleteDaughters (bool keepChannel=false)
 
void setChannel (int i)
 
void setGeneratorFlag (int flag)
 
int getGeneratorFlag ()
 
void makeDaughters (int ndaug, EvtId *id)
 
double initializePhaseSpace (int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
 
EvtParticlegetDaug (int i)
 
EvtParticlenextIter (EvtParticle *rootOfTree=0)
 
void makeStdHep (EvtStdHep &stdhep, EvtSecondary &secondary, EvtId *stable_parent_ihep)
 
void makeStdHep (EvtStdHep &stdhep)
 
EvtVector4R getP4Lab ()
 
EvtVector4R getP4Restframe ()
 
EvtVector4R get4Pos ()
 
EvtParticlegetParent ()
 
void insertDaugPtr (int idaug, EvtParticle *partptr)
 
double mass () const
 
int firstornot () const
 
void setFirstOrNot ()
 
void resetFirstOrNot ()
 
EvtId getId () const
 
EvtSpinType::spintype getSpinType () const
 
int getSpinStates () const
 
const EvtVector4RgetP4 () const
 
void setP4 (const EvtVector4R &p4)
 
int getChannel () const
 
int getNDaug () const
 
void resetNDaug ()
 
void printTree () const
 
void printTreeRec (int level) const
 
std::string writeTreeRec (std::string) const
 
void dumpTree () const
 
void dumpTreeRec (int level, int dj) const
 
std::string treeStr () const
 
std::string treeStrRec (int level) const
 
void printParticle () const
 
void setLifetime (double tau)
 
void setLifetime ()
 
double getLifetime ()
 
void setDiagonalSpinDensity ()
 
void setVectorSpinDensity ()
 
void setPolarizedSpinDensity (double r00, double r11, double r22)
 
void setSpinDensityForward (const EvtSpinDensity &rho)
 
void setSpinDensityForwardHelicityBasis (const EvtSpinDensity &rho)
 
void setSpinDensityForwardHelicityBasis (const EvtSpinDensity &rho, double alpha, double beta, double gamma)
 
virtual EvtSpinDensity rotateToHelicityBasis () const =0
 
virtual EvtSpinDensity rotateToHelicityBasis (double alpha, double beta, double gamma) const =0
 
EvtSpinDensity getSpinDensityForward ()
 
void setSpinDensityBackward (const EvtSpinDensity &rho)
 
EvtSpinDensity getSpinDensityBackward ()
 
void noLifeTime ()
 
void setId (EvtId id)
 
void initDecay (bool useMinMass=false)
 
void generateMassTree ()
 
double compMassProb ()
 
void setMass (double m)
 
bool isInitialized ()
 
bool hasValidP4 ()
 
bool isDecayed ()
 
double * decayProb ()
 
void setDecayProb (double p)
 
void setInclusiveMode (int im)
 
int getInclusiveMode ()
 

Additional Inherited Members

- Protected Member Functions inherited from EvtParticle
void setp (double e, double px, double py, double pz)
 
void setp (const EvtVector4R &p4)
 
void setpart_num (EvtId particle_number)
 
- Protected Attributes inherited from EvtParticle
bool _validP4
 

Detailed Description

Definition at line 28 of file EvtHighSpinParticle.hh.

Constructor & Destructor Documentation

◆ EvtHighSpinParticle()

EvtHighSpinParticle::EvtHighSpinParticle ( )
inline

Definition at line 32 of file EvtHighSpinParticle.hh.

32{}

◆ ~EvtHighSpinParticle()

EvtHighSpinParticle::~EvtHighSpinParticle ( )
virtual

Definition at line 33 of file EvtHighSpinParticle.cc.

33{}

Member Function Documentation

◆ init()

void EvtHighSpinParticle::init ( EvtId  part_n,
const EvtVector4R p4 
)
virtual

Initialiaze particle with id and 4momentum.

Implements EvtParticle.

Definition at line 36 of file EvtHighSpinParticle.cc.

36 {
37
38 _validP4=true;
39 setp(p4);
40 setpart_num(id);
41
43
44}
void setLifetime()
Definition: EvtParticle.cc:93
void setp(double e, double px, double py, double pz)
Definition: EvtParticle.hh:384
void setpart_num(EvtId particle_number)
Definition: EvtParticle.hh:386

Referenced by EvtParticleFactory::particleFactory().

◆ rotateToHelicityBasis() [1/2]

EvtSpinDensity EvtHighSpinParticle::rotateToHelicityBasis ( ) const
virtual

Returns a rotation matrix need to rotate the basis state to the helicity basis. The EvtSpinDensity matrix is just use as a matrix here. This function is to be implemented in each derived class.

Implements EvtParticle.

Definition at line 46 of file EvtHighSpinParticle.cc.

46 {
47
49
51 R.SetDiag(n);
52
53 return R;
54
55}
const Int_t n
static EvtSpinType::spintype getSpinType(EvtId i)
Definition: EvtPDL.hh:61
EvtId getId() const
Definition: EvtParticle.cc:113
static int getSpinStates(spintype stype)
Definition: EvtSpinType.hh:64
complex_t R(double Q2, double M2, double G, double Mp2, double Mm2)
Definition: TUtil.h:27

◆ rotateToHelicityBasis() [2/2]

EvtSpinDensity EvtHighSpinParticle::rotateToHelicityBasis ( double  alpha,
double  beta,
double  gamma 
) const
virtual

Implements EvtParticle.

Definition at line 59 of file EvtHighSpinParticle.cc.

61 {
62
63 int i,j;
64
66
68 R.SetDim(n);
69
71
72 assert(n==J2+1);
73
74 int *lambda2;
75
76 lambda2=new int[J2+1];
77
78 for(i=0;i<J2+1;i++){
79 lambda2[i]=J2-i*2;
80 }
81
82
83 for(i=0;i<n;i++){
84 for(j=0;j<n;j++){
85 R.Set(i,j,EvtdFunction::d(J2,lambda2[j],lambda2[i],-beta)*
86 exp(EvtComplex(0.0,-0.5*(alpha*lambda2[i]-gamma*lambda2[j]))));
87 }
88 }
89
90 delete [] lambda2;
91
92 return R;
93
94
95}
EvtComplex exp(const EvtComplex &c)
Definition: EvtComplex.hh:252
const double alpha
static int getSpin2(spintype stype)
Definition: EvtSpinType.hh:34
static double d(int j, int m1, int m2, double theta)
Definition: EvtdFunction.cc:30

The documentation for this class was generated from the following files: