BOSS 7.0.3
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 ()
 
 EvtPdf (const EvtPdf &other)
 
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 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 ()
 

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 
)

Definition at line 16 of file EvtIntegPdf1D.cc.

◆ EvtIntegPdf1D() [2/2]

EvtIntegPdf1D::EvtIntegPdf1D ( const EvtIntegPdf1D other)

Definition at line 22 of file EvtIntegPdf1D.cc.

23 : EvtPdf<EvtPoint1D>(other), _min(other._min), _max(other._max)
24{}
Index other(Index i, Index j)
Definition: EvtCyclic3.cc:118

◆ ~EvtIntegPdf1D()

EvtIntegPdf1D::~EvtIntegPdf1D ( )
virtual

Definition at line 26 of file EvtIntegPdf1D.cc.

27{}

Member Function Documentation

◆ compute_integral()

EvtValError EvtIntegPdf1D::compute_integral ( ) const
virtual

Reimplemented from EvtPdf< EvtPoint1D >.

Definition at line 29 of file EvtIntegPdf1D.cc.

30{
31 double x1 = pdfIntegral(_min);
32 double x2 = pdfIntegral(_max);
33 return EvtValError(x2-x1,0.);
34}
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 37 of file EvtIntegPdf1D.cc.

38{
39 double itgmin = pdfIntegral(_min);
40 double itgmax = pdfIntegral(_max);
41 double itgrnd = EvtRandom::Flat(itgmin,itgmax);
42
43 return EvtPoint1D(_min,_max,pdfIntegralInverse(itgrnd));
44}
virtual double pdfIntegralInverse(double x) const =0
static double Flat()
Definition: EvtRandom.cc:73

Member Data Documentation

◆ _max

double EvtIntegPdf1D::_max
protected

Definition at line 37 of file EvtIntegPdf1D.hh.

Referenced by compute_integral(), and randomPoint().

◆ _min

double EvtIntegPdf1D::_min
protected

Definition at line 36 of file EvtIntegPdf1D.hh.

Referenced by compute_integral(), and randomPoint().


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