BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtIntegPdf1D Class Referenceabstract

#include <EvtIntegPdf1D.hh>

Inheritance diagram for EvtIntegPdf1D:

Public Member Functions

 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 ()
Public Member Functions inherited from EvtPdf< EvtPoint1D >
 EvtPdf ()
virtual ~EvtPdf ()
virtual EvtPdf< EvtPoint1D > * clone () const=0
double evaluate (const EvtPoint1D &p) const
EvtPdfMax< EvtPoint1DfindMax (const EvtPdf< EvtPoint1D > &pc, int N)
EvtValError findGenEff (const EvtPdf< EvtPoint1D > &pc, int N, int nFindMax)
void setItg (EvtValError itg)
EvtValError getItg () 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.)

Protected Attributes

double _min
double _max
Protected Attributes inherited from EvtPdf< EvtPoint1D >
EvtValError _itg

Additional Inherited Members

Protected Member Functions inherited from EvtPdf< EvtPoint1D >
virtual double pdf (const EvtPoint1D &) const=0

Detailed Description

Definition at line 18 of file EvtIntegPdf1D.hh.

Constructor & Destructor Documentation

◆ EvtIntegPdf1D() [1/2]

EvtIntegPdf1D::EvtIntegPdf1D ( double min,
double max )

◆ EvtIntegPdf1D() [2/2]

EvtIntegPdf1D::EvtIntegPdf1D ( const EvtIntegPdf1D & other)

Definition at line 21 of file EvtIntegPdf1D.cc.

22 : EvtPdf<EvtPoint1D>( other ), _min( other._min ), _max( other._max ) {}
Index other(Index i, Index j)

◆ ~EvtIntegPdf1D()

EvtIntegPdf1D::~EvtIntegPdf1D ( )
virtual

Definition at line 24 of file EvtIntegPdf1D.cc.

24{}

Member Function Documentation

◆ compute_integral()

EvtValError EvtIntegPdf1D::compute_integral ( ) const
virtual

Reimplemented from EvtPdf< EvtPoint1D >.

Definition at line 26 of file EvtIntegPdf1D.cc.

26 {
27 double x1 = pdfIntegral( _min );
28 double x2 = pdfIntegral( _max );
29 return EvtValError( x2 - x1, 0. );
30}
virtual double pdfIntegral(double x) const =0

◆ pdfIntegral()

virtual double EvtIntegPdf1D::pdfIntegral ( double x) const
pure virtual

Implemented in EvtBreitWignerPdf.

Referenced by compute_integral(), and randomPoint().

◆ pdfIntegralInverse()

virtual double EvtIntegPdf1D::pdfIntegralInverse ( double x) const
pure virtual

Implemented in EvtBreitWignerPdf.

Referenced by randomPoint().

◆ randomPoint()

EvtPoint1D EvtIntegPdf1D::randomPoint ( )
virtual

Reimplemented from EvtPdf< EvtPoint1D >.

Definition at line 32 of file EvtIntegPdf1D.cc.

32 {
33 double itgmin = pdfIntegral( _min );
34 double itgmax = pdfIntegral( _max );
35 double itgrnd = EvtRandom::Flat( itgmin, itgmax );
36
37 return EvtPoint1D( _min, _max, pdfIntegralInverse( itgrnd ) );
38}
virtual double pdfIntegralInverse(double x) const =0
static double Flat()
Definition EvtRandom.cc:69

Member Data Documentation

◆ _max

double EvtIntegPdf1D::_max
protected

Definition at line 35 of file EvtIntegPdf1D.hh.

Referenced by compute_integral(), EvtIntegPdf1D(), EvtIntegPdf1D(), and randomPoint().

◆ _min

double EvtIntegPdf1D::_min
protected

Definition at line 34 of file EvtIntegPdf1D.hh.

Referenced by compute_integral(), EvtIntegPdf1D(), EvtIntegPdf1D(), and randomPoint().


The documentation for this class was generated from the following files: