BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtMParticle.cc
Go to the documentation of this file.
1#include "EvtMParticle.hh"
2#include "EvtPatches.hh"
3#include "EvtSpinType.hh"
4
5EvtMParticle::EvtMParticle( int label, const EvtId& id ) {
6 _id = id;
8 _resonance.push_back( label );
9}
10
11EvtSpinAmp EvtMParticle::amplitude( const vector<EvtVector4R>& product ) const {
12 vector<EvtSpinType::spintype> types( 2, getspintype() );
13 EvtSpinAmp amp( types, EvtComplex( 0.0, 0.0 ) );
14
15 for ( int i = -_twospin; i <= _twospin; i += 2 ) amp( i, i ) = EvtComplex( 1.0, 0.0 );
16
17 return amp;
18}
19
Definition EvtId.hh:27
int _twospin
Definition EvtMNode.hh:59
EvtId _id
Definition EvtMNode.hh:56
vector< int > _resonance
Definition EvtMNode.hh:63
EvtSpinType::spintype getspintype() const
Definition EvtMNode.hh:33
EvtSpinAmp amplitude(const vector< EvtVector4R > &product) const
EvtMNode * duplicate() const
EvtMParticle(int label, const EvtId &id)
static EvtSpinType::spintype getSpinType(EvtId i)
Definition EvtPDL.hh:66
static int getSpin2(spintype stype)