Logo ROOT   6.18/05
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
20class RooRealVar;
21class RooArgList ;
22
23class RooBernstein : public RooAbsPdf {
24public:
25
26 RooBernstein() ;
27 RooBernstein(const char *name, const char *title,
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
37private:
38
41
42 Double_t evaluate() const;
43
44 ClassDef(RooBernstein,1) // Bernstein polynomial PDF
45};
46
47#endif
int Int_t
Definition: RtypesCore.h:41
double Double_t
Definition: RtypesCore.h:55
#define ClassDef(name, id)
Definition: Rtypes.h:326
char name[80]
Definition: TGX11.cxx:109
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:53
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgList.h:21
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:28
Bernstein basis polynomials are positive-definite in the range [0,1].
Definition: RooBernstein.h:23
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
virtual TObject * clone(const char *newname) const
Definition: RooBernstein.h:31
virtual ~RooBernstein()
Definition: RooBernstein.h:32
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
No analytical calculation available (yet) of integrals over subranges.
RooRealProxy _x
Definition: RooBernstein.h:39
Double_t evaluate() const
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
RooListProxy _coefList
Definition: RooBernstein.h:40
RooListProxy is the concrete proxy for RooArgList objects.
Definition: RooListProxy.h:25
RooRealProxy is the concrete proxy for RooAbsReal objects A RooRealProxy is the general mechanism to ...
Definition: RooRealProxy.h:23
RooRealVar represents a fundamental (non-derived) real valued object.
Definition: RooRealVar.h:36
Mother of all ROOT objects.
Definition: TObject.h:37