Logo ROOT   6.08/07
Reference Guide
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 NDim () const
 Retrieve the dimension of the function. More...
 
unsigned int NPar () const
 Return the number of Parameters. 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...
 
const double * Parameters () const
 Access the parameter values. 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
 
RooArgSetfParams
 
std::vector< double > fParamValues
 
RooAbsPdffPdf
 
RooArgSetfX
 

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/build/workspace/root-makedoc-v608/rootspi/rdoc/src/v6-08-00-patches/math/mathcore/test/fit/WrapperRooPdf.h>

Inheritance diagram for WrapperRooPdf:
[legend]

Constructor & Destructor Documentation

◆ WrapperRooPdf() [1/2]

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.

◆ WrapperRooPdf() [2/2]

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::~WrapperRooPdf ( )
inline

Definition at line 81 of file WrapperRooPdf.h.

Member Function Documentation

◆ Clone()

WrapperRooPdf* WrapperRooPdf::Clone ( ) const
inlinevirtual

clone the function

Implements ROOT::Math::IBaseFunctionMultiDim.

Definition at line 95 of file WrapperRooPdf.h.

◆ DoEvalPar()

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.

◆ DoSetParameters()

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

Definition at line 191 of file WrapperRooPdf.h.

◆ NDim()

unsigned int WrapperRooPdf::NDim ( ) const
inlinevirtual

Retrieve the dimension of the function.

Implements ROOT::Math::IBaseFunctionMultiDim.

Definition at line 103 of file WrapperRooPdf.h.

◆ NPar()

unsigned int WrapperRooPdf::NPar ( ) const
inlinevirtual

Return the number of Parameters.

Implements ROOT::Math::IBaseParam.

Definition at line 100 of file WrapperRooPdf.h.

◆ ParameterName()

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.

◆ Parameters()

const double* WrapperRooPdf::Parameters ( ) const
inlinevirtual

Access the parameter values.

Implements ROOT::Math::IBaseParam.

Definition at line 106 of file WrapperRooPdf.h.

◆ SetParameters()

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.

Member Data Documentation

◆ fNorm

bool WrapperRooPdf::fNorm
private

Definition at line 204 of file WrapperRooPdf.h.

◆ fParams

RooArgSet* WrapperRooPdf::fParams
mutableprivate

Definition at line 207 of file WrapperRooPdf.h.

◆ fParamValues

std::vector<double> WrapperRooPdf::fParamValues
mutableprivate

Definition at line 208 of file WrapperRooPdf.h.

◆ fPdf

RooAbsPdf* WrapperRooPdf::fPdf
mutableprivate

Definition at line 205 of file WrapperRooPdf.h.

◆ fX

RooArgSet* WrapperRooPdf::fX
mutableprivate

Definition at line 206 of file WrapperRooPdf.h.


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