]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TEvtGen/EvtGenBase/EvtBreitWignerPdf.hh
o updates to fix the 11a pass4 problem of T0 (Alla)
[u/mrichter/AliRoot.git] / TEvtGen / EvtGenBase / EvtBreitWignerPdf.hh
1 /*******************************************************************************
2  * Project: BaBar detector at the SLAC PEP-II B-factory
3  * Package: EvtGenBase
4  *    File: $Id: EvtBreitWignerPdf.hh,v 1.5 2003/06/20 17:20:00 dvoretsk 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 "EvtGenBase/EvtIntegPdf1D.hh"
16
17 class EvtBreitWignerPdf : public EvtIntegPdf1D {
18   
19 public:
20   
21   EvtBreitWignerPdf(double min, double max, double m0, double g0);
22   EvtBreitWignerPdf(const EvtBreitWignerPdf& other);
23   virtual ~EvtBreitWignerPdf(); 
24   
25   double pdf(const EvtPoint1D& x) const;
26   EvtPdf<EvtPoint1D>* clone() const
27   {
28     return new EvtBreitWignerPdf(*this);
29   }
30
31   double pdfIntegral(double m) const;
32   double pdfIntegralInverse(double x) const;
33
34   // accessors
35
36   inline double m0() const { return _m0; }
37   inline double g0() const { return _g0; }
38
39 private:
40
41   double _m0;
42   double _g0;
43   
44 };
45
46
47 #endif
48