BOSS 8.0.0
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 ()
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

Protected Attributes inherited from EvtPdf< T >
EvtValError _itg

Detailed Description

template<class T>
class EvtPdfDiv< T >

Definition at line 190 of file EvtPdf.hh.

Constructor & Destructor Documentation

◆ EvtPdfDiv() [1/3]

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

Definition at line 192 of file EvtPdf.hh.

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

Referenced by clone(), and EvtPdfDiv().

◆ EvtPdfDiv() [2/3]

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

Definition at line 193 of file EvtPdf.hh.

194 : EvtPdf<T>(), itsNum( theNum.clone() ), itsDen( theDen.clone() ) {}
virtual EvtPdf< T > * clone() const
Definition EvtPdf.hh:201
EvtPdf()
Definition EvtPdf.hh:59

◆ EvtPdfDiv() [3/3]

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

Definition at line 195 of file EvtPdf.hh.

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

◆ ~EvtPdfDiv()

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

Definition at line 197 of file EvtPdf.hh.

197 {
198 delete itsNum;
199 delete itsDen;
200 }

Member Function Documentation

◆ clone()

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

Implements EvtPdf< T >.

Definition at line 201 of file EvtPdf.hh.

201{ return new EvtPdfDiv( *this ); }
EvtPdfDiv()
Definition EvtPdf.hh:192

Referenced by EvtPdfDiv().

◆ pdf()

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

Implements EvtPdf< T >.

Definition at line 203 of file EvtPdf.hh.

203 {
204 double num = itsNum->evaluate( p );
205 double den = itsDen->evaluate( p );
206 assert( den != 0 );
207 return num / den;
208 }
double evaluate(const T &p) const
Definition EvtPdf.hh:64

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