3 #ifndef ROOT_WrapperRooPdf 4 #define ROOT_WrapperRooPdf 33 if (!arg) std::cout <<
"Error - observable " << xvar <<
"is not in the list of pdf variables" << std::endl;
112 std::vector<double>::iterator vpitr =
fParamValues.begin();
115 while( ( var = dynamic_cast<RooRealVar*>(itr->
Next() ) ) ) {
126 unsigned int index = 0;
127 while( ( var = dynamic_cast<RooRealVar*>(itr->
Next() ) ) ) {
129 if (index == i)
return std::string(var->
GetName() );
173 while( ( var = dynamic_cast<RooRealVar*>(itr->
Next() ) ) ) {
195 while( ( var = dynamic_cast<RooRealVar*>(itr->
Next() ) ) ) {
RooArgSet * getVariables(Bool_t stripDisconnected=kTRUE) const
Return RooArgSet with all variables (tree leaf nodes of expresssion tree)
virtual const char * GetName() const
Returns name of object.
TIterator * createIterator(Bool_t dir=kIterForward) const
RooArgSet * getObservables(const RooArgSet &set, Bool_t valueOnly=kTRUE) const
Double_t getVal(const RooArgSet *set=0) const
Iterator abstract base class.
unsigned int NPar() const
Return the number of Parameters.
WrapperRooPdf(RooAbsPdf *pdf, const std::string xvar="x", bool norm=true)
for pdf with only 1D observables using as default the name x
void SetParameters(const double *p)
set parameters.
std::vector< double > fParamValues
virtual void Print(Option_t *options=0) const
This method must be overridden when a class wants to print itself.
RooRealVar represents a fundamental (non-derived) real valued object.
virtual void setVal(Double_t value)
Set value of variable to 'value'.
Documentation for the abstract class IBaseFunctionMultiDim.
double DoEvalPar(const double *x, const double *p) const
unsigned int NDim() const
Retrieve the dimension of the function.
WrapperRooPdf(RooAbsPdf *pdf, const RooArgSet &obsList, bool norm=true)
for pdf with multi-dim observables specifying observables in the RooArgSet
static void setDirtyInhibit(Bool_t flag)
Control global dirty inhibit mode.
IParamFunction interface (abstract class) describing multi-dimensional parameteric functions It is a ...
RooAbsArg * find(const char *name) const
Find object with given name in list.
RooArgSet * getParameters(const RooAbsData *data, Bool_t stripDisconnected=kTRUE) const
Create a list of leaf nodes in the arg tree starting with ourself as top node that don't match any of...
WrapperRooPdf * Clone() const
clone the function
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
virtual TObject * Next()=0
std::string ParameterName(unsigned int i) const
Return the name of the i-th parameter (starting from zero) Overwrite if want to avoid the default nam...
const double * Parameters() const
Access the parameter values.
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
double norm(double *x, double *p)
void DoSetParameters(const double *p) const