#include <EvtBreitWignerPdf.hh>
|
| EvtBreitWignerPdf (double min, double max, double m0, double g0) |
|
| EvtBreitWignerPdf (const EvtBreitWignerPdf &other) |
|
virtual | ~EvtBreitWignerPdf () |
|
double | pdf (const EvtPoint1D &x) const |
|
EvtPdf< EvtPoint1D > * | clone () const |
|
double | pdfIntegral (double m) const |
|
double | pdfIntegralInverse (double x) const |
|
double | m0 () const |
|
double | g0 () const |
|
| EvtIntegPdf1D (double min, double max) |
|
| EvtIntegPdf1D (const EvtIntegPdf1D &) |
|
virtual | ~EvtIntegPdf1D () |
|
virtual double | pdfIntegral (double x) const =0 |
|
virtual double | pdfIntegralInverse (double x) const =0 |
|
virtual EvtValError | compute_integral () const |
|
virtual EvtPoint1D | randomPoint () |
|
| EvtPdf () |
|
| EvtPdf (const EvtPdf &other) |
|
virtual | ~EvtPdf () |
|
virtual EvtPdf< EvtPoint1D > * | clone () const=0 |
|
double | evaluate (const EvtPoint1D &p) const |
|
EvtPdfMax< EvtPoint1D > | findMax (const EvtPdf< EvtPoint1D > &pc, int N) |
|
EvtValError | findGenEff (const EvtPdf< EvtPoint1D > &pc, int N, int nFindMax) |
|
void | setItg (EvtValError itg) |
|
EvtValError | getItg () const |
|
EvtValError | getItg (int N) const |
|
virtual EvtValError | compute_integral () const |
|
virtual EvtValError | compute_integral (int N) const |
|
EvtValError | compute_mc_integral (const EvtPdf< EvtPoint1D > &pc, int N) |
|
EvtPredGen< EvtPdfGen< EvtPoint1D >, EvtPdfPred< EvtPoint1D > > | accRejGen (const EvtPdf< EvtPoint1D > &pc, int nMax, double factor=1.) |
|
virtual EvtPoint1D | randomPoint () |
|
Definition at line 17 of file EvtBreitWignerPdf.hh.
◆ EvtBreitWignerPdf() [1/2]
EvtBreitWignerPdf::EvtBreitWignerPdf |
( |
double |
min, |
|
|
double |
max, |
|
|
double |
m0, |
|
|
double |
g0 |
|
) |
| |
◆ EvtBreitWignerPdf() [2/2]
◆ ~EvtBreitWignerPdf()
EvtBreitWignerPdf::~EvtBreitWignerPdf |
( |
| ) |
|
|
virtual |
◆ clone()
◆ g0()
double EvtBreitWignerPdf::g0 |
( |
| ) |
const |
|
inline |
◆ m0()
double EvtBreitWignerPdf::m0 |
( |
| ) |
const |
|
inline |
◆ pdf()
double EvtBreitWignerPdf::pdf |
( |
const EvtPoint1D & |
x | ) |
const |
|
virtual |
Implements EvtPdf< EvtPoint1D >.
Definition at line 35 of file EvtBreitWignerPdf.cc.
36{
38 if((0 == (m - _m0)) && (0. == _g0)) {
39
40 printf("Delta function Breit-Wigner\n");
41 assert(0);
42 }
43
45
46 return ret;
47}
static const double twoPi
◆ pdfIntegral()
double EvtBreitWignerPdf::pdfIntegral |
( |
double |
m | ) |
const |
|
virtual |
Implements EvtIntegPdf1D.
Definition at line 50 of file EvtBreitWignerPdf.cc.
51{
52 double itg = 0;
53 if(_g0 == 0) {
54
55 if(m > _m0) itg = 1.;
56 else
57 if(m < _m0) itg = 0.;
58 else
59 itg = 0.5;
60 }
62
63 return itg;
64}
◆ pdfIntegralInverse()
double EvtBreitWignerPdf::pdfIntegralInverse |
( |
double |
x | ) |
const |
|
virtual |
Implements EvtIntegPdf1D.
Definition at line 67 of file EvtBreitWignerPdf.cc.
68{
69 if(x < 0 || x > 1) {
70
71 printf("Invalid integral value %f\n",x);
72 assert(0);
73 }
74
75 double m = _m0;
77
78 return m;
79}
double tan(const BesAngle a)
The documentation for this class was generated from the following files: