ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 RooConstVarvalue (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 RooConstVarremovalDummy ()
 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>

Constructor & Destructor Documentation

RooRealConstant::RooRealConstant ( )
inline

Definition at line 30 of file RooRealConstant.h.

virtual RooRealConstant::~RooRealConstant ( )
inlinevirtual

Definition at line 31 of file RooRealConstant.h.

Member Function Documentation

void RooRealConstant::cleanup ( )
static

Cleanup function register with RooSentinel for cleanup in atexit()

Definition at line 57 of file RooRealConstant.cxx.

Referenced by CleanUpRooFitAtExit().

void RooRealConstant::init ( )
staticprotected

One-time initialization of constants database.

Definition at line 112 of file RooRealConstant.cxx.

RooConstVar & RooRealConstant::removalDummy ( )
static

Create a dummy node used in node-removal operations.

Definition at line 97 of file RooRealConstant.cxx.

Referenced by RooCustomizer::CustIFace::create().

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.

Referenced by RooAddModel::getProjCache(), RooAddPdf::getProjCache(), and RooFit::RooConst().

Member Data Documentation

RooArgList * RooRealConstant::_constDB = 0
staticprotected

Definition at line 42 of file RooRealConstant.h.

TIterator * RooRealConstant::_constDBIter = 0
staticprotected

Definition at line 43 of file RooRealConstant.h.

Collaboration diagram for RooRealConstant:
[legend]

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