BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtIntegPdf1D.hh
Go to the documentation of this file.
1/*******************************************************************************
2 * Project: BaBar detector at the SLAC PEP-II B-factory
3 * Package: EvtGenBase
4 * File: $Id: EvtIntegPdf1D.hh,v 1.1.1.2 2007/10/26 05:03:14 pingrg Exp $
5 * Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
6 *
7 * Copyright (C) 2002 Caltech
8 *******************************************************************************/
9
10// Analytically integrable one dimensional PDF.
11
12#ifndef EVT_INTEG_PDF_1D_HH
13#define EVT_INTEG_PDF_1D_HH
14
15#include "EvtPdf.hh"
16#include "EvtPoint1D.hh"
17
18class EvtIntegPdf1D : public EvtPdf<EvtPoint1D> {
19
20public:
21 EvtIntegPdf1D( double min, double max );
23 virtual ~EvtIntegPdf1D();
24
25 // Pdf integral function and its inverse to be defined in subclasses
26
27 virtual double pdfIntegral( double x ) const = 0;
28 virtual double pdfIntegralInverse( double x ) const = 0;
29
30 virtual EvtValError compute_integral() const;
31 virtual EvtPoint1D randomPoint();
32
33protected:
34 double _min;
35 double _max;
36};
37
38#endif
#define min(a, b)
#define max(a, b)
virtual EvtValError compute_integral() const
virtual double pdfIntegral(double x) const =0
virtual double pdfIntegralInverse(double x) const =0
EvtIntegPdf1D(double min, double max)
virtual ~EvtIntegPdf1D()
virtual EvtPoint1D randomPoint()