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

#include <EvtMParticle.hh>

Inheritance diagram for EvtMParticle:

Public Member Functions

 EvtMParticle (int label, const EvtId &id)
virtual ~EvtMParticle ()
EvtSpinAmp amplitude (const vector< EvtVector4R > &product) const
int getnchild () const
EvtComplex line (const vector< EvtVector4R > &product) const
EvtMNodeduplicate () const
Public Member Functions inherited from EvtMNode
 EvtMNode ()
virtual ~EvtMNode ()
EvtVector4R get4vector (const vector< EvtVector4R > &product) const
int getspin () const
EvtSpinType::spintype getspintype () const
EvtId getid () const
const vector< int > & getresonance () const
void setparent (EvtMNode *parent)
EvtMNodegetparent () const

Additional Inherited Members

Protected Attributes inherited from EvtMNode
EvtId _id
int _twospin
vector< int > _resonance
EvtMNode_parent

Detailed Description

Definition at line 6 of file EvtMParticle.hh.

Constructor & Destructor Documentation

◆ EvtMParticle()

EvtMParticle::EvtMParticle ( int label,
const EvtId & id )

Definition at line 5 of file EvtMParticle.cc.

5 {
6 _id = id;
8 _resonance.push_back( label );
9}
int _twospin
Definition EvtMNode.hh:59
EvtId _id
Definition EvtMNode.hh:56
vector< int > _resonance
Definition EvtMNode.hh:63
static EvtSpinType::spintype getSpinType(EvtId i)
Definition EvtPDL.hh:66
static int getSpin2(spintype stype)

Referenced by duplicate().

◆ ~EvtMParticle()

virtual EvtMParticle::~EvtMParticle ( )
inlinevirtual

Definition at line 10 of file EvtMParticle.hh.

10{}

Member Function Documentation

◆ amplitude()

EvtSpinAmp EvtMParticle::amplitude ( const vector< EvtVector4R > & product) const
virtual

Implements EvtMNode.

Definition at line 11 of file EvtMParticle.cc.

11 {
12 vector<EvtSpinType::spintype> types( 2, getspintype() );
13 EvtSpinAmp amp( types, EvtComplex( 0.0, 0.0 ) );
14
15 for ( int i = -_twospin; i <= _twospin; i += 2 ) amp( i, i ) = EvtComplex( 1.0, 0.0 );
16
17 return amp;
18}
EvtSpinType::spintype getspintype() const
Definition EvtMNode.hh:33

◆ duplicate()

EvtMNode * EvtMParticle::duplicate ( ) const
virtual

Implements EvtMNode.

Definition at line 20 of file EvtMParticle.cc.

20{ return new EvtMParticle( _resonance[0], _id ); }
EvtMParticle(int label, const EvtId &id)

◆ getnchild()

int EvtMParticle::getnchild ( ) const
inlinevirtual

Implements EvtMNode.

Definition at line 12 of file EvtMParticle.hh.

12{ return 0; }

◆ line()

EvtComplex EvtMParticle::line ( const vector< EvtVector4R > & product) const
inlinevirtual

Implements EvtMNode.

Definition at line 14 of file EvtMParticle.hh.

14 {
15 return EvtComplex( 1.0, 0.0 );
16 }

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