58 RooAbsFunc(vars.getSize()), _func(&func), _vars(0), _nset(nset), _clipInvalid(clipInvalid), _xsave(0), _rangeName(rangeName), _funcSave(0)
72 if(0 ==
_vars[index]) {
100 for(
unsigned int index=0 ; index<
getDimension() ; index++) {
127 while ((arg=iter.
next())) {
128 if (dynamic_cast<RooAbsReal*>(arg)) {
138 list<RooAbsReal*>::iterator ci =
_compList.begin() ;
139 list<Double_t>::iterator si =
_compSave.begin() ;
141 *si = (*ci)->_value ;
162 list<RooAbsReal*>::iterator ci =
_compList.begin() ;
163 list<Double_t>::iterator si =
_compSave.begin() ;
165 (*ci)->_value = *si ;
virtual Double_t getMin(const char *name=0) const
virtual const char * GetName() const
Returns name of object.
TIterator * createIterator(Bool_t dir=kIterForward) const
virtual Double_t getMax(const char *name=0) const
Double_t getVal(const RooArgSet *set=0) const
static const char * str(const TNamed *ptr)
Return C++ string corresponding to given TNamed pointer.
virtual std::list< Double_t > * binBoundaries(RooAbsRealLValue &, Double_t, Double_t) const
virtual Double_t getMinLimit(UInt_t dimension) const
Return lower limit on i-th variable.
Iterator abstract base class.
virtual Double_t getMaxLimit(UInt_t dimension) const
Return upper limit on i-th variable.
The TNamed class is the base class for all named ROOT classes.
RooRealBinding(const RooAbsReal &func, const RooArgSet &vars, const RooArgSet *nset=0, Bool_t clipInvalid=kFALSE, const TNamed *rangeName=0)
Construct a lightweight function binding of RooAbsReal func to variables 'vars'.
virtual Double_t operator()(const Double_t xvector[]) const
Evaluate the bound RooAbsReal at the variable values provided in xvector.
static RooNameReg & instance()
Return reference to singleton instance.
virtual void saveXVec() const
Save value of all variables.
RooAbsRealLValue ** _vars
RooArgSet * getComponents() const
UInt_t getDimension() const
const TNamed * _rangeName
virtual void setVal(Double_t value)=0
virtual const char * getName() const
Return name of function.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
virtual ~RooRealBinding()
Destructor.
RooFIter fwdIterator() const
virtual std::list< Double_t > * binBoundaries(Int_t) const
double func(double *x, double *p)
void loadValues(const Double_t xvector[]) const
Load the vector of variable values into the RooRealVars associated as variables with the bound RooAbs...
virtual std::list< Double_t > * plotSamplingHint(RooAbsRealLValue &, Double_t, Double_t) const
Mother of all ROOT objects.
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
virtual std::list< Double_t > * plotSamplingHint(RooAbsRealLValue &, Double_t, Double_t) const
virtual TObject * Next()=0
std::list< RooAbsReal * > _compList
std::list< Double_t > _compSave
Lightweight interface adaptor that binds a RooAbsReal object to a subset of its servers and present i...
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
virtual void restoreXVec() const
Restore value of all variables to previously saved values by saveXVec()
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
const char * constStr(const TNamed *namePtr)
Return C++ string corresponding to given TNamed pointer.