ROOT  6.06/09
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
virtual TObject * clone(const char *newname) const
Definition: RooBernstein.h:31
RooListProxy _coefList
Definition: RooBernstein.h:40
int Int_t
Definition: RtypesCore.h:41
Double_t evaluate() const
#define ClassDef(name, id)
Definition: Rtypes.h:254
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
No analytical calculation available (yet) of integrals over subranges.
virtual ~RooBernstein()
Definition: RooBernstein.h:32
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral. ...
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
#define name(a, b)
Definition: linkTestLib0.cpp:5
Mother of all ROOT objects.
Definition: TObject.h:58
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Definition: RooAbsPdf.h:41