BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtMNode Class Referenceabstract

#include <EvtMNode.hh>

+ Inheritance diagram for EvtMNode:

Public Member Functions

 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
 

Protected Attributes

EvtId _id
 
int _twospin
 
vector< int > _resonance
 
EvtMNode_parent
 

Detailed Description

Definition at line 17 of file EvtMNode.hh.

Constructor & Destructor Documentation

◆ EvtMNode()

EvtMNode::EvtMNode ( )
inline

Definition at line 21 of file EvtMNode.hh.

21{}

◆ ~EvtMNode()

virtual EvtMNode::~EvtMNode ( )
inlinevirtual

Definition at line 22 of file EvtMNode.hh.

22{};

Member Function Documentation

◆ amplitude()

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

Implemented in EvtMHelAmp, and EvtMParticle.

◆ duplicate()

virtual EvtMNode * EvtMNode::duplicate ( ) const
pure virtual

Implemented in EvtMHelAmp, and EvtMParticle.

◆ get4vector()

EvtVector4R EvtMNode::get4vector ( const vector< EvtVector4R > &  product) const

Definition at line 4 of file EvtMNode.cc.

6{
7
8 EvtVector4R res(0.0, 0.0, 0.0, 0.0);
9 vector<int>::const_iterator iter;
10
11 for( iter = _resonance.begin(); iter != _resonance.end(); ++iter )
12 res += product[ *iter ];
13
14 return res;
15
16}
EvtStreamInputIterator< typename Generator::result_type > iter(Generator gen, int N=0)
vector< int > _resonance
Definition: EvtMNode.hh:65

Referenced by EvtMHelAmp::amplitude(), and EvtMBreitWigner::shape().

◆ getid()

EvtId EvtMNode::getid ( ) const
inline

Definition at line 38 of file EvtMNode.hh.

38{ return _id; }
EvtId _id
Definition: EvtMNode.hh:58

◆ getnchild()

virtual int EvtMNode::getnchild ( ) const
pure virtual

Implemented in EvtMParticle, and EvtMRes.

◆ getparent()

EvtMNode * EvtMNode::getparent ( ) const
inline

Definition at line 44 of file EvtMNode.hh.

44{ return _parent; }
EvtMNode * _parent
Definition: EvtMNode.hh:68

Referenced by EvtMHelAmp::amplitude().

◆ getresonance()

const vector< int > & EvtMNode::getresonance ( ) const
inline

Definition at line 41 of file EvtMNode.hh.

41{ return _resonance; }

◆ getspin()

int EvtMNode::getspin ( ) const
inline

Definition at line 34 of file EvtMNode.hh.

34{ return _twospin; }
int _twospin
Definition: EvtMNode.hh:61

◆ getspintype()

EvtSpinType::spintype EvtMNode::getspintype ( ) const
inline

Definition at line 35 of file EvtMNode.hh.

35{ return EvtPDL::getSpinType( _id ); }
static EvtSpinType::spintype getSpinType(EvtId i)
Definition: EvtPDL.hh:61

Referenced by EvtMHelAmp::amplitude(), EvtMParticle::amplitude(), and EvtMHelAmp::EvtMHelAmp().

◆ line()

virtual EvtComplex EvtMNode::line ( const vector< EvtVector4R > &  product) const
pure virtual

Implemented in EvtMParticle, and EvtMRes.

◆ setparent()

void EvtMNode::setparent ( EvtMNode parent)
inline

Definition at line 43 of file EvtMNode.hh.

43{ _parent = parent; }

Member Data Documentation

◆ _id

◆ _parent

EvtMNode* EvtMNode::_parent
protected

Definition at line 68 of file EvtMNode.hh.

Referenced by EvtMHelAmp::amplitude(), EvtMHelAmp::EvtMHelAmp(), getparent(), and setparent().

◆ _resonance

vector<int> EvtMNode::_resonance
protected

◆ _twospin

int EvtMNode::_twospin
protected

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