57 RooAbsFunc(vars.getSize()), _func(&func), _vars(0), _nset(nset), _clipInvalid(clipInvalid), _xsave(0), _rangeName(rangeName), _funcSave(0)
71 if(0 ==
_vars[index]) {
93 RooAbsFunc(other), _func(other._func), _nset(nset?nset:other._nset), _xvecValid(other._xvecValid),
94 _clipInvalid(other._clipInvalid), _xsave(0), _rangeName(other._rangeName), _funcSave(other._funcSave)
99 for(
unsigned int index=0 ; index<
getDimension() ; index++) {
126 while ((arg=iter.
next())) {
127 if (dynamic_cast<RooAbsReal*>(arg)) {
137 list<RooAbsReal*>::iterator ci =
_compList.begin() ;
140 *si = (*ci)->_value ;
161 list<RooAbsReal*>::iterator ci =
_compList.begin() ;
164 (*ci)->_value = *
si ;
virtual std::list< Double_t > * binBoundaries(RooAbsRealLValue &, Double_t, Double_t) const
RooFIter fwdIterator() const
virtual void restoreXVec() const
Restore value of all variables to previously saved values by saveXVec()
static const char * str(const TNamed *ptr)
Return C++ string corresponding to given TNamed pointer.
virtual Double_t operator()(const Double_t xvector[]) const
Evaluate the bound RooAbsReal at the variable values provided in xvector.
virtual Double_t getMin(const char *name=0) const
UInt_t getDimension() const
Iterator abstract base class.
The TNamed class is the base class for all named ROOT classes.
std::map< std::string, std::string >::const_iterator iter
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'.
TIterator * createIterator(Bool_t dir=kIterForward) const
Double_t getVal(const RooArgSet *set=0) const
void loadValues(const Double_t xvector[]) const
Load the vector of variable values into the RooRealVars associated as variables with the bound RooAbs...
static RooNameReg & instance()
Return reference to singleton instance.
RooAbsRealLValue ** _vars
virtual const char * getName() const
Return name of function.
const TNamed * _rangeName
virtual std::list< Double_t > * binBoundaries(Int_t) const
virtual const char * GetName() const
Returns name of object.
virtual std::list< Double_t > * plotSamplingHint(RooAbsRealLValue &, Double_t, Double_t) const
virtual Double_t getMaxLimit(UInt_t dimension) const
Return upper limit on i-th variable.
virtual Double_t getMinLimit(UInt_t dimension) const
Return lower limit on i-th variable.
virtual void setVal(Double_t value)=0
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
virtual ~RooRealBinding()
Destructor.
double func(double *x, double *p)
RooArgSet * getComponents() const
Mother of all ROOT objects.
virtual Double_t getMax(const char *name=0) const
virtual TObject * Next()=0
std::list< RooAbsReal * > _compList
ClassImp(TSlaveInfo) Int_t TSlaveInfo const TSlaveInfo * si
Used to sort slaveinfos by ordinal.
std::list< Double_t > _compSave
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
virtual void saveXVec() const
Save value of all variables.
const char * constStr(const TNamed *namePtr)
Return C++ string corresponding to given TNamed pointer.
virtual std::list< Double_t > * plotSamplingHint(RooAbsRealLValue &, Double_t, Double_t) const