ROOT  6.06/09
Reference Guide
Public Member Functions | Private Attributes | List of all members
ROOT::Fit::DataWrapper Class Reference

class maintaining a pointer to external data Using this class avoids copying the data when performing a fit NOTE: this class is not thread-safe and should not be used in parallel fits

Definition at line 222 of file DataVector.h.

Public Member Functions

 DataWrapper (const double *dataX)
 specialized constructor for 1D data without errors and values More...
 
 DataWrapper (const double *dataX, const double *val, const double *eval, const double *ex)
 constructor for 1D data (if errors are not present a null pointer should be passed) More...
 
 DataWrapper (const double *dataX, const double *dataY, const double *val, const double *eval, const double *ex, const double *ey)
 constructor for 2D data (if errors are not present a null pointer should be passed) More...
 
 DataWrapper (const double *dataX, const double *dataY, const double *dataZ, const double *val, const double *eval, const double *ex, const double *ey, const double *ez)
 constructor for 3D data (if errors are not present a null pointer should be passed) More...
 
template<class Iterator >
 DataWrapper (unsigned int dim, Iterator coordItr)
 constructor for multi-dim data without errors More...
 
template<class Iterator >
 DataWrapper (size_t dim, Iterator coordItr, const double *val, const double *eval, Iterator errItr)
 constructor for multi-dim data with errors and values (if errors are not present a null pointer should be passed) More...
 
 ~DataWrapper ()
 
const doubleCoords (unsigned int ipoint) const
 
double Coord (unsigned int ipoint, unsigned int icoord) const
 
const doubleCoordErrors (unsigned int ipoint) const
 
double CoordError (unsigned int ipoint, unsigned int icoord) const
 
double Value (unsigned int ipoint) const
 
double Error (unsigned int ipoint) const
 

Private Attributes

unsigned int fDim
 
const doublefValues
 
const doublefErrors
 
std::vector< const double * > fCoords
 
std::vector< const double * > fErrCoords
 
std::vector< doublefX
 
std::vector< doublefErr
 

#include <Fit/DataVector.h>

+ Collaboration diagram for ROOT::Fit::DataWrapper:

Constructor & Destructor Documentation

ROOT::Fit::DataWrapper::DataWrapper ( const double dataX)
inlineexplicit

specialized constructor for 1D data without errors and values

Definition at line 229 of file DataVector.h.

ROOT::Fit::DataWrapper::DataWrapper ( const double dataX,
const double val,
const double eval,
const double ex 
)
inline

constructor for 1D data (if errors are not present a null pointer should be passed)

Definition at line 243 of file DataVector.h.

ROOT::Fit::DataWrapper::DataWrapper ( const double dataX,
const double dataY,
const double val,
const double eval,
const double ex,
const double ey 
)
inline

constructor for 2D data (if errors are not present a null pointer should be passed)

Definition at line 259 of file DataVector.h.

ROOT::Fit::DataWrapper::DataWrapper ( const double dataX,
const double dataY,
const double dataZ,
const double val,
const double eval,
const double ex,
const double ey,
const double ez 
)
inline

constructor for 3D data (if errors are not present a null pointer should be passed)

Definition at line 277 of file DataVector.h.

template<class Iterator >
ROOT::Fit::DataWrapper::DataWrapper ( unsigned int  dim,
Iterator  coordItr 
)
inline

constructor for multi-dim data without errors

Definition at line 298 of file DataVector.h.

template<class Iterator >
ROOT::Fit::DataWrapper::DataWrapper ( size_t  dim,
Iterator  coordItr,
const double val,
const double eval,
Iterator  errItr 
)
inline

constructor for multi-dim data with errors and values (if errors are not present a null pointer should be passed)

Definition at line 311 of file DataVector.h.

ROOT::Fit::DataWrapper::~DataWrapper ( )
inline

Definition at line 323 of file DataVector.h.

Member Function Documentation

double ROOT::Fit::DataWrapper::Coord ( unsigned int  ipoint,
unsigned int  icoord 
) const
inline

Definition at line 341 of file DataVector.h.

double ROOT::Fit::DataWrapper::CoordError ( unsigned int  ipoint,
unsigned int  icoord 
) const
inline

Definition at line 357 of file DataVector.h.

const double* ROOT::Fit::DataWrapper::CoordErrors ( unsigned int  ipoint) const
inline
const double* ROOT::Fit::DataWrapper::Coords ( unsigned int  ipoint) const
inline
double ROOT::Fit::DataWrapper::Error ( unsigned int  ipoint) const
inline
double ROOT::Fit::DataWrapper::Value ( unsigned int  ipoint) const
inline

Member Data Documentation

std::vector<const double *> ROOT::Fit::DataWrapper::fCoords
private

Definition at line 379 of file DataVector.h.

Referenced by Coord(), Coords(), and DataWrapper().

unsigned int ROOT::Fit::DataWrapper::fDim
private

Definition at line 376 of file DataVector.h.

Referenced by CoordErrors(), and Coords().

std::vector<double> ROOT::Fit::DataWrapper::fErr
mutableprivate

Definition at line 383 of file DataVector.h.

Referenced by CoordErrors().

std::vector<const double *> ROOT::Fit::DataWrapper::fErrCoords
private

Definition at line 380 of file DataVector.h.

Referenced by CoordError(), CoordErrors(), and DataWrapper().

const double* ROOT::Fit::DataWrapper::fErrors
private

Definition at line 378 of file DataVector.h.

Referenced by Error().

const double* ROOT::Fit::DataWrapper::fValues
private

Definition at line 377 of file DataVector.h.

Referenced by Value().

std::vector<double> ROOT::Fit::DataWrapper::fX
mutableprivate

Definition at line 382 of file DataVector.h.

Referenced by Coords().


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