1 #include "EvtGenBase/EvtPatches.hh"
2 #include "EvtGenBase/EvtMBreitWigner.hh"
3 #include "EvtGenBase/EvtReport.hh"
8 EvtMBreitWigner::EvtMBreitWigner( const EvtId& id, const vector<string>& args )
10 if( args.size() != 0 ) {
11 report(ERROR, "EvtGen")<<"Unknown input arguments passed in to lineshape."<<endl;
16 _width = EvtPDL::getWidth( id );
17 _resmass = EvtPDL::getMeanMass( id );
20 EvtComplex EvtMBreitWigner::shape( const vector<EvtVector4R>& product ) const
22 static EvtComplex I(0.0, 1.0);
23 double mass = _node->get4vector(product).mass();
25 return sqrt(_width/( EvtConst::twoPi )) * 1/( mass - _resmass - I * _width/2 );
29 EvtMLineShape * EvtMBreitWigner::duplicate() const
32 EvtMLineShape* tmp=new EvtMBreitWigner( _id, args );