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

static RooConstVar & value(Double_t value)
Return a constant value object with given value.

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 ( )
inline

Definition at line 28 of file RooRealConstant.h.

◆ ~RooRealConstant()

virtual RooRealConstant::~RooRealConstant ( )
inlinevirtual

Definition at line 29 of file RooRealConstant.h.

Member Function Documentation

◆ constDB()

RooArgList & RooRealConstant::constDB ( )
staticprotected

One-time initialization of constants database.

Definition at line 91 of file RooRealConstant.cxx.

◆ removalDummy()

RooConstVar & RooRealConstant::removalDummy ( )
static

Create a dummy node used in node-removal operations.

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


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