#include <EvtMParticle.hh>
Inheritance diagram for EvtMParticle:
Public Member Functions | |
EvtSpinAmp | amplitude (const vector< EvtVector4R > &product) const |
EvtMNode * | duplicate () const |
EvtMParticle (int label, const EvtId &id) | |
EvtVector4R | get4vector (const vector< EvtVector4R > &product) const |
EvtId | getid () const |
int | getnchild () const |
EvtMNode * | getparent () 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 |
|
00006 { 00007 _id = id; 00008 _twospin = EvtSpinType::getSpin2( EvtPDL::getSpinType( id ) ); 00009 _resonance.push_back( label ); 00010 }
|
|
00011 {}
|
|
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 }
|
|
Implements EvtMNode. 00024 { 00025 return new EvtMParticle( _resonance[0], _id ); 00026 }
|
|
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 }
|
|
00038 { return _id; }
|
|
Implements EvtMNode. 00013 { return 0; }
|
|
00044 { return _parent; }
|
|
00041 { return _resonance; }
|
|
00034 { return _twospin; }
|
|
00035 { return EvtPDL::getSpinType( _id ); }
|
|
Implements EvtMNode. 00016 { return EvtComplex(1.0, 0.0); }
|
|
00043 { _parent = parent; }
|
|
|
|
|
|
|
|
|