#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) |
EvtMNode * | getparent () const |
virtual int | getnchild () const =0 |
virtual EvtComplex | line (const vector< EvtVector4R > &product) const =0 |
virtual EvtMNode * | duplicate () const =0 |
Protected Attributes | |
EvtId | _id |
int | _twospin |
vector< int > | _resonance |
EvtMNode * | _parent |
Definition at line 17 of file EvtMNode.hh.
EvtMNode::EvtMNode | ( | ) | [inline] |
virtual EvtMNode::~EvtMNode | ( | ) | [inline, virtual] |
virtual EvtSpinAmp EvtMNode::amplitude | ( | const vector< EvtVector4R > & | product | ) | const [pure virtual] |
Implemented in EvtMHelAmp, and EvtMParticle.
virtual EvtMNode* EvtMNode::duplicate | ( | ) | const [pure virtual] |
Implemented in EvtMHelAmp, and EvtMParticle.
EvtVector4R EvtMNode::get4vector | ( | const vector< EvtVector4R > & | product | ) | const |
Definition at line 4 of file EvtMNode.cc.
References _resonance, and iter().
Referenced by EvtMHelAmp::amplitude(), and EvtMBreitWigner::shape().
00006 { 00007 00008 EvtVector4R res(0.0, 0.0, 0.0, 0.0); 00009 vector<int>::const_iterator iter; 00010 00011 for( iter = _resonance.begin(); iter != _resonance.end(); ++iter ) 00012 res += product[ *iter ]; 00013 00014 return res; 00015 00016 }
EvtId EvtMNode::getid | ( | ) | const [inline] |
virtual int EvtMNode::getnchild | ( | ) | const [pure virtual] |
Implemented in EvtMParticle, and EvtMRes.
EvtMNode* EvtMNode::getparent | ( | ) | const [inline] |
Definition at line 44 of file EvtMNode.hh.
References _parent.
Referenced by EvtMHelAmp::amplitude().
00044 { return _parent; }
const vector<int>& EvtMNode::getresonance | ( | ) | const [inline] |
int EvtMNode::getspin | ( | ) | const [inline] |
EvtSpinType::spintype EvtMNode::getspintype | ( | ) | const [inline] |
Definition at line 35 of file EvtMNode.hh.
References _id, and EvtPDL::getSpinType().
Referenced by EvtMParticle::amplitude(), EvtMHelAmp::amplitude(), and EvtMHelAmp::EvtMHelAmp().
00035 { return EvtPDL::getSpinType( _id ); }
virtual EvtComplex EvtMNode::line | ( | const vector< EvtVector4R > & | product | ) | const [pure virtual] |
Implemented in EvtMParticle, and EvtMRes.
void EvtMNode::setparent | ( | EvtMNode * | parent | ) | [inline] |
EvtId EvtMNode::_id [protected] |
Definition at line 58 of file EvtMNode.hh.
Referenced by EvtMParticle::duplicate(), EvtMHelAmp::duplicate(), EvtMHelAmp::EvtMHelAmp(), EvtMParticle::EvtMParticle(), getid(), and getspintype().
EvtMNode* EvtMNode::_parent [protected] |
Definition at line 68 of file EvtMNode.hh.
Referenced by EvtMHelAmp::amplitude(), EvtMHelAmp::EvtMHelAmp(), getparent(), and setparent().
vector<int> EvtMNode::_resonance [protected] |
Definition at line 65 of file EvtMNode.hh.
Referenced by EvtMParticle::duplicate(), EvtMHelAmp::EvtMHelAmp(), EvtMParticle::EvtMParticle(), get4vector(), and getresonance().
int EvtMNode::_twospin [protected] |
Definition at line 61 of file EvtMNode.hh.
Referenced by EvtMParticle::amplitude(), EvtMHelAmp::amplitude(), EvtMHelAmp::EvtMHelAmp(), EvtMParticle::EvtMParticle(), and getspin().