BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtIntervalFlatPdf Class Reference

#include <EvtIntervalFlatPdf.hh>

+ Inheritance diagram for EvtIntervalFlatPdf:

Public Member Functions

 EvtIntervalFlatPdf (double min, double max)
 
 EvtIntervalFlatPdf (const EvtIntervalFlatPdf &other)
 
virtual ~EvtIntervalFlatPdf ()
 
virtual EvtPdf< EvtPoint1D > * clone () const
 
virtual EvtValError compute_integral () const
 
virtual EvtPoint1D randomPoint ()
 
- Public Member Functions inherited from EvtPdf< EvtPoint1D >
 EvtPdf ()
 
 EvtPdf (const EvtPdf &other)
 
virtual ~EvtPdf ()
 
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 (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.)
 

Protected Member Functions

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

Protected Attributes

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

Detailed Description

Definition at line 21 of file EvtIntervalFlatPdf.hh.

Constructor & Destructor Documentation

◆ EvtIntervalFlatPdf() [1/2]

EvtIntervalFlatPdf::EvtIntervalFlatPdf ( double min,
double max )

Definition at line 16 of file EvtIntervalFlatPdf.cc.

Referenced by clone().

◆ EvtIntervalFlatPdf() [2/2]

EvtIntervalFlatPdf::EvtIntervalFlatPdf ( const EvtIntervalFlatPdf & other)

Definition at line 22 of file EvtIntervalFlatPdf.cc.

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

◆ ~EvtIntervalFlatPdf()

EvtIntervalFlatPdf::~EvtIntervalFlatPdf ( )
virtual

Definition at line 26 of file EvtIntervalFlatPdf.cc.

27{}

Member Function Documentation

◆ clone()

EvtPdf< EvtPoint1D > * EvtIntervalFlatPdf::clone ( ) const
virtual

Implements EvtPdf< EvtPoint1D >.

Definition at line 29 of file EvtIntervalFlatPdf.cc.

30{
31 return new EvtIntervalFlatPdf(*this);
32}
EvtIntervalFlatPdf(double min, double max)

◆ compute_integral()

EvtValError EvtIntervalFlatPdf::compute_integral ( ) const
virtual

Reimplemented from EvtPdf< EvtPoint1D >.

Definition at line 39 of file EvtIntervalFlatPdf.cc.

40{
41 return EvtValError(_max-_min,0.);
42}

◆ pdf()

double EvtIntervalFlatPdf::pdf ( const EvtPoint1D & ) const
protectedvirtual

Implements EvtPdf< EvtPoint1D >.

Definition at line 34 of file EvtIntervalFlatPdf.cc.

35{
36 return 1.;
37}

◆ randomPoint()

EvtPoint1D EvtIntervalFlatPdf::randomPoint ( )
virtual

Reimplemented from EvtPdf< EvtPoint1D >.

Definition at line 44 of file EvtIntervalFlatPdf.cc.

45{
47}
static double Flat()
Definition EvtRandom.cc:74

Member Data Documentation

◆ _max

double EvtIntervalFlatPdf::_max
protected

Definition at line 37 of file EvtIntervalFlatPdf.hh.

Referenced by compute_integral(), and randomPoint().

◆ _min

double EvtIntervalFlatPdf::_min
protected

Definition at line 36 of file EvtIntervalFlatPdf.hh.

Referenced by compute_integral(), and randomPoint().


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