ROOT logo
ROOT » ROOFIT » ROOFITCORE » RooRealConstant

class RooRealConstant



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
  RooRealConstant::value(1.0)
 
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.

Function Members (Methods)

protected:
static voidinit()

Data Members

protected:
static RooArgList*_constDBList of already instantiated constants
static TIterator*_constDBIterIterator over constants list

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void cleanup()
 Cleanup function register with RooSentinel for cleanup in atexit()
RooConstVar& value(Double_t value)
 Return a constant value object with given value.
 Return previously created object if avaliable,
 otherwise create a new one on the fly.
RooConstVar& removalDummy()
 Create a dummy node used in node-removal operations
void init()
 One-time initialization of constants database
inline RooRealConstant()
{}
virtual ~RooRealConstant()
{}