Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

EvtMParticle Class Reference

#include <EvtMParticle.hh>

Inheritance diagram for EvtMParticle:

EvtMNode List of all members.

Public Member Functions

EvtSpinAmp amplitude (const vector< EvtVector4R > &product) const
EvtMNodeduplicate () const
 EvtMParticle (int label, const EvtId &id)
EvtVector4R get4vector (const vector< EvtVector4R > &product) const
EvtId getid () const
int getnchild () const
EvtMNodegetparent () const
const vector< int > & getresonance () const
int getspin () const
EvtSpinType::spintype getspintype () const
EvtComplex line (const vector< EvtVector4R > &product) const
void setparent (EvtMNode *parent)
virtual ~EvtMParticle ()

Protected Attributes

EvtId _id
EvtMNode_parent
vector< int > _resonance
int _twospin

Constructor & Destructor Documentation

EvtMParticle::EvtMParticle int  label,
const EvtId id
 

00006 {
00007     _id = id;
00008     _twospin = EvtSpinType::getSpin2( EvtPDL::getSpinType( id ) );
00009     _resonance.push_back( label );
00010 }

virtual EvtMParticle::~EvtMParticle  )  [inline, virtual]
 

00011 {}


Member Function Documentation

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

Implements EvtMNode.

00013 {
00014     vector<EvtSpinType::spintype> types( 2, getspintype() );
00015     EvtSpinAmp amp( types, EvtComplex( 0.0, 0.0 ) );
00016 
00017     for( int i=-_twospin; i<=_twospin; i+=2 )
00018         amp(i, i) = EvtComplex( 1.0, 0.0 );
00019 
00020     return amp;
00021 }

EvtMNode * EvtMParticle::duplicate  )  const [virtual]
 

Implements EvtMNode.

00024 {
00025     return new EvtMParticle( _resonance[0], _id );
00026 }

EvtVector4R EvtMNode::get4vector const vector< EvtVector4R > &  product  )  const [inherited]
 

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, inherited]
 

00038 { return _id; }

int EvtMParticle::getnchild  )  const [inline, virtual]
 

Implements EvtMNode.

00013 { return 0; }

EvtMNode* EvtMNode::getparent  )  const [inline, inherited]
 

00044 { return _parent; }

const vector<int>& EvtMNode::getresonance  )  const [inline, inherited]
 

00041 { return _resonance; }

int EvtMNode::getspin  )  const [inline, inherited]
 

00034 { return _twospin; }

EvtSpinType::spintype EvtMNode::getspintype  )  const [inline, inherited]
 

00035 { return EvtPDL::getSpinType( _id ); }

EvtComplex EvtMParticle::line const vector< EvtVector4R > &  product  )  const [inline, virtual]
 

Implements EvtMNode.

00016         { return EvtComplex(1.0, 0.0); }

void EvtMNode::setparent EvtMNode parent  )  [inline, inherited]
 

00043 { _parent = parent; }


Member Data Documentation

EvtId EvtMNode::_id [protected, inherited]
 

EvtMNode* EvtMNode::_parent [protected, inherited]
 

vector<int> EvtMNode::_resonance [protected, inherited]
 

int EvtMNode::_twospin [protected, inherited]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:07:25 2011 for BOSS6.5.5 by  doxygen 1.3.9.1