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:
RooRealConstant()
RooRealConstant(const RooRealConstant&)
virtual~RooRealConstant()
static TClass*Class()
static voidcleanup()
virtual TClass*IsA() const
RooRealConstant&operator=(const RooRealConstant&)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& 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 avaliable,
 otherwise create a new one on the fly.
void init()
 One-time initialization of constants database
inline RooRealConstant(const RooRealConstant& )
{}
virtual ~RooRealConstant()
{}

Last change: Wed Jun 25 08:33:58 2008
Last generated: 2008-06-25 08:33
Copyright (c) 2000-2005, Regents of the University of California *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.