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.
|
| | 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
|
| |
|
| 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 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.
|
| |
#include <Fit/SparseData.h>
◆ SparseData() [1/3]
| ROOT::Fit::SparseData::SparseData |
( |
std::vector< double > & | min, |
|
|
std::vector< double > & | max ) |
◆ SparseData() [2/3]
Constructor with a dimension and two arrays.
Definition at line 203 of file SparseData.cxx.
◆ SparseData() [3/3]
◆ ~SparseData()
| ROOT::Fit::SparseData::~SparseData |
( |
| ) |
|
|
override |
◆ Add() [1/3]
add multi-dim coordinate data with only value
Definition at line 268 of file FitData.h.
◆ Add() [2/3]
| void ROOT::Fit::FitData::Add |
( |
double | x | ) |
|
|
inlineinherited |
add one dim data with only coordinate and values
Definition at line 253 of file FitData.h.
◆ Add() [3/3]
Adds a new bin specified by the vectors.
Definition at line 241 of file SparseData.cxx.
◆ Append()
| void ROOT::Fit::FitData::Append |
( |
unsigned int | newPoints, |
|
|
unsigned int | dim = 1 ) |
|
inherited |
◆ Coords()
| const double * ROOT::Fit::FitData::Coords |
( |
unsigned int | ipoint | ) |
const |
|
inlineinherited |
return a pointer to the coordinates data for the given fit point
Definition at line 235 of file FitData.h.
◆ GetBinData()
| void ROOT::Fit::SparseData::GetBinData |
( |
BinData & | bd | ) |
const |
◆ GetBinDataIntegral()
| 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.
◆ GetBinDataNoZeros()
| void ROOT::Fit::SparseData::GetBinDataNoZeros |
( |
BinData & | bd | ) |
const |
Same as before, but including zero content bins.
Definition at line 348 of file SparseData.cxx.
◆ GetCoordComponent()
| const double * ROOT::Fit::FitData::GetCoordComponent |
( |
unsigned int | ipoint, |
|
|
unsigned int | icoord ) const |
|
inlineinherited |
returns a single coordinate component of a point.
This function is threadsafe in contrast to Coords(...) and can easily get vectorized by the compiler in loops running over the ipoint-index.
Definition at line 218 of file FitData.h.
◆ GetCoordDataPtrs()
| const std::vector< const double * > & ROOT::Fit::FitData::GetCoordDataPtrs |
( |
| ) |
const |
|
inlineinherited |
direct access to coord data ptrs
Definition at line 328 of file FitData.h.
◆ GetPoint()
◆ InitCoordsVector()
| void ROOT::Fit::FitData::InitCoordsVector |
( |
| ) |
|
|
inlineprotectedinherited |
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 ).
Definition at line 170 of file FitData.h.
◆ InitFromRange()
template<
class Iterator >
| void ROOT::Fit::FitData::InitFromRange |
( |
Iterator | dataItr | ) |
|
|
inlineprotectedinherited |
◆ NDim()
| unsigned int ROOT::Fit::SparseData::NDim |
( |
| ) |
const |
Returns the dimension of the object (bins)
Definition at line 235 of file SparseData.cxx.
◆ NPoints()
| unsigned int ROOT::Fit::SparseData::NPoints |
( |
| ) |
const |
◆ operator=()
◆ Opt() [1/2]
◆ Opt() [2/2]
◆ PrintList()
| void ROOT::Fit::SparseData::PrintList |
( |
| ) |
const |
Debug method to print the list of bins stored.
Definition at line 301 of file SparseData.cxx.
◆ Range()
◆ Size()
| unsigned int ROOT::Fit::FitData::Size |
( |
| ) |
const |
|
inlineinherited |
return number of fit points
Definition at line 292 of file FitData.h.
◆ UnWrap()
| void ROOT::Fit::FitData::UnWrap |
( |
| ) |
|
|
inlineprotectedinherited |
◆ VectorPadding()
|
|
inlinestaticconstexprprotectedinherited |
If std::experimental::simd is not available, there is no vectorization available and the SIMD vector size will always be one.
Then, as every number is a multiple of SIMD vector size, the padding will always be zero.
Definition at line 371 of file FitData.h.
◆ fCoords
| std::vector< std::vector< double > > ROOT::Fit::FitData::fCoords |
|
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.
Definition at line 402 of file FitData.h.
◆ fCoordsPtr
| std::vector< const double * > ROOT::Fit::FitData::fCoordsPtr |
|
privateinherited |
◆ fDim
| unsigned int ROOT::Fit::FitData::fDim |
|
protectedinherited |
◆ fList
◆ fMaxPoints
| unsigned int ROOT::Fit::FitData::fMaxPoints |
|
protectedinherited |
◆ fNPoints
| unsigned int ROOT::Fit::FitData::fNPoints |
|
protectedinherited |
◆ fOptions
◆ fpTmpCoordVector
| double* ROOT::Fit::FitData::fpTmpCoordVector |
|
privateinherited |
◆ fRange
◆ fWrapped
| bool ROOT::Fit::FitData::fWrapped |
|
protectedinherited |
The documentation for this class was generated from the following files: