ROOT::Math::WrappedTF1 Class Reference
[Function Classes and Interfaces]

Class to Wrap a ROOT Function class (like TF1) in a IParamFunction interface of one dimensions to be used in the ROOT::Math numerical algorithms The parameter are stored in the WrappedFunction so we don't rely on the TF1 state values. More...

#include <WrappedTF1.h>

Inheritance diagram for ROOT::Math::WrappedTF1:

Inheritance graph
[legend]
Collaboration diagram for ROOT::Math::WrappedTF1:

Collaboration graph
[legend]

List of all members.

interface inherited from IParamFunction

const double * Parameters () const
 access the parameter values
void SetParameters (const double *p)
 set parameter values
unsigned int NPar () const
 return number of parameters
std::string ParameterName (unsigned int i) const
 return parameter name (from TF1)
double operator() (const double *x, const double *p)
 evaluate function passing coordinates x and vector of parameters

Public Types

typedef
ROOT::Math::IParamGradFunction 
BaseGradFunc
typedef
ROOT::Math::IParamGradFunction::BaseFunc 
BaseFunc

Public Member Functions

 WrappedTF1 ()
 WrappedTF1 (TF1 &f)
 constructor from a function pointer.
virtual ~WrappedTF1 ()
 Destructor (no operations).
 WrappedTF1 (const WrappedTF1 &rhs)
 Copy constructor.
WrappedTF1operator= (const WrappedTF1 &rhs)
 Assignment operator.
interface inherited from IFunction
ROOT::Math::IGenFunctionClone () const
 Clone the wrapper but not the original function.


Detailed Description

Class to Wrap a ROOT Function class (like TF1) in a IParamFunction interface of one dimensions to be used in the ROOT::Math numerical algorithms The parameter are stored in the WrappedFunction so we don't rely on the TF1 state values.

This allows for the copy of the wrapper function without the need to copy the TF1. The wrapper does not own the TF1 pointer, so it assumes it exists during the wrapper lifetime

Definition at line 38 of file WrappedTF1.h.


Member Typedef Documentation

typedef ROOT::Math::IParamGradFunction ROOT::Math::WrappedTF1::BaseGradFunc

Reimplemented from ROOT::Math::IParametricGradFunctionOneDim.

Definition at line 42 of file WrappedTF1.h.

typedef ROOT::Math::IParamGradFunction::BaseFunc ROOT::Math::WrappedTF1::BaseFunc

Reimplemented from ROOT::Math::IParametricGradFunctionOneDim.

Definition at line 43 of file WrappedTF1.h.


Constructor & Destructor Documentation

ROOT::Math::WrappedTF1::WrappedTF1 (  )  [inline]

Definition at line 45 of file WrappedTF1.h.

Referenced by Clone().

ROOT::Math::WrappedTF1::WrappedTF1 ( TF1 &  f  )  [inline]

constructor from a function pointer.

Definition at line 50 of file WrappedTF1.h.

virtual ROOT::Math::WrappedTF1::~WrappedTF1 (  )  [inline, virtual]

Destructor (no operations).

TF1 Function pointer is not owned

Definition at line 61 of file WrappedTF1.h.

ROOT::Math::WrappedTF1::WrappedTF1 ( const WrappedTF1 rhs  )  [inline]

Copy constructor.

Definition at line 66 of file WrappedTF1.h.


Member Function Documentation

WrappedTF1& ROOT::Math::WrappedTF1::operator= ( const WrappedTF1 rhs  )  [inline]

Assignment operator.

Definition at line 78 of file WrappedTF1.h.

References fFunc, and fParams.

ROOT::Math::IGenFunction* ROOT::Math::WrappedTF1::Clone (  )  const [inline, virtual]

Clone the wrapper but not the original function.

Implements ROOT::Math::IBaseFunctionOneDim.

Definition at line 92 of file WrappedTF1.h.

References WrappedTF1().

const double* ROOT::Math::WrappedTF1::Parameters (  )  const [inline, virtual]

access the parameter values

Implements ROOT::Math::IBaseParam.

Definition at line 100 of file WrappedTF1.h.

void ROOT::Math::WrappedTF1::SetParameters ( const double *  p  )  [inline, virtual]

set parameter values

Implements ROOT::Math::IBaseParam.

Definition at line 106 of file WrappedTF1.h.

unsigned int ROOT::Math::WrappedTF1::NPar (  )  const [inline, virtual]

return number of parameters

Implements ROOT::Math::IBaseParam.

Definition at line 114 of file WrappedTF1.h.

std::string ROOT::Math::WrappedTF1::ParameterName ( unsigned int  i  )  const [inline, virtual]

return parameter name (from TF1)

Reimplemented from ROOT::Math::IBaseParam.

Definition at line 120 of file WrappedTF1.h.

double ROOT::Math::WrappedTF1::operator() ( const double *  x,
const double *  p 
) [inline, virtual]

evaluate function passing coordinates x and vector of parameters

Reimplemented from ROOT::Math::IParametricFunctionOneDim.

Definition at line 125 of file WrappedTF1.h.


The documentation for this class was generated from the following file:
Generated on Thu Jan 17 12:10:10 2008 for ROOT Mathematical Libraries by  doxygen 1.5.3