25 :
EvtIntegPdf1D( other ), _m0( other._m0 ), _g0( other._g0 ) {}
31 if ( ( 0 == ( m - _m0 ) ) && ( 0. == _g0 ) )
34 printf(
"Delta function Breit-Wigner\n" );
38 double ret = _g0 /
EvtConst::twoPi / ( ( m - _m0 ) * ( m - _m0 ) + _g0 * _g0 / 4 );
48 if ( m > _m0 ) itg = 1.;
49 else if ( m < _m0 ) itg = 0.;
52 else itg = atan( ( m - _m0 ) / ( _g0 / 2. ) ) /
EvtConst::pi + 0.5;
61 printf(
"Invalid integral value %f\n", x );
66 if ( _g0 != 0 ) m = _m0 + ( _g0 / 2. ) *
tan(
EvtConst::pi * ( x - 0.5 ) );
double tan(const BesAngle a)
double pdf(const EvtPoint1D &x) const
EvtBreitWignerPdf(double min, double max, double m0, double g0)
double pdfIntegral(double m) const
double pdfIntegralInverse(double x) const
virtual ~EvtBreitWignerPdf()
static const double twoPi
EvtIntegPdf1D(double min, double max)