evtgen is hosted by Hepforge, IPPP Durham
EvtGen  2.0.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.

#include <EvtGenBase/EvtPdfSum.hh>

Inheritance diagram for EvtPdfSum< T >:
EvtPdf< T >

Public Member Functions

 EvtPdfSum ()
 
 EvtPdfSum (const EvtPdfSum< T > &other)
 
virtual ~EvtPdfSum ()
 
EvtPdfSumclone () const override
 
void addTerm (double c, const EvtPdf< T > &pdf)
 
void addOwnedTerm (double c, std::unique_ptr< EvtPdf< T >> pdf)
 
size_t nTerms () const
 
double c (int i) const
 
EvtPdf< T > * getPdf (int i) const
 
EvtValError compute_integral () const override
 
EvtValError compute_integral (int N) const override
 
randomPoint () override
 
- 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
 
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.)
 

Protected Member Functions

double pdf (const T &p) const override
 

Protected Attributes

vector< double > _c
 
vector< EvtPdf< T > * > _term
 
- Protected Attributes inherited from EvtPdf< T >
EvtValError _itg
 

Detailed Description

template<class T>
class EvtPdfSum< T >

Definition at line 32 of file EvtPdfSum.hh.

Constructor & Destructor Documentation

◆ EvtPdfSum() [1/2]

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

Definition at line 34 of file EvtPdfSum.hh.

◆ EvtPdfSum() [2/2]

template<class T >
EvtPdfSum< T >::EvtPdfSum ( const EvtPdfSum< T > &  other)

Definition at line 73 of file EvtPdfSum.hh.

◆ ~EvtPdfSum()

template<class T >
EvtPdfSum< T >::~EvtPdfSum ( )
virtual

Definition at line 82 of file EvtPdfSum.hh.

Member Function Documentation

◆ addOwnedTerm()

template<class T>
void EvtPdfSum< T >::addOwnedTerm ( double  c,
std::unique_ptr< EvtPdf< T >>  pdf 
)
inline

Definition at line 48 of file EvtPdfSum.hh.

◆ addTerm()

template<class T>
void EvtPdfSum< T >::addTerm ( double  c,
const EvtPdf< T > &  pdf 
)
inline

Definition at line 41 of file EvtPdfSum.hh.

◆ c()

template<class T>
double EvtPdfSum< T >::c ( int  i) const
inline

Definition at line 56 of file EvtPdfSum.hh.

◆ clone()

template<class T>
EvtPdfSum* EvtPdfSum< T >::clone ( ) const
inlineoverridevirtual

Implements EvtPdf< T >.

Definition at line 37 of file EvtPdfSum.hh.

◆ compute_integral() [1/2]

template<class T >
EvtValError EvtPdfSum< T >::compute_integral ( ) const
overridevirtual

Reimplemented from EvtPdf< T >.

Definition at line 104 of file EvtPdfSum.hh.

◆ compute_integral() [2/2]

template<class T >
EvtValError EvtPdfSum< T >::compute_integral ( int  N) const
overridevirtual

Reimplemented from EvtPdf< T >.

Definition at line 114 of file EvtPdfSum.hh.

◆ getPdf()

template<class T>
EvtPdf<T>* EvtPdfSum< T >::getPdf ( int  i) const
inline

Definition at line 57 of file EvtPdfSum.hh.

◆ nTerms()

template<class T>
size_t EvtPdfSum< T >::nTerms ( ) const
inline

Definition at line 54 of file EvtPdfSum.hh.

◆ pdf()

template<class T >
double EvtPdfSum< T >::pdf ( const T &  p) const
overrideprotectedvirtual

Implements EvtPdf< T >.

Definition at line 90 of file EvtPdfSum.hh.

◆ randomPoint()

template<class T >
T EvtPdfSum< T >::randomPoint ( )
overridevirtual

Reimplemented from EvtPdf< T >.

Definition at line 129 of file EvtPdfSum.hh.

Member Data Documentation

◆ _c

template<class T>
vector<double> EvtPdfSum< T >::_c
protected

Definition at line 68 of file EvtPdfSum.hh.

◆ _term

template<class T>
vector<EvtPdf<T>*> EvtPdfSum< T >::_term
protected

Definition at line 69 of file EvtPdfSum.hh.


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