BOSS 8.0.0
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 20 of file EvtMNode.hh.

20{}

Referenced by EvtMHelAmp::duplicate(), duplicate(), EvtMParticle::duplicate(), getparent(), and setparent().

◆ ~EvtMNode()

virtual EvtMNode::~EvtMNode ( )
inlinevirtual

Definition at line 21 of file EvtMNode.hh.

21{};

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.

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

Referenced by EvtMHelAmp::amplitude().

◆ getid()

EvtId EvtMNode::getid ( ) const
inline

Definition at line 36 of file EvtMNode.hh.

36{ return _id; }
EvtId _id
Definition EvtMNode.hh:56

◆ getnchild()

virtual int EvtMNode::getnchild ( ) const
pure virtual

Implemented in EvtMParticle, and EvtMRes.

◆ getparent()

EvtMNode * EvtMNode::getparent ( ) const
inline

Definition at line 42 of file EvtMNode.hh.

42{ return _parent; }
EvtMNode * _parent
Definition EvtMNode.hh:66

◆ getresonance()

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

Definition at line 39 of file EvtMNode.hh.

39{ return _resonance; }

◆ getspin()

int EvtMNode::getspin ( ) const
inline

Definition at line 32 of file EvtMNode.hh.

32{ return _twospin; }
int _twospin
Definition EvtMNode.hh:59

◆ getspintype()

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

Definition at line 33 of file EvtMNode.hh.

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

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 41 of file EvtMNode.hh.

41{ _parent = parent; }

Member Data Documentation

◆ _id

◆ _parent

EvtMNode* EvtMNode::_parent
protected

Definition at line 66 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: