Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooRealConstant Class Reference

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 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 ()
 
virtual TClassIsA () const
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static RooConstVarremovalDummy ()
 Create a dummy node used in node-removal operations.
 
static RooConstVarvalue (double value)
 Return a constant value object with given value.
 

Static Protected Member Functions

static RooArgListconstDB ()
 One-time initialization of constants database.
 

#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

◆ Class()

static TClass * RooRealConstant::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * RooRealConstant::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t RooRealConstant::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 38 of file RooRealConstant.h.

◆ constDB()

RooArgList & RooRealConstant::constDB ( )
staticprotected

One-time initialization of constants database.

Definition at line 88 of file RooRealConstant.cxx.

◆ DeclFileName()

static const char * RooRealConstant::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 38 of file RooRealConstant.h.

◆ IsA()

virtual TClass * RooRealConstant::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 38 of file RooRealConstant.h.

◆ removalDummy()

RooConstVar & RooRealConstant::removalDummy ( )
static

Create a dummy node used in node-removal operations.

Definition at line 72 of file RooRealConstant.cxx.

◆ Streamer()

virtual void RooRealConstant::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void RooRealConstant::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 38 of file RooRealConstant.h.

◆ value()

RooConstVar & RooRealConstant::value ( double  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 48 of file RooRealConstant.cxx.


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