THnSparseCompactBinCoord is a class used by THnSparse internally.
It maps between an n-dimensional array of bin coordinates (indices) and its compact version, the THnSparseCoordCompression.
Definition at line 351 of file THnSparse.cxx.
Public Member Functions | |
THnSparseCompactBinCoord (Int_t dim, const Int_t *nbins) | |
Initialize a THnSparseCompactBinCoord object with "dim" dimensions and "bins" holding the number of bins for each dimension. | |
~THnSparseCompactBinCoord () | |
destruct a THnSparseCompactBinCoord | |
const Char_t * | GetBuffer () const |
Int_t * | GetCoord () |
ULong64_t | GetHash () const |
void | SetBuffer (const Char_t *buf) |
void | SetCoord (const Int_t *coord) |
void | UpdateCoord () |
Public Member Functions inherited from THnSparseCoordCompression | |
THnSparseCoordCompression (const THnSparseCoordCompression &other) | |
Construct a THnSparseCoordCompression from another one. | |
THnSparseCoordCompression (Int_t dim, const Int_t *nbins) | |
Initialize a THnSparseCoordCompression object with "dim" dimensions and "bins" holding the number of bins for each dimension; it stores the. | |
~THnSparseCoordCompression () | |
destruct a THnSparseCoordCompression | |
Int_t | GetBufferSize () const |
ULong64_t | GetHashFromBuffer (const Char_t *buf) const |
Calculate hash from compact bin index. | |
Int_t | GetNdimensions () const |
THnSparseCoordCompression & | operator= (const THnSparseCoordCompression &other) |
Set this to other if different. | |
ULong64_t | SetBufferFromCoord (const Int_t *coord_in, Char_t *buf_out) const |
Given the cbin coordinates coord_in, calculate ("compact") the bin coordinates and return them in buf_in. | |
void | SetCoordFromBuffer (const Char_t *buf_in, Int_t *coord_out) const |
Given the compressed coordinate buffer buf_in, calculate ("decompact") the bin coordinates and return them in coord_out. | |
Private Member Functions | |
THnSparseCompactBinCoord (const THnSparseCompactBinCoord &)=delete | |
THnSparseCompactBinCoord & | operator= (const THnSparseCompactBinCoord &)=delete |
Private Attributes | |
Char_t * | fCoordBuffer |
Int_t * | fCurrentBin |
ULong64_t | fHash |
Additional Inherited Members | |
Protected Member Functions inherited from THnSparseCoordCompression | |
Int_t | GetNumBits (Int_t n) const |
Initialize a THnSparseCompactBinCoord object with "dim" dimensions and "bins" holding the number of bins for each dimension.
Definition at line 391 of file THnSparse.cxx.
THnSparseCompactBinCoord::~THnSparseCompactBinCoord | ( | ) |
destruct a THnSparseCompactBinCoord
Definition at line 406 of file THnSparse.cxx.
|
privatedelete |
|
inline |
Definition at line 356 of file THnSparse.cxx.
|
inline |
Definition at line 355 of file THnSparse.cxx.
|
inline |
Definition at line 357 of file THnSparse.cxx.
|
privatedelete |
|
inline |
Definition at line 365 of file THnSparse.cxx.
|
inline |
Definition at line 361 of file THnSparse.cxx.
|
inline |
Definition at line 358 of file THnSparse.cxx.
|
private |
Definition at line 378 of file THnSparse.cxx.
|
private |
Definition at line 379 of file THnSparse.cxx.
|
private |
Definition at line 377 of file THnSparse.cxx.