RooRealConstant provides static functions to create and keep track of RooRealVar constants.
Instead of creating such constants by hand (e.g. RooRealVar one("one","one",1)), simply use
whenever a reference to RooRealVar with constant value 1.0 is needed. RooRealConstant keeps an internal database of previously created RooRealVar objects and will recycle them as appropriate.
Definition at line 25 of file RooRealConstant.h.
Public Member Functions | |
RooRealConstant () | |
virtual | ~RooRealConstant () |
Static Public Member Functions | |
static RooConstVar & | removalDummy () |
Create a dummy node used in node-removal operations. | |
static RooConstVar & | value (Double_t value) |
Return a constant value object with given value. | |
Static Protected Member Functions | |
static RooArgList & | constDB () |
One-time initialization of constants database. | |
#include <RooRealConstant.h>
|
inline |
Definition at line 28 of file RooRealConstant.h.
|
inlinevirtual |
Definition at line 29 of file RooRealConstant.h.
|
staticprotected |
One-time initialization of constants database.
Definition at line 90 of file RooRealConstant.cxx.
|
static |
Create a dummy node used in node-removal operations.
Definition at line 75 of file RooRealConstant.cxx.
|
static |
Return a constant value object with given value.
Return previously created object if available, otherwise create a new one on the fly.
Definition at line 52 of file RooRealConstant.cxx.