Class SparseHisto4d

Class Documentation

class SparseHisto4d

A class to histogram in 4 dimensions. Uses Sparse storage. The number of bin is limited to 256 per dimension. Used in ListMatch.cc

Public Functions

SparseHisto4d()
SparseHisto4d(const int n1, double min1, double max1, const int n2, double min2, double max2, const int n3, double min3, double max3, const int n4, double min4, double max4, const int nEntries)
void fill(const double x[4])
void fill(const double x1, const double x2, const double x3, const double x4)
int maxBin(double x[4])
void zeroBin(double x[4])
void binLimits(const double x[4], const int idim, double &xMin, double &xMax) const

return the bin limits of dimension idim (0<=idim<4), around point X.

int getNEntries() const
~SparseHisto4d()
int code_value(const double x[4]) const
void inverse_code(const int code, double x[4]) const
void sort()
void dump() const