ROOT 6.13/01 Reference Guide |
Base class for all the fit data types: Stores the coordinates and the DataOptions.
class holding the fit data points. It is template on the type of point, which can be for example a binned or unbinned point. It is basicaly a wrapper on an std::vector
Public Member Functions | |
FitData (unsigned int maxpoints=0, unsigned int dim=1) | |
construct with default option and data range More... | |
FitData (const DataOptions &opt, unsigned int maxpoints=0, unsigned int dim=1) | |
construct passing options and default data range More... | |
FitData (const DataRange &range, unsigned int maxpoints=0, unsigned int dim=1) | |
construct passing range and default options More... | |
FitData (const DataOptions &opt, const DataRange &range, unsigned int maxpoints=0, unsigned int dim=1) | |
construct passing options and data range More... | |
FitData (unsigned int n, const double *dataX) | |
constructor from external data for 1D data More... | |
FitData (unsigned int n, const double *dataX, const double *dataY) | |
constructor from external data for 2D data More... | |
FitData (unsigned int n, const double *dataX, const double *dataY, const double *dataZ) | |
constructor from external data for 3D data More... | |
FitData (const DataRange &range, unsigned int maxpoints, const double *dataX) | |
constructor for multi-dim external data and a range (data are copied inside according to the range) Uses as argument an iterator of a list (or vector) containing the const double * of the data An example could be the std::vector<const double *>::begin More... | |
FitData (const DataRange &range, unsigned int maxpoints, const double *dataX, const double *dataY) | |
constructor for multi-dim external data and a range (data are copied inside according to the range) Uses as argument an iterator of a list (or vector) containing the const double * of the data An example could be the std::vector<const double *>::begin More... | |
FitData (const DataRange &range, unsigned int maxpoints, const double *dataX, const double *dataY, const double *dataZ) | |
constructor for multi-dim external data and a range (data are copied inside according to the range) Uses as argument an iterator of a list (or vector) containing the const double * of the data An example could be the std::vector<const double *>::begin More... | |
template<class Iterator > | |
FitData (unsigned int n, unsigned int dim, Iterator dataItr) | |
constructor for multi-dim external data (data are not copied inside) Uses as argument an iterator of a list (or vector) containing the const double * of the data An example could be the std::vector<const double *>::begin In case of weighted data, the external data must have a dim+1 lists of data The apssed dim refers just to the coordinate size More... | |
template<class Iterator > | |
FitData (const DataRange &range, unsigned int maxpoints, unsigned int dim, Iterator dataItr) | |
constructor for multi-dim external data and a range (data are copied inside according to the range) Uses as argument an iterator of a list (or vector) containing the const double * of the data An example could be the std::vector<const double *>::begin More... | |
FitData (const FitData &rhs) | |
virtual | ~FitData () |
dummy virtual destructor More... | |
void | Add (double x) |
add one dim data with only coordinate and values More... | |
void | Add (const double *x) |
add multi-dim coordinate data with only value More... | |
void | Append (unsigned int newPoints, unsigned int dim=1) |
const double * | Coords (unsigned int ipoint) const |
return a pointer to the coordinates data for the given fit point More... | |
const double * | GetCoordComponent (unsigned int ipoint, unsigned int icoord) const |
returns a single coordinate component of a point. More... | |
const std::vector< const double *> & | GetCoordDataPtrs () const |
direct access to coord data ptrs More... | |
unsigned int | NDim () const |
return coordinate data dimension More... | |
unsigned int | NPoints () const |
return number of fit points More... | |
FitData & | operator= (const FitData &rhs) |
const DataOptions & | Opt () const |
access to options More... | |
DataOptions & | Opt () |
const DataRange & | Range () const |
access to range More... | |
unsigned int | Size () const |
return number of fit points More... | |
Protected Member Functions | |
void | InitCoordsVector () |
initializer routines to set the corresponding pointers right The vectors must NOT be resized after this initialization without setting the corresponding pointers in the same moment ( has to be an atomic operation in case of multithreading ). More... | |
template<class Iterator > | |
void | InitFromRange (Iterator dataItr) |
void | UnWrap () |
Static Protected Member Functions | |
static constexpr unsigned | VectorPadding (const unsigned) |
If VecCore is not defined, there is no vectorization available and the SIMD vector size will always be one. More... | |
Protected Attributes | |
unsigned int | fDim |
unsigned int | fMaxPoints |
unsigned int | fNPoints |
bool | fWrapped |
Private Attributes | |
std::vector< std::vector< double > > | fCoords |
This vector stores the vectorizable data: The inner vectors contain the coordinates data fCoords[0] is the vector for the x-coords fCoords[1] is the vector for the y-coords etc. More... | |
std::vector< const double *> | fCoordsPtr |
DataOptions | fOptions |
double * | fpTmpCoordVector |
DataRange | fRange |
#include <Fit/FitData.h>
|
explicit |
construct with default option and data range
Definition at line 20 of file FitData.cxx.
|
explicit |
construct passing options and default data range
Definition at line 32 of file FitData.cxx.
|
explicit |
construct passing range and default options
Definition at line 46 of file FitData.cxx.
ROOT::Fit::FitData::FitData | ( | const DataOptions & | opt, |
const DataRange & | range, | ||
unsigned int | maxpoints = 0 , |
||
unsigned int | dim = 1 |
||
) |
construct passing options and data range
Definition at line 59 of file FitData.cxx.
ROOT::Fit::FitData::FitData | ( | unsigned int | n, |
const double * | dataX | ||
) |
constructor from external data for 1D data
Definition at line 76 of file FitData.cxx.
ROOT::Fit::FitData::FitData | ( | unsigned int | n, |
const double * | dataX, | ||
const double * | dataY | ||
) |
constructor from external data for 2D data
Definition at line 96 of file FitData.cxx.
ROOT::Fit::FitData::FitData | ( | unsigned int | n, |
const double * | dataX, | ||
const double * | dataY, | ||
const double * | dataZ | ||
) |
constructor from external data for 3D data
Definition at line 117 of file FitData.cxx.
ROOT::Fit::FitData::FitData | ( | const DataRange & | range, |
unsigned int | maxpoints, | ||
const double * | dataX | ||
) |
constructor for multi-dim external data and a range (data are copied inside according to the range) Uses as argument an iterator of a list (or vector) containing the const double * of the data An example could be the std::vector<const double *>::begin
Definition at line 144 of file FitData.cxx.
ROOT::Fit::FitData::FitData | ( | const DataRange & | range, |
unsigned int | maxpoints, | ||
const double * | dataX, | ||
const double * | dataY | ||
) |
constructor for multi-dim external data and a range (data are copied inside according to the range) Uses as argument an iterator of a list (or vector) containing the const double * of the data An example could be the std::vector<const double *>::begin
Definition at line 164 of file FitData.cxx.
ROOT::Fit::FitData::FitData | ( | const DataRange & | range, |
unsigned int | maxpoints, | ||
const double * | dataX, | ||
const double * | dataY, | ||
const double * | dataZ | ||
) |
constructor for multi-dim external data and a range (data are copied inside according to the range) Uses as argument an iterator of a list (or vector) containing the const double * of the data An example could be the std::vector<const double *>::begin
Definition at line 184 of file FitData.cxx.
|
inline |
constructor for multi-dim external data (data are not copied inside) Uses as argument an iterator of a list (or vector) containing the const double * of the data An example could be the std::vector<const double *>::begin In case of weighted data, the external data must have a dim+1 lists of data The apssed dim refers just to the coordinate size
|
inline |
|
virtual |
dummy virtual destructor
Definition at line 201 of file FitData.cxx.
ROOT::Fit::FitData::FitData | ( | const FitData & | rhs | ) |
Definition at line 211 of file FitData.cxx.
|
inline |
|
inline |
void ROOT::Fit::FitData::Append | ( | unsigned int | newPoints, |
unsigned int | dim = 1 |
||
) |
Definition at line 248 of file FitData.cxx.
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
Definition at line 216 of file FitData.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestaticprotected |
|
private |
This vector stores the vectorizable data: The inner vectors contain the coordinates data fCoords[0] is the vector for the x-coords fCoords[1] is the vector for the y-coords etc.
The vector of pointers stores the pointers to the first elements of the corresponding elements
If fWrapped is true, fCoords is empty. the data can only be accessed by using fCoordsPtr.
|
private |
|
private |