/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenBase/EvtMParticle.cc

Go to the documentation of this file.
00001 #include "EvtGenBase/EvtPatches.hh"
00002 #include "EvtGenBase/EvtMParticle.hh"
00003 #include "EvtGenBase/EvtSpinType.hh"
00004 
00005 EvtMParticle::EvtMParticle( int label, const EvtId& id )
00006 {
00007     _id = id;
00008     _twospin = EvtSpinType::getSpin2( EvtPDL::getSpinType( id ) );
00009     _resonance.push_back( label );
00010 }
00011 
00012 EvtSpinAmp EvtMParticle::amplitude( const vector<EvtVector4R> &product) const
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 }
00022 
00023 EvtMNode * EvtMParticle::duplicate() const
00024 {
00025     return new EvtMParticle( _resonance[0], _id );
00026 }

Generated on Tue Nov 29 23:12:13 2016 for BOSS_7.0.2 by  doxygen 1.4.7