BOSS 8.0.0
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
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 EvtAmpPdf< T >

Definition at line 19 of file EvtAmpPdf.hh.

Constructor & Destructor Documentation

◆ EvtAmpPdf() [1/3]

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

Definition at line 21 of file EvtAmpPdf.hh.

21{}

Referenced by clone(), and EvtAmpPdf().

◆ EvtAmpPdf() [2/3]

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

Definition at line 22 of file EvtAmpPdf.hh.

22: EvtPdf<T>(), _amp( amp.clone() ) {}
virtual EvtAmpPdf< T > * clone() const
Definition EvtAmpPdf.hh:26
EvtPdf()
Definition EvtPdf.hh:59

◆ EvtAmpPdf() [3/3]

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

Definition at line 23 of file EvtAmpPdf.hh.

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

◆ ~EvtAmpPdf()

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

Definition at line 24 of file EvtAmpPdf.hh.

24{ delete _amp; }

Member Function Documentation

◆ clone()

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

Implements EvtPdf< T >.

Definition at line 26 of file EvtAmpPdf.hh.

26{ return new EvtAmpPdf( *this ); }

Referenced by EvtAmpPdf().

◆ pdf()

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

Implements EvtPdf< T >.

Definition at line 28 of file EvtAmpPdf.hh.

28 {
29 EvtComplex amp = _amp->evaluate( p );
30 return real( amp ) * real( amp ) + imag( amp ) * imag( amp );
31 }
double imag(const EvtComplex &c)
double evaluate(const T &p) const
Definition EvtPdf.hh:64

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