]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TEvtGen/EvtGen/EvtGenBase/EvtDalitzFlatPdf.hh
Converting TEvtGen to native cmake
[u/mrichter/AliRoot.git] / TEvtGen / EvtGen / EvtGenBase / EvtDalitzFlatPdf.hh
1 /*******************************************************************************
2  * Project: BaBar detector at the SLAC PEP-II B-factory
3  * Package: EvtGenBase
4  *    File: $Id: EvtDalitzFlatPdf.hh,v 1.2 2009-03-16 16:43:40 robbep Exp $
5  *  Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
6  *
7  * Copyright (C) 2002 Caltech
8  *******************************************************************************/
9
10 /*
11  * Uniform PDF defined on a Dalitz plot.
12  */
13
14 #ifndef EVT_DALITZ_FLAT_PDF_HH
15 #define EVT_DALITZ_FLAT_PDF_HH
16
17 #include <assert.h>
18 #include "EvtGenBase/EvtPdf.hh"
19 #include "EvtGenBase/EvtDalitzPlot.hh"
20 #include "EvtGenBase/EvtDalitzPoint.hh"
21
22 class EvtDalitzFlatPdf : public EvtPdf<EvtDalitzPoint> {
23 public:
24   
25   EvtDalitzFlatPdf(const EvtDalitzPlot& dp);
26   EvtDalitzFlatPdf(const EvtDalitzFlatPdf& other);
27   virtual ~EvtDalitzFlatPdf();
28   virtual EvtPdf<EvtDalitzPoint>* clone() const;
29   
30   virtual EvtValError compute_integral(int N) const;
31   virtual EvtDalitzPoint randomPoint();
32   
33 protected:
34
35   virtual double pdf(const EvtDalitzPoint&) const;
36
37   EvtDalitzPlot _dp;
38 };
39
40 #endif