BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPdfDiv< T > Class Template Reference

#include <EvtPdf.hh>

+ Inheritance diagram for EvtPdfDiv< T >:

Public Member Functions

 EvtPdfDiv ()
 
 EvtPdfDiv (const EvtPdf< T > &theNum, const EvtPdf< T > &theDen)
 
 EvtPdfDiv (const EvtPdfDiv< T > &other)
 
virtual ~EvtPdfDiv ()
 
virtual EvtPdf< T > * clone () const
 
virtual double pdf (const T &p) const
 
- Public Member Functions inherited from EvtPdf< T >
 EvtPdf ()
 
 EvtPdf (const EvtPdf &other)
 
virtual ~EvtPdf ()
 
virtual EvtPdf< T > * clone () const =0
 
double evaluate (const T &p) const
 
EvtPdfMax< T > findMax (const EvtPdf< T > &pc, int N)
 
EvtValError findGenEff (const EvtPdf< T > &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< T > &pc, int N)
 
EvtPredGen< EvtPdfGen< T >, EvtPdfPred< T > > accRejGen (const EvtPdf< T > &pc, int nMax, double factor=1.)
 
virtual T randomPoint ()
 

Additional Inherited Members

virtual double pdf (const T &) const =0
 
- Protected Attributes inherited from EvtPdf< T >
EvtValError _itg
 

Detailed Description

template<class T>
class EvtPdfDiv< T >

Definition at line 200 of file EvtPdf.hh.

Constructor & Destructor Documentation

◆ EvtPdfDiv() [1/3]

template<class T >
EvtPdfDiv< T >::EvtPdfDiv ( )
inline

Definition at line 203 of file EvtPdf.hh.

203: itsNum(0), itsDen(0) {}

Referenced by EvtPdfDiv< T >::clone().

◆ EvtPdfDiv() [2/3]

template<class T >
EvtPdfDiv< T >::EvtPdfDiv ( const EvtPdf< T > &  theNum,
const EvtPdf< T > &  theDen 
)
inline

Definition at line 204 of file EvtPdf.hh.

205 : EvtPdf<T>(), itsNum(theNum.clone()), itsDen(theDen.clone())
206 {}
Definition: EvtPdf.hh:57
virtual EvtPdf< T > * clone() const =0

◆ EvtPdfDiv() [3/3]

template<class T >
EvtPdfDiv< T >::EvtPdfDiv ( const EvtPdfDiv< T > &  other)
inline

Definition at line 207 of file EvtPdf.hh.

208 : EvtPdf<T>(other), COPY_PTR(itsNum), COPY_PTR(itsDen)
209 {}
#define COPY_PTR(X)
Definition: EvtMacros.hh:15

◆ ~EvtPdfDiv()

template<class T >
virtual EvtPdfDiv< T >::~EvtPdfDiv ( )
inlinevirtual

Definition at line 210 of file EvtPdf.hh.

210{ delete itsNum; delete itsDen; }

Member Function Documentation

◆ clone()

template<class T >
virtual EvtPdf< T > * EvtPdfDiv< T >::clone ( ) const
inlinevirtual

Implements EvtPdf< T >.

Definition at line 211 of file EvtPdf.hh.

212 { return new EvtPdfDiv(*this); }
EvtPdfDiv()
Definition: EvtPdf.hh:203

◆ pdf()

template<class T >
virtual double EvtPdfDiv< T >::pdf ( const T &  p) const
inlinevirtual

Implements EvtPdf< T >.

Definition at line 214 of file EvtPdf.hh.

215 {
216 double num = itsNum->evaluate(p);
217 double den = itsDen->evaluate(p);
218 assert(den != 0);
219 return num/den;
220 }

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