ROOT
6.07/01
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 27 of file RooRealConstant.h.
Public Member Functions | |
RooRealConstant () | |
virtual | ~RooRealConstant () |
Static Public Member Functions | |
static RooConstVar & | value (Double_t value) |
Return a constant value object with given value. More... | |
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 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 30 of file RooRealConstant.h.
|
inlinevirtual |
Definition at line 31 of file RooRealConstant.h.
|
static |
Cleanup function register with RooSentinel for cleanup in atexit()
Definition at line 57 of file RooRealConstant.cxx.
Referenced by CleanUpRooFitAtExit().
|
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.
Referenced by RooCustomizer::CustIFace::create().
|
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.
Referenced by RooAddModel::getProjCache(), RooAddPdf::getProjCache(), and RooFit::RooConst().
|
staticprotected |
Definition at line 42 of file RooRealConstant.h.
|
staticprotected |
Definition at line 43 of file RooRealConstant.h.