BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtBreitWignerPdf.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: EvtBreitWignerPdf.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// Breit-Wigner PDF
11
12#ifndef EVT_BREIT_WIGNER_PDF_HH
13#define EVT_BREIT_WIGNER_PDF_HH
14
15#include "EvtIntegPdf1D.hh"
16
18
19public:
20 EvtBreitWignerPdf( double min, double max, double m0, double g0 );
22 virtual ~EvtBreitWignerPdf();
23
24 double pdf( const EvtPoint1D& x ) const;
25 EvtPdf<EvtPoint1D>* clone() const { return new EvtBreitWignerPdf( *this ); }
26
27 double pdfIntegral( double m ) const;
28 double pdfIntegralInverse( double x ) const;
29
30 // accessors
31
32 inline double m0() const { return _m0; }
33 inline double g0() const { return _g0; }
34
35private:
36 double _m0;
37 double _g0;
38};
39
40#endif
#define min(a, b)
#define max(a, b)
double pdf(const EvtPoint1D &x) const
EvtBreitWignerPdf(double min, double max, double m0, double g0)
double pdfIntegral(double m) const
double pdfIntegralInverse(double x) const
EvtPdf< EvtPoint1D > * clone() const
EvtIntegPdf1D(double min, double max)