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() ) ) ) {
double DoEvalPar(const double *x, const double *p) const
Implementation of the evaluation function using the x values and the parameters.
const double * Parameters() const
Access the parameter values.
unsigned int NPar() const
Return the number of Parameters.
void DoSetParameters(const double *p) const
RooArgSet * getObservables(const RooArgSet &set, Bool_t valueOnly=kTRUE) const
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...
Iterator abstract base class.
WrapperRooPdf(RooAbsPdf *pdf, const std::string xvar="x", bool norm=true)
for pdf with only 1D observables using as default the name x
RooArgSet * getVariables(Bool_t stripDisconnected=kTRUE) const
Return RooArgSet with all variables (tree leaf nodes of expresssion tree)
void SetParameters(const double *p)
set parameters.
std::vector< double > fParamValues
TIterator * createIterator(Bool_t dir=kIterForward) const
Double_t getVal(const RooArgSet *set=0) const
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...
virtual void setVal(Double_t value)
Set value of variable to 'value'.
unsigned int NDim() const
Retrieve the dimension of the function.
RooAbsArg * find(const char *name) const
Find object with given name in list.
IParamFunction interface (abstract class) describing multi-dimensional parameteric functions It is a ...
virtual void Print(Option_t *options=0) const
This method must be overridden when a class wants to print itself.
virtual const char * GetName() const
Returns name of object.
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.
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
virtual TObject * Next()=0
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
WrapperRooPdf * Clone() const
clone the function
Documentation for the abstract class IBaseFunctionMultiDim.
double norm(double *x, double *p)