SparseData class representing the data of a THNSparse histogram The data needs to be converted to a BinData class before fitting using the GetBinData functions.
Definition at line 35 of file SparseData.h.
Public Member Functions | |
| SparseData (const SparseData &rhs) | |
| Copy constructor. | |
| SparseData (const unsigned int dim, double min[], double max[]) | |
| Constructor with a dimension and two arrays. | |
| SparseData (std::vector< double > &min, std::vector< double > &max) | |
| Constructor with a vector. | |
| ~SparseData () override | |
| Destructor. | |
| void | Add (const double *x) |
| add multi-dim coordinate data with only value | |
| void | Add (double x) |
| add one dim data with only coordinate and values | |
| void | Add (std::vector< double > &min, std::vector< double > &max, const double content, const double error=1.0) |
| Adds a new bin specified by the vectors. | |
| 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 | |
| void | GetBinData (BinData &) const |
| Transforms the data into a ROOT::Fit::BinData structure. | |
| void | GetBinDataIntegral (BinData &) const |
| Same as before, but returning a BinData with integral format (containing bin edges). | |
| void | GetBinDataNoZeros (BinData &) const |
| Same as before, but including zero content bins. | |
| const double * | GetCoordComponent (unsigned int ipoint, unsigned int icoord) const |
| returns a single coordinate component of a point. | |
| const std::vector< const double * > & | GetCoordDataPtrs () const |
| direct access to coord data ptrs | |
| void | GetPoint (const unsigned int i, std::vector< double > &min, std::vector< double > &max, double &content, double &error) |
| unsigned int | NDim () const |
| Returns the dimension of the object (bins). | |
| unsigned int | NPoints () const |
| Returns the number of points stored. | |
| SparseData & | operator= (const SparseData &rhs) |
| Assignment operator. | |
| DataOptions & | Opt () |
| const DataOptions & | Opt () const |
| access to options | |
| void | PrintList () const |
| Debug method to print the list of bins stored. | |
| const DataRange & | Range () const |
| access to range | |
| unsigned int | Size () const |
| return number of fit points | |
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 ). | |
| template<class Iterator> | |
| void | InitFromRange (Iterator dataItr) |
| void | UnWrap () |
Static Protected Member Functions | |
| static constexpr unsigned | VectorPadding (const unsigned) |
| If std::experimental::simd is not available, there is no vectorization available and the SIMD vector size will always be one. | |
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. | |
| std::vector< const double * > | fCoordsPtr |
| std::unique_ptr< ProxyListBox > | fList |
| DataOptions | fOptions |
| double * | fpTmpCoordVector |
| DataRange | fRange |
#include <Fit/SparseData.h>
Constructor with a vector.
Definition at line 193 of file SparseData.cxx.
Constructor with a dimension and two arrays.
Definition at line 203 of file SparseData.cxx.
| ROOT::Fit::SparseData::SparseData | ( | const SparseData & | rhs | ) |
Copy constructor.
Definition at line 215 of file SparseData.cxx.
|
override |
Destructor.
Definition at line 227 of file SparseData.cxx.
|
inlineinherited |
|
inlineinherited |
| void ROOT::Fit::SparseData::Add | ( | std::vector< double > & | min, |
| std::vector< double > & | max, | ||
| const double | content, | ||
| const double | error = 1.0 ) |
Adds a new bin specified by the vectors.
Definition at line 241 of file SparseData.cxx.
Definition at line 251 of file FitData.cxx.
| void ROOT::Fit::SparseData::GetBinData | ( | BinData & | bd | ) | const |
Transforms the data into a ROOT::Fit::BinData structure.
Definition at line 308 of file SparseData.cxx.
| void ROOT::Fit::SparseData::GetBinDataIntegral | ( | BinData & | bd | ) | const |
Same as before, but returning a BinData with integral format (containing bin edges).
Definition at line 330 of file SparseData.cxx.
| void ROOT::Fit::SparseData::GetBinDataNoZeros | ( | BinData & | bd | ) | const |
Same as before, but including zero content bins.
Definition at line 348 of file SparseData.cxx.
|
inlineinherited |
| void ROOT::Fit::SparseData::GetPoint | ( | const unsigned int | i, |
| std::vector< double > & | min, | ||
| std::vector< double > & | max, | ||
| double & | content, | ||
| double & | error ) |
Definition at line 278 of file SparseData.cxx.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
| unsigned int ROOT::Fit::SparseData::NDim | ( | ) | const |
Returns the dimension of the object (bins).
Definition at line 235 of file SparseData.cxx.
| unsigned int ROOT::Fit::SparseData::NPoints | ( | ) | const |
Returns the number of points stored.
Definition at line 229 of file SparseData.cxx.
| SparseData & ROOT::Fit::SparseData::operator= | ( | const SparseData & | rhs | ) |
Assignment operator.
Definition at line 220 of file SparseData.cxx.
|
inlineinherited |
|
inlineinherited |
| void ROOT::Fit::SparseData::PrintList | ( | ) | const |
Debug method to print the list of bins stored.
Definition at line 301 of file SparseData.cxx.
|
inlineinherited |
|
inlineinherited |
|
inlineprotectedinherited |
|
inlinestaticconstexprprotectedinherited |
|
privateinherited |
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.
|
privateinherited |
|
private |
Definition at line 76 of file SparseData.h.
|
protectedinherited |
|
protectedinherited |
|
privateinherited |
|
privateinherited |