ROOT  6.06/08
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 double * Coords (unsigned int ipoint) const
 
double Coord (unsigned int ipoint, unsigned int icoord) const
 
const double * CoordErrors (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 double * fValues
 
const double * fErrors
 
std::vector< const double * > fCoords
 
std::vector< const double * > fErrCoords
 
std::vector< double > fX
 
std::vector< double > fErr
 

#include <Fit/DataVector.h>

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

Constructor & Destructor Documentation

§ DataWrapper() [1/6]

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.

§ DataWrapper() [2/6]

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.

§ DataWrapper() [3/6]

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.

§ DataWrapper() [4/6]

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.

§ DataWrapper() [5/6]

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.

§ DataWrapper() [6/6]

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.

§ ~DataWrapper()

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

Definition at line 323 of file DataVector.h.

Member Function Documentation

§ Coord()

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

Definition at line 341 of file DataVector.h.

§ CoordError()

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

Definition at line 357 of file DataVector.h.

§ CoordErrors()

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

§ Coords()

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

§ Error()

double ROOT::Fit::DataWrapper::Error ( unsigned int  ipoint) const
inline

§ Value()

double ROOT::Fit::DataWrapper::Value ( unsigned int  ipoint) const
inline

Member Data Documentation

§ fCoords

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

Definition at line 379 of file DataVector.h.

§ fDim

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

Definition at line 376 of file DataVector.h.

§ fErr

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

Definition at line 383 of file DataVector.h.

§ fErrCoords

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

Definition at line 380 of file DataVector.h.

§ fErrors

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

Definition at line 378 of file DataVector.h.

§ fValues

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

Definition at line 377 of file DataVector.h.

§ fX

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

Definition at line 382 of file DataVector.h.


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