Logo ROOT  
Reference Guide
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 25 of file RooRealConstant.h.

Public Member Functions

 RooRealConstant ()
virtual ~RooRealConstant ()

Static Public Member Functions

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 RooArgListconstDB ()
 One-time initialization of constants database. More...

#include <RooRealConstant.h>

Constructor & Destructor Documentation

◆ RooRealConstant()

RooRealConstant::RooRealConstant ( )

Definition at line 28 of file RooRealConstant.h.

◆ ~RooRealConstant()

virtual RooRealConstant::~RooRealConstant ( )

Definition at line 29 of file RooRealConstant.h.

Member Function Documentation

◆ constDB()

RooArgList & RooRealConstant::constDB ( )

One-time initialization of constants database.

Definition at line 90 of file RooRealConstant.cxx.

◆ removalDummy()

RooConstVar & RooRealConstant::removalDummy ( )

Create a dummy node used in node-removal operations.

Definition at line 75 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 52 of file RooRealConstant.cxx.

The documentation for this class was generated from the following files:
static RooConstVar & value(Double_t value)
Return a constant value object with given value.
Definition: RooRealConstant.cxx:52