Logo ROOT   6.14/05
Reference Guide
List of all members | Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Static Protected Attributes | List of all members
RooRealConstant Class Reference

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 RooConstVarremovalDummy ()
 Create a dummy node used in node-removal operations. More...
 
static RooConstVarvalue (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>

Constructor & Destructor Documentation

◆ RooRealConstant()

RooRealConstant::RooRealConstant ( )
inline

Definition at line 29 of file RooRealConstant.h.

◆ ~RooRealConstant()

virtual RooRealConstant::~RooRealConstant ( )
inlinevirtual

Definition at line 30 of file RooRealConstant.h.

Member Function Documentation

◆ cleanup()

void RooRealConstant::cleanup ( )
static

Cleanup function register with RooSentinel for cleanup in atexit()

Definition at line 57 of file RooRealConstant.cxx.

◆ init()

void RooRealConstant::init ( )
staticprotected

One-time initialization of constants database.

Definition at line 112 of file RooRealConstant.cxx.

◆ removalDummy()

RooConstVar & RooRealConstant::removalDummy ( )
static

Create a dummy node used in node-removal operations.

Definition at line 97 of file RooRealConstant.cxx.

◆ value()

RooConstVar & RooRealConstant::value ( Double_t  value)
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.

Member Data Documentation

◆ _constDB

RooArgList * RooRealConstant::_constDB = 0
staticprotected

Definition at line 41 of file RooRealConstant.h.

◆ _constDBIter

TIterator * RooRealConstant::_constDBIter = 0
staticprotected

Definition at line 42 of file RooRealConstant.h.

Libraries for RooRealConstant:
[legend]

The documentation for this class was generated from the following files: