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

#include <EvtAmpPdf.hh>

+ Inheritance diagram for EvtAmpPdf< T >:

Public Member Functions

 EvtAmpPdf ()
 
 EvtAmpPdf (const EvtAmplitude< T > &amp)
 
 EvtAmpPdf (const EvtAmpPdf< T > &other)
 
virtual ~EvtAmpPdf ()
 
virtual EvtAmpPdf< T > * clone () const
 
virtual double pdf (const T &p) const
 
 EvtAmpPdf ()
 
 EvtAmpPdf (const EvtAmplitude< T > &amp)
 
 EvtAmpPdf (const EvtAmpPdf< T > &other)
 
virtual ~EvtAmpPdf ()
 
virtual EvtAmpPdf< 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 ()
 
 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
 
virtual double pdf (const T &) const =0
 
- Protected Attributes inherited from EvtPdf< T >
EvtValError _itg
 

Detailed Description

template<class T>
class EvtAmpPdf< T >

Definition at line 19 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtAmpPdf.hh.

Constructor & Destructor Documentation

◆ EvtAmpPdf() [1/6]

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

◆ EvtAmpPdf() [2/6]

template<class T >
EvtAmpPdf< T >::EvtAmpPdf ( const EvtAmplitude< T > &  amp)
inline

Definition at line 23 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtAmpPdf.hh.

23: EvtPdf<T>(), _amp(amp.clone()) {}
virtual EvtAmplitude< T > * clone() const =0

◆ EvtAmpPdf() [3/6]

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

◆ ~EvtAmpPdf() [1/2]

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

Definition at line 25 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtAmpPdf.hh.

25{ delete _amp; }

◆ EvtAmpPdf() [4/6]

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

◆ EvtAmpPdf() [5/6]

template<class T >
EvtAmpPdf< T >::EvtAmpPdf ( const EvtAmplitude< T > &  amp)
inline

Definition at line 23 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtAmpPdf.hh.

23: EvtPdf<T>(), _amp(amp.clone()) {}

◆ EvtAmpPdf() [6/6]

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

Definition at line 24 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtAmpPdf.hh.

24: EvtPdf<T>(other), COPY_PTR(_amp) {}

◆ ~EvtAmpPdf() [2/2]

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

Definition at line 25 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtAmpPdf.hh.

25{ delete _amp; }

Member Function Documentation

◆ clone() [1/2]

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

◆ clone() [2/2]

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

Implements EvtPdf< T >.

Definition at line 27 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtAmpPdf.hh.

27{ return new EvtAmpPdf(*this); }

◆ pdf() [1/2]

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

Implements EvtPdf< T >.

Definition at line 29 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtAmpPdf.hh.

30 {
31 EvtComplex amp = _amp->evaluate(p);
32 return real(amp)*real(amp) + imag(amp)*imag(amp);
33 }
double imag(const EvtComplex &c)

◆ pdf() [2/2]

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

Implements EvtPdf< T >.

Definition at line 29 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtAmpPdf.hh.

30 {
31 EvtComplex amp = _amp->evaluate(p);
32 return real(amp)*real(amp) + imag(amp)*imag(amp);
33 }

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