EvtMNode Class Reference

#include <EvtMNode.hh>

Inheritance diagram for EvtMNode:

EvtMParticle EvtMRes EvtMHelAmp List of all members.

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 (  )  [inline]

Definition at line 21 of file EvtMNode.hh.

00021 {}

virtual EvtMNode::~EvtMNode (  )  [inline, virtual]

Definition at line 22 of file EvtMNode.hh.

00022 {};


Member Function Documentation

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]

Definition at line 38 of file EvtMNode.hh.

References _id.

00038 { return _id; }

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]

Definition at line 41 of file EvtMNode.hh.

References _resonance.

00041 { return _resonance; }

int EvtMNode::getspin (  )  const [inline]

Definition at line 34 of file EvtMNode.hh.

References _twospin.

00034 { return _twospin; }

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]

Definition at line 43 of file EvtMNode.hh.

References _parent.

00043 { _parent = parent; }


Member Data Documentation

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().


Generated on Tue Nov 29 23:19:07 2016 for BOSS_7.0.2 by  doxygen 1.4.7