LCOV - code coverage report
Current view: top level - TEvtGen/EvtGen/EvtGenBase - EvtMParticle.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 13 0.0 %
Date: 2016-06-14 17:26:59 Functions: 0 4 0.0 %

          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 : }

Generated by: LCOV version 1.11