ROOT » ROOFIT » ROOFITCORE » RooRealConstant

class RooRealConstant



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
  RooRealConstant::value(1.0)
 
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.

Function Members (Methods)

public:
virtual~RooRealConstant()
static TClass*Class()
static voidcleanup()
virtual TClass*IsA() const
RooRealConstant&operator=(const RooRealConstant&)
static RooConstVar&removalDummy()
RooRealConstant()
RooRealConstant(const RooRealConstant&)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
static RooConstVar&value(Double_t value)
protected:
static voidinit()

Data Members

protected:
static RooArgList*_constDBList of already instantiated constants
static TIterator*_constDBIterIterator over constants list

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void cleanup()
 Cleanup function register with RooSentinel for cleanup in atexit()
RooConstVar& 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.
RooConstVar& removalDummy()
 Create a dummy node used in node-removal operations
void init()
 One-time initialization of constants database
inline RooRealConstant()
{}
virtual ~RooRealConstant()
{}