BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtStringParticle Class Reference

#include <EvtStringParticle.hh>

Inheritance diagram for EvtStringParticle:

Public Member Functions

 EvtStringParticle ()
virtual ~EvtStringParticle ()
void init (EvtId id, const EvtVector4R &p4)
void initPartons (int npartons, EvtVector4R *p4partons, EvtId *idpartons)
int getNPartons ()
EvtId getIdParton (int i)
EvtVector4R getP4Parton (int i)
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
void addDaug (EvtParticle *node)
void decay ()
void deleteTree ()
void deleteDaughters (bool keepChannel=false)
void setChannel (int i)
void setGeneratorFlag (int flag)
int getGeneratorFlag ()
void setIntFlag (std::vector< int > vi)
std::vector< int > getIntFlag ()
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)
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

Static Public Attributes inherited from EvtParticle
static int _NextLevelDauNum = 0
static EvtId _NextLevelId [20]
static EvtVector4R _NextLevelP4 [20]
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 29 of file EvtStringParticle.hh.

Constructor & Destructor Documentation

◆ EvtStringParticle()

EvtStringParticle::EvtStringParticle ( )

Definition at line 38 of file EvtStringParticle.cc.

38 {
39
40 _p4partons = 0;
41 _idpartons = 0;
42 _npartons = 0;
43
44 return;
45}

◆ ~EvtStringParticle()

EvtStringParticle::~EvtStringParticle ( )
virtual

Definition at line 28 of file EvtStringParticle.cc.

28 {
29
30 if ( _npartons != 0 )
31 {
32
33 delete[] _p4partons;
34 delete[] _idpartons;
35 }
36}

Member Function Documentation

◆ getIdParton()

EvtId EvtStringParticle::getIdParton ( int i)

Definition at line 73 of file EvtStringParticle.cc.

73{ return _idpartons[i]; }

◆ getNPartons()

int EvtStringParticle::getNPartons ( )

Definition at line 71 of file EvtStringParticle.cc.

71{ return _npartons; }

◆ getP4Parton()

EvtVector4R EvtStringParticle::getP4Parton ( int i)

Definition at line 75 of file EvtStringParticle.cc.

75{ return _p4partons[i]; }

◆ init()

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

Initialiaze particle with id and 4momentum.

Implements EvtParticle.

Definition at line 47 of file EvtStringParticle.cc.

47 {
48
49 _validP4 = true;
50 setp( p4 );
51 setpart_num( id );
52}
void setp(double e, double px, double py, double pz)
void setpart_num(EvtId particle_number)

Referenced by EvtParticleFactory::particleFactory().

◆ initPartons()

void EvtStringParticle::initPartons ( int npartons,
EvtVector4R * p4partons,
EvtId * idpartons )

Definition at line 54 of file EvtStringParticle.cc.

54 {
55
56 _p4partons = new EvtVector4R[npartons];
57 _idpartons = new EvtId[npartons];
58
59 int i;
60
61 _npartons = npartons;
62
63 for ( i = 0; i < npartons; i++ )
64 {
65
66 _p4partons[i] = p4partons[i];
67 _idpartons[i] = idpartons[i];
68 }
69}

◆ rotateToHelicityBasis() [1/2]

EvtSpinDensity EvtStringParticle::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 77 of file EvtStringParticle.cc.

77 {
78
79 report( ERROR, "EvtGen" ) << "rotateToHelicityBasis not implemented for strin particle.";
80 report( ERROR, "EvtGen" ) << "Will terminate execution.";
81
82 ::abort();
83
84 EvtSpinDensity rho;
85 return rho;
86}
ostream & report(Severity severity, const char *facility)
Definition EvtReport.cc:34
@ ERROR
Definition EvtReport.hh:49

◆ rotateToHelicityBasis() [2/2]

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

Implements EvtParticle.

Definition at line 88 of file EvtStringParticle.cc.

89 {
90
91 report( ERROR, "EvtGen" )
92 << "rotateToHelicityBasis(alpha,beta,gamma) not implemented for string particle.";
93 report( ERROR, "EvtGen" ) << "Will terminate execution.";
94
95 ::abort();
96
97 EvtSpinDensity rho;
98 return rho;
99}

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