Logo ROOT   6.08/07
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 27 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 ( )

Definition at line 30 of file RooRealConstant.h.

◆ ~RooRealConstant()

virtual RooRealConstant::~RooRealConstant ( )

Definition at line 31 of file RooRealConstant.h.

Member Function Documentation

◆ cleanup()

void RooRealConstant::cleanup ( )

Cleanup function register with RooSentinel for cleanup in atexit()

Definition at line 57 of file RooRealConstant.cxx.

◆ init()

void RooRealConstant::init ( )

One-time initialization of constants database.

Definition at line 112 of file RooRealConstant.cxx.

◆ removalDummy()

RooConstVar & RooRealConstant::removalDummy ( )

Create a dummy node used in node-removal operations.

Definition at line 97 of file RooRealConstant.cxx.

◆ value()

RooConstVar & RooRealConstant::value ( Double_t  value)

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

Definition at line 42 of file RooRealConstant.h.

◆ _constDBIter

TIterator * RooRealConstant::_constDBIter = 0

Definition at line 43 of file RooRealConstant.h.

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