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 () |
virtual TClass * | IsA () const |
virtual void | Streamer (TBuffer &) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static RooConstVar & | removalDummy () |
Create a dummy node used in node-removal operations. | |
static RooConstVar & | value (double 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.
|
static |
|
inlinestaticconstexpr |
Definition at line 38 of file RooRealConstant.h.
|
staticprotected |
One-time initialization of constants database.
Definition at line 88 of file RooRealConstant.cxx.
|
inlinestatic |
Definition at line 38 of file RooRealConstant.h.
|
inlinevirtual |
Definition at line 38 of file RooRealConstant.h.
|
static |
Create a dummy node used in node-removal operations.
Definition at line 72 of file RooRealConstant.cxx.
|
virtual |
|
inline |
Definition at line 38 of file RooRealConstant.h.
|
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 48 of file RooRealConstant.cxx.