Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

EvtIntegPdf1D Class Reference

#include <EvtIntegPdf1D.hh>

Inheritance diagram for EvtIntegPdf1D:

EvtPdf< EvtPoint1D > EvtBreitWignerPdf List of all members.

Public Member Functions

EvtPredGen< EvtPdfGen< EvtPoint1D >,
EvtPdfPred< EvtPoint1D > > 
accRejGen (const EvtPdf< EvtPoint1D > &pc, int nMax, double factor=1.)
virtual EvtPdf< EvtPoint1D > * clone () const =0
virtual EvtValError compute_integral (int N) const
virtual EvtValError compute_integral () const
EvtValError compute_mc_integral (const EvtPdf< EvtPoint1D > &pc, int N)
double evaluate (const EvtPoint1D &p) const
 EvtIntegPdf1D (const EvtIntegPdf1D &)
 EvtIntegPdf1D (double min, double max)
EvtValError findGenEff (const EvtPdf< EvtPoint1D > &pc, int N, int nFindMax)
EvtPdfMax< EvtPoint1DfindMax (const EvtPdf< EvtPoint1D > &pc, int N)
EvtValError getItg (int N) const
EvtValError getItg () const
virtual double pdfIntegral (double x) const =0
virtual double pdfIntegralInverse (double x) const =0
virtual EvtPoint1D randomPoint ()
void setItg (EvtValError itg)
virtual ~EvtIntegPdf1D ()

Protected Member Functions

virtual double pdf (const EvtPoint1D &) const =0

Protected Attributes

EvtValError _itg
double _max
double _min

Constructor & Destructor Documentation

EvtIntegPdf1D::EvtIntegPdf1D double  min,
double  max
 

00017   : EvtPdf<EvtPoint1D>(), _min(min), _max(max)
00018 {
00019   assert(min <= max);
00020 }

EvtIntegPdf1D::EvtIntegPdf1D const EvtIntegPdf1D  ) 
 

00023   : EvtPdf<EvtPoint1D>(other), _min(other._min), _max(other._max)
00024 {}

EvtIntegPdf1D::~EvtIntegPdf1D  )  [virtual]
 

00027 {}


Member Function Documentation

EvtPredGen<EvtPdfGen<EvtPoint1D >,EvtPdfPred<EvtPoint1D > > EvtPdf< EvtPoint1D >::accRejGen const EvtPdf< EvtPoint1D > &  pc,
int  nMax,
double  factor = 1.
[inherited]
 

virtual EvtPdf<EvtPoint1D >* EvtPdf< EvtPoint1D >::clone void   )  const [pure virtual, inherited]
 

Implemented in EvtBreitWignerPdf, and EvtIntervalFlatPdf.

virtual EvtValError EvtPdf< EvtPoint1D >::compute_integral int  N  )  const [inline, virtual, inherited]
 

00095 { return compute_integral(); }

EvtValError EvtIntegPdf1D::compute_integral  )  const [virtual]
 

Reimplemented from EvtPdf< EvtPoint1D >.

00030 {
00031   double x1 = pdfIntegral(_min); 
00032   double x2 = pdfIntegral(_max);
00033   return EvtValError(x2-x1,0.);
00034 }

EvtValError EvtPdf< EvtPoint1D >::compute_mc_integral const EvtPdf< EvtPoint1D > &  pc,
int  N
[inherited]
 

double EvtPdf< EvtPoint1D >::evaluate const EvtPoint1D p  )  const [inline, inherited]
 

00065                                     { 
00066     if(p.isValid()) return pdf(p); 
00067     else return 0.;
00068   }

EvtValError EvtPdf< EvtPoint1D >::findGenEff const EvtPdf< EvtPoint1D > &  pc,
int  N,
int  nFindMax
[inherited]
 

EvtPdfMax<EvtPoint1D > EvtPdf< EvtPoint1D >::findMax const EvtPdf< EvtPoint1D > &  pc,
int  N
[inherited]
 

EvtValError EvtPdf< EvtPoint1D >::getItg int  N  )  const [inline, inherited]
 

00087                                   {
00088     if(!_itg.valueKnown()) _itg = compute_integral(N);
00089     return _itg;
00090   }

EvtValError EvtPdf< EvtPoint1D >::getItg  )  const [inline, inherited]
 

00083                              {
00084     if(!_itg.valueKnown()) _itg = compute_integral();
00085     return _itg;
00086   }

virtual double EvtPdf< EvtPoint1D >::pdf const EvtPoint1D  )  const [protected, pure virtual, inherited]
 

Implemented in EvtBreitWignerPdf, and EvtIntervalFlatPdf.

virtual double EvtIntegPdf1D::pdfIntegral double  x  )  const [pure virtual]
 

Implemented in EvtBreitWignerPdf.

virtual double EvtIntegPdf1D::pdfIntegralInverse double  x  )  const [pure virtual]
 

Implemented in EvtBreitWignerPdf.

EvtPoint1D EvtIntegPdf1D::randomPoint  )  [virtual]
 

Reimplemented from EvtPdf< EvtPoint1D >.

00038 {
00039   double itgmin = pdfIntegral(_min);
00040   double itgmax = pdfIntegral(_max);
00041   double itgrnd = EvtRandom::Flat(itgmin,itgmax);
00042 
00043   return EvtPoint1D(_min,_max,pdfIntegralInverse(itgrnd));
00044 }

void EvtPdf< EvtPoint1D >::setItg EvtValError  itg  )  [inline, inherited]
 

00081 {_itg = itg; }


Member Data Documentation

EvtValError EvtPdf< EvtPoint1D >::_itg [mutable, protected, inherited]
 

double EvtIntegPdf1D::_max [protected]
 

double EvtIntegPdf1D::_min [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:06:03 2011 for BOSS6.5.5 by  doxygen 1.3.9.1