ROOT 6.14/05 Reference Guide |
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 26 of file RooRealConstant.h.
Public Member Functions | |
RooRealConstant () | |
virtual | ~RooRealConstant () |
Static Public Member Functions | |
static void | cleanup () |
Cleanup function register with RooSentinel for cleanup in atexit() More... | |
static RooConstVar & | removalDummy () |
Create a dummy node used in node-removal operations. More... | |
static RooConstVar & | value (Double_t value) |
Return a constant value object with given value. More... | |
Static Protected Member Functions | |
static void | init () |
One-time initialization of constants database. More... | |
Static Protected Attributes | |
static RooArgList * | _constDB = 0 |
static TIterator * | _constDBIter = 0 |
#include <RooRealConstant.h>
|
inline |
Definition at line 29 of file RooRealConstant.h.
|
inlinevirtual |
Definition at line 30 of file RooRealConstant.h.
|
static |
Cleanup function register with RooSentinel for cleanup in atexit()
Definition at line 57 of file RooRealConstant.cxx.
|
staticprotected |
One-time initialization of constants database.
Definition at line 112 of file RooRealConstant.cxx.
|
static |
Create a dummy node used in node-removal operations.
Definition at line 97 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 73 of file RooRealConstant.cxx.
|
staticprotected |
Definition at line 41 of file RooRealConstant.h.
|
staticprotected |
Definition at line 42 of file RooRealConstant.h.