EvtGen
2.2.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
Loading...
Searching...
No Matches
EvtGenBase
EvtDalitzFlatPdf.hh
Go to the documentation of this file.
1
2
/***********************************************************************
3
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
4
* *
5
* This file is part of EvtGen. *
6
* *
7
* EvtGen is free software: you can redistribute it and/or modify *
8
* it under the terms of the GNU General Public License as published by *
9
* the Free Software Foundation, either version 3 of the License, or *
10
* (at your option) any later version. *
11
* *
12
* EvtGen is distributed in the hope that it will be useful, *
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15
* GNU General Public License for more details. *
16
* *
17
* You should have received a copy of the GNU General Public License *
18
* along with EvtGen. If not, see <https://www.gnu.org/licenses/>. *
19
***********************************************************************/
20
21
#ifndef EVT_DALITZ_FLAT_PDF_HH
22
#define EVT_DALITZ_FLAT_PDF_HH
23
24
#include "
EvtGenBase/EvtDalitzPlot.hh
"
25
#include "
EvtGenBase/EvtDalitzPoint.hh
"
26
#include "
EvtGenBase/EvtPdf.hh
"
27
28
#include <assert.h>
29
30
/*
31
* Uniform PDF defined on a Dalitz plot.
32
*/
33
34
class
EvtDalitzFlatPdf
:
public
EvtPdf
<EvtDalitzPoint> {
35
public
:
36
EvtDalitzFlatPdf
(
const
EvtDalitzPlot
& dp );
37
EvtDalitzFlatPdf
(
const
EvtDalitzFlatPdf
& other );
38
EvtPdf<EvtDalitzPoint>
*
clone
()
const override
;
39
40
using
EvtPdf
<
EvtDalitzPoint
>
::compute_integral
;
41
EvtValError
compute_integral
(
int
N )
const override
;
42
EvtDalitzPoint
randomPoint
()
override
;
43
44
protected
:
45
double
pdf
(
const
EvtDalitzPoint
& )
const override
;
46
47
EvtDalitzPlot
m_dp
;
48
};
49
50
#endif
EvtDalitzPlot.hh
EvtDalitzPoint.hh
EvtPdf.hh
EvtDalitzFlatPdf::EvtDalitzFlatPdf
EvtDalitzFlatPdf(const EvtDalitzPlot &dp)
Definition
EvtDalitzFlatPdf.cpp:23
EvtDalitzFlatPdf::clone
EvtPdf< EvtDalitzPoint > * clone() const override
Definition
EvtDalitzFlatPdf.cpp:33
EvtDalitzFlatPdf::pdf
double pdf(const EvtDalitzPoint &) const override
Definition
EvtDalitzFlatPdf.cpp:38
EvtDalitzFlatPdf::compute_integral
EvtValError compute_integral(int N) const override
Definition
EvtDalitzFlatPdf.cpp:43
EvtDalitzFlatPdf::m_dp
EvtDalitzPlot m_dp
Definition
EvtDalitzFlatPdf.hh:47
EvtDalitzFlatPdf::randomPoint
EvtDalitzPoint randomPoint() override
Definition
EvtDalitzFlatPdf.cpp:48
EvtDalitzPlot
Definition
EvtDalitzPlot.hh:30
EvtDalitzPoint
Definition
EvtDalitzPoint.hh:38
EvtPdf< EvtDalitzPoint >::compute_integral
virtual EvtValError compute_integral() const
Definition
EvtPdf.hh:113
EvtPdf< EvtDalitzPoint >::EvtPdf
EvtPdf()
Definition
EvtPdf.hh:74
EvtValError
Definition
EvtValError.hh:31
Generated by
1.16.1