BOSS 7.0.7
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, [email protected], 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 "EvtGenBase/EvtPdf.hh"
17
18class EvtIntegPdf1D : public EvtPdf<EvtPoint1D> {
19
20public:
21
22 EvtIntegPdf1D(double min, double max);
24 virtual ~EvtIntegPdf1D();
25
26 // Pdf integral function and its inverse to be defined in subclasses
27
28 virtual double pdfIntegral(double x) const = 0;
29 virtual double pdfIntegralInverse(double x) const = 0;
30
31 virtual EvtValError compute_integral() const;
32 virtual EvtPoint1D randomPoint();
33
34protected:
35
36 double _min;
37 double _max;
38};
39
40
41#endif
42
43
virtual EvtValError compute_integral() const
virtual double pdfIntegral(double x) const =0
virtual double pdfIntegralInverse(double x) const =0
virtual ~EvtIntegPdf1D()
virtual EvtPoint1D randomPoint()
Definition: EvtPdf.hh:57