Logo ROOT   6.08/07
Reference Guide
RooBernstein.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitModels *
4  * File: $Id$
5  * Authors: *
6  * Kyle Cranmer
7  * *
8  * *
9  * Redistribution and use in source and binary forms, *
10  * with or without modification, are permitted according to the terms *
11  * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
12  *****************************************************************************/
13 #ifndef ROO_BERNSTEIN
14 #define ROO_BERNSTEIN
15 
16 #include "RooAbsPdf.h"
17 #include "RooRealProxy.h"
18 #include "RooListProxy.h"
19 
20 class RooRealVar;
21 class RooArgList ;
22 
23 class RooBernstein : public RooAbsPdf {
24 public:
25 
26  RooBernstein() ;
27  RooBernstein(const char *name, const char *title,
28  RooAbsReal& _x, const RooArgList& _coefList) ;
29 
30  RooBernstein(const RooBernstein& other, const char* name = 0);
31  virtual TObject* clone(const char* newname) const { return new RooBernstein(*this, newname); }
32  inline virtual ~RooBernstein() { }
33 
34  Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
35  Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ;
36 
37 private:
38 
41 
42  Double_t evaluate() const;
43 
44  ClassDef(RooBernstein,1) // Bernstein polynomial PDF
45 };
46 
47 #endif
RooRealProxy _x
Definition: RooBernstein.h:39
Bernstein basis polynomials are positive-definite in the range [0,1].
Definition: RooBernstein.h:23
RooListProxy _coefList
Definition: RooBernstein.h:40
int Int_t
Definition: RtypesCore.h:41
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
No analytical calculation available (yet) of integrals over subranges.
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral. ...
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual ~RooBernstein()
Definition: RooBernstein.h:32
RooRealVar represents a fundamental (non-derived) real valued object.
Definition: RooRealVar.h:37
Double_t evaluate() const
RooListProxy is the concrete proxy for RooArgList objects.
Definition: RooListProxy.h:26
double Double_t
Definition: RtypesCore.h:55
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:53
Mother of all ROOT objects.
Definition: TObject.h:37
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Definition: RooAbsPdf.h:41
RooRealProxy is the concrete proxy for RooAbsReal objects A RooRealProxy is the general mechanism to ...
Definition: RooRealProxy.h:23
virtual TObject * clone(const char *newname) const
Definition: RooBernstein.h:31
char name[80]
Definition: TGX11.cxx:109