Line data Source code
1 : #include "EvtGenBase/EvtPatches.hh"
2 : #include "EvtGenBase/EvtMParticle.hh"
3 : #include "EvtGenBase/EvtSpinType.hh"
4 :
5 0 : EvtMParticle::EvtMParticle( int label, const EvtId& id )
6 0 : {
7 0 : _id = id;
8 0 : _twospin = EvtSpinType::getSpin2( EvtPDL::getSpinType( id ) );
9 0 : _resonance.push_back( label );
10 0 : }
11 :
12 : EvtSpinAmp EvtMParticle::amplitude( const vector<EvtVector4R> &/*product*/) const
13 : {
14 0 : vector<EvtSpinType::spintype> types( 2, getspintype() );
15 0 : EvtSpinAmp amp( types, EvtComplex( 0.0, 0.0 ) );
16 :
17 0 : for( int i=-_twospin; i<=_twospin; i+=2 )
18 0 : amp(i, i) = EvtComplex( 1.0, 0.0 );
19 :
20 : return amp;
21 0 : }
22 :
23 : EvtMNode * EvtMParticle::duplicate() const
24 : {
25 0 : return new EvtMParticle( _resonance[0], _id );
26 0 : }
|