BOSS 7.0.3
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 ()
 
virtual EvtSpinAmp amplitude (const vector< EvtVector4R > &product) const =0
 
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
 
virtual int getnchild () const =0
 
virtual EvtComplex line (const vector< EvtVector4R > &product) const =0
 
virtual EvtMNodeduplicate () const =0
 

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.

6{
7 _id = id;
9 _resonance.push_back( label );
10}
int _twospin
Definition: EvtMNode.hh:61
EvtId _id
Definition: EvtMNode.hh:58
vector< int > _resonance
Definition: EvtMNode.hh:65
static EvtSpinType::spintype getSpinType(EvtId i)
Definition: EvtPDL.hh:61
static int getSpin2(spintype stype)
Definition: EvtSpinType.hh:34

◆ ~EvtMParticle()

virtual EvtMParticle::~EvtMParticle ( )
inlinevirtual

Definition at line 11 of file EvtMParticle.hh.

11{}

Member Function Documentation

◆ amplitude()

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

Implements EvtMNode.

Definition at line 12 of file EvtMParticle.cc.

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

◆ duplicate()

EvtMNode * EvtMParticle::duplicate ( ) const
virtual

Implements EvtMNode.

Definition at line 23 of file EvtMParticle.cc.

24{
25 return new EvtMParticle( _resonance[0], _id );
26}

◆ getnchild()

int EvtMParticle::getnchild ( ) const
inlinevirtual

Implements EvtMNode.

Definition at line 13 of file EvtMParticle.hh.

13{ return 0; }

◆ line()

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

Implements EvtMNode.

Definition at line 15 of file EvtMParticle.hh.

16 { return EvtComplex(1.0, 0.0); }

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