MINT2
BWFct.h
Go to the documentation of this file.
1 #ifndef BW_FCT_HH
2 #define BW_FCT_HH
3 // author: Jonas Rademacker (Jonas.Rademacker@bristol.ac.uk)
4 // status: Mon 9 Feb 2009 19:17:58 GMT
5 
6 #include "TRandom.h"
7 
8 //#include "Mint/counted_ptr.h"
9 #include "Mint/IGenFct.h"
10 
11 class BWFct : virtual public IGenFct{
13  double _M, _G;
14 
15  double rhoMi() const;
16  double rhoMa() const;
17  double norm() const;
18 
19  double unitFactor() const;
20 
21  public:
22  BWFct(const DalitzCoordinate& c, double M, double Gamma);
23  BWFct(const BWFct& other);
24  // virtual MINT::counted_ptr<IGenFct> Clone() const;
25 
26  virtual void setLimits(double sMin, double sMax);
27  virtual double getSMi()const{return _coord.min();}
28  virtual double getSMa()const{return _coord.max();}
29  virtual double generateRho(TRandom* rnd=gRandom) const;
30  virtual double generate(TRandom* rnd=gRandom) const;
31 
32  virtual DalitzCoordinate getCoordinate() const;
33  virtual void setCoordinate(const DalitzCoordinate& c);
34 
35  virtual double generatingPDFValue(double sij) const;
36  virtual double generatingFctValue(double sij) const;
37  virtual double integral() const;
38  // normalised to limits passed via DalitzCoordinate!!!
39 
40  virtual bool flat() const{return false;}
41 
42  // co-ordinate transformation stuff (by default there is none)
43  virtual double coordTransformFromS(double s)const;
44  virtual double coordTransformToS(double rho)const;
45  virtual double transformedPDFValue(double rho)const;
46  virtual double transformedFctValue(double rho)const;
47  virtual double transformedFctMax()const;
48  virtual double transformedIntegral()const;
49  virtual double getRhoMi()const{return rhoMi();}
50  virtual double getRhoMa()const{return rhoMa();}
51 
52  virtual ~BWFct(){};
53 };
54 
55 #endif
56 //
double min() const
virtual double coordTransformFromS(double s) const
Definition: BWFct.cpp:83
double norm() const
virtual double transformedFctValue(double rho) const
Definition: BWFct.cpp:95
virtual double getRhoMi() const
Definition: BWFct.h:49
BWFct(const DalitzCoordinate &c, double M, double Gamma)
Definition: BWFct.cpp:12
static const double s
virtual double getRhoMa() const
Definition: BWFct.h:50
virtual void setCoordinate(const DalitzCoordinate &c)
Definition: BWFct.cpp:138
double max() const
double rhoMi() const
Definition: BWFct.cpp:37
virtual DalitzCoordinate getCoordinate() const
Definition: BWFct.cpp:135
virtual double coordTransformToS(double rho) const
Definition: BWFct.cpp:86
Definition: BWFct.h:11
virtual double transformedPDFValue(double rho) const
Definition: BWFct.cpp:90
virtual ~BWFct()
Definition: BWFct.h:52
virtual double generateRho(TRandom *rnd=gRandom) const
Definition: BWFct.cpp:51
virtual void setLimits(double sMin, double sMax)
Definition: BWFct.cpp:31
virtual double integral() const
Definition: BWFct.cpp:104
virtual double getSMa() const
Definition: BWFct.h:28
virtual double generatingPDFValue(double sij) const
Definition: BWFct.cpp:108
double _G
Definition: BWFct.h:13
DalitzCoordinate _coord
Definition: BWFct.h:12
virtual double getSMi() const
Definition: BWFct.h:27
double rhoMa() const
Definition: BWFct.cpp:44
virtual double transformedFctMax() const
Definition: BWFct.cpp:58
virtual double generatingFctValue(double sij) const
Definition: BWFct.cpp:126
virtual bool flat() const
Definition: BWFct.h:40
virtual double generate(TRandom *rnd=gRandom) const
Definition: BWFct.cpp:61
virtual double transformedIntegral() const
Definition: BWFct.cpp:99
double _M
Definition: BWFct.h:13
double unitFactor() const
Definition: BWFct.cpp:80