ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
WrapperRooPdf Class Reference

Definition at line 16 of file WrapperRooPdf.h.

Public Member Functions

 WrapperRooPdf (RooAbsPdf *pdf, const std::string xvar="x", bool norm=true)
 for pdf with only 1D observables using as default the name x More...
 
 WrapperRooPdf (RooAbsPdf *pdf, const RooArgSet &obsList, bool norm=true)
 for pdf with multi-dim observables specifying observables in the RooArgSet More...
 
 ~WrapperRooPdf ()
 
WrapperRooPdfClone () const
 clone the function More...
 
unsigned int NPar () const
 Return the number of Parameters. More...
 
unsigned int NDim () const
 Retrieve the dimension of the function. More...
 
const doubleParameters () const
 Access the parameter values. More...
 
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 name ("Par_0, Par_1, ...") More...
 
void SetParameters (const double *p)
 set parameters. More...
 
- Public Member Functions inherited from ROOT::Math::IParametricFunctionMultiDim
double operator() (const double *x, const double *p) const
 Evaluate function at a point x and for given parameters p. More...
 
- Public Member Functions inherited from ROOT::Math::IBaseFunctionMultiDim
 IBaseFunctionMultiDim ()
 
virtual ~IBaseFunctionMultiDim ()
 virtual destructor More...
 
double operator() (const double *x) const
 Evaluate the function at a point x[]. More...
 
- Public Member Functions inherited from ROOT::Math::IBaseParam
virtual ~IBaseParam ()
 Virtual Destructor (no operations) More...
 

Private Member Functions

double DoEvalPar (const double *x, const double *p) const
 Implementation of the evaluation function using the x values and the parameters. More...
 
void DoSetParameters (const double *p) const
 

Private Attributes

bool fNorm
 
RooAbsPdffPdf
 
RooArgSetfX
 
RooArgSetfParams
 
std::vector< doublefParamValues
 

Additional Inherited Members

- Public Types inherited from ROOT::Math::IParametricFunctionMultiDim
typedef IBaseFunctionMultiDim BaseFunc
 
- Public Types inherited from ROOT::Math::IBaseFunctionMultiDim
typedef IBaseFunctionMultiDim BaseFunc
 

#include </mnt/vdb/lsf/workspace/root-makedoc/rootspi/rdoc/src/master/math/mathcore/test/fit/WrapperRooPdf.h>

Inheritance diagram for WrapperRooPdf:
[legend]

Constructor & Destructor Documentation

WrapperRooPdf::WrapperRooPdf ( RooAbsPdf pdf,
const std::string  xvar = "x",
bool  norm = true 
)
inline

for pdf with only 1D observables using as default the name x

Definition at line 23 of file WrapperRooPdf.h.

Referenced by Clone().

WrapperRooPdf::WrapperRooPdf ( RooAbsPdf pdf,
const RooArgSet obsList,
bool  norm = true 
)
inline

for pdf with multi-dim observables specifying observables in the RooArgSet

Definition at line 54 of file WrapperRooPdf.h.

WrapperRooPdf::~WrapperRooPdf ( )
inline

Definition at line 81 of file WrapperRooPdf.h.

Member Function Documentation

WrapperRooPdf* WrapperRooPdf::Clone ( ) const
inlinevirtual

clone the function

Implements ROOT::Math::IBaseFunctionMultiDim.

Definition at line 95 of file WrapperRooPdf.h.

double WrapperRooPdf::DoEvalPar ( const double x,
const double p 
) const
inlineprivatevirtual

Implementation of the evaluation function using the x values and the parameters.

Must be implemented by derived classes

Implements ROOT::Math::IParametricFunctionMultiDim.

Definition at line 165 of file WrapperRooPdf.h.

void WrapperRooPdf::DoSetParameters ( const double p) const
inlineprivate

Definition at line 191 of file WrapperRooPdf.h.

Referenced by DoEvalPar(), and SetParameters().

unsigned int WrapperRooPdf::NDim ( ) const
inlinevirtual

Retrieve the dimension of the function.

Implements ROOT::Math::IBaseFunctionMultiDim.

Definition at line 103 of file WrapperRooPdf.h.

Referenced by main().

unsigned int WrapperRooPdf::NPar ( ) const
inlinevirtual

Return the number of Parameters.

Implements ROOT::Math::IBaseParam.

Definition at line 100 of file WrapperRooPdf.h.

Referenced by main(), and Parameters().

std::string WrapperRooPdf::ParameterName ( unsigned int  i) const
inlinevirtual

Return the name of the i-th parameter (starting from zero) Overwrite if want to avoid the default name ("Par_0, Par_1, ...")

Reimplemented from ROOT::Math::IBaseParam.

Definition at line 122 of file WrapperRooPdf.h.

Referenced by main().

const double* WrapperRooPdf::Parameters ( ) const
inlinevirtual

Access the parameter values.

Implements ROOT::Math::IBaseParam.

Definition at line 106 of file WrapperRooPdf.h.

Referenced by main().

void WrapperRooPdf::SetParameters ( const double p)
inlinevirtual

set parameters.

Order of parameter is the one defined by the RooPdf and must be checked by user

Implements ROOT::Math::IBaseParam.

Definition at line 140 of file WrapperRooPdf.h.

Referenced by main().

Member Data Documentation

bool WrapperRooPdf::fNorm
private

Definition at line 204 of file WrapperRooPdf.h.

Referenced by Clone(), and DoEvalPar().

RooArgSet* WrapperRooPdf::fParams
mutableprivate
std::vector<double> WrapperRooPdf::fParamValues
mutableprivate

Definition at line 208 of file WrapperRooPdf.h.

Referenced by Parameters().

RooAbsPdf* WrapperRooPdf::fPdf
mutableprivate

Definition at line 205 of file WrapperRooPdf.h.

Referenced by Clone(), DoEvalPar(), and WrapperRooPdf().

RooArgSet* WrapperRooPdf::fX
mutableprivate

Definition at line 206 of file WrapperRooPdf.h.

Referenced by Clone(), DoEvalPar(), NDim(), WrapperRooPdf(), and ~WrapperRooPdf().

Collaboration diagram for WrapperRooPdf:
[legend]

The documentation for this class was generated from the following file: