BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtMParticle.cc
Go to the documentation of this file.
1#include "EvtGenBase/EvtPatches.hh"
2#include "EvtGenBase/EvtMParticle.hh"
3#include "EvtGenBase/EvtSpinType.hh"
4
5EvtMParticle::EvtMParticle( int label, const EvtId& id )
6{
7 _id = id;
9 _resonance.push_back( label );
10}
11
12EvtSpinAmp EvtMParticle::amplitude( const vector<EvtVector4R> &product) const
13{
14 vector<EvtSpinType::spintype> types( 2, getspintype() );
15 EvtSpinAmp amp( types, EvtComplex( 0.0, 0.0 ) );
16
17 for( int i=-_twospin; i<=_twospin; i+=2 )
18 amp(i, i) = EvtComplex( 1.0, 0.0 );
19
20 return amp;
21}
22
24{
25 return new EvtMParticle( _resonance[0], _id );
26}
EvtSpinAmp amplitude(const vector< EvtVector4R > &product) const
static EvtSpinType::spintype getSpinType(EvtId i)