ROOT logo
ROOT » HIST » HIST » ROOT::Math::WrappedMultiTF1

class ROOT::Math::WrappedMultiTF1: public ROOT::Math::IParametricFunctionMultiDim

Function Members (Methods)

virtual doubleDoEvalPar(const double* x, const double* p) const

Data Members

unsigned intfDimcached value of dimension
TF1*fFuncpointer to ROOT function
vector<double>fParamscached vector with parameter values

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

WrappedMultiTF1(TF1& f, unsigned int dim = 0)
      constructor from a function pointer to a TF1
      If dim = 0 dimension is taken from TF1::GetNdim().
      IN case of multi-dimensional function created using directly TF1 object the dimension
      returned by TF1::GetNdim is always 1. The user must then pass the correct value of dim

virtual ~WrappedMultiTF1()
      Destructor (no operations). Function pointer is not owned

WrappedMultiTF1(const ROOT::Math::WrappedMultiTF1& rhs)
      Copy constructor

IMultiGenFunction * Clone() const
 @name interface inherited from IFunction 

       Clone the wrapper but not the original function

unsigned int NDim() const
 function dimension
const double * Parameters() const
 @name interface inherited from IParamFunction 
 get the parameter values (return values cached inside, those inside TF1 might be different)
void SetParameters(const double* p)
 set parameter values (only the cached one in this class,leave unchanges those of TF1)
unsigned int NPar() const
 return number of parameters
std::string ParameterName(unsigned int i) const
 return parameter name (from TF1)
double DoEvalPar(const double* x, const double* p) const
 evaluate function passing coordinates x and vector of parameters