BOSS 7.0.8
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 ()
 
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 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 22 of file EvtAmpPdf.hh.

22{}

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

◆ EvtAmpPdf() [2/3]

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

Definition at line 23 of file EvtAmpPdf.hh.

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

◆ EvtAmpPdf() [3/3]

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

Definition at line 24 of file EvtAmpPdf.hh.

24: 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 25 of file EvtAmpPdf.hh.

25{ delete _amp; }

Member Function Documentation

◆ clone()

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

Implements EvtPdf< T >.

Definition at line 27 of file EvtAmpPdf.hh.

27{ return new EvtAmpPdf(*this); }

◆ pdf()

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

Implements EvtPdf< T >.

Definition at line 29 of file 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)
Definition: EvtComplex.hh:246

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