HackAnalysis
2
|
#include <BinnedFn.h>
Public Member Functions | |
Binning1D (const std::vector< TX > &binedges) | |
Constructor taking a list of bin edges. | |
size_t | num_bins () const |
Get the number of bins. | |
size_t | size () const |
Get the number of bins. | |
size_t | get_index (const TX &x) const |
void | reset () |
Clear the bin contents (but leave the binning intact) | |
void | check () const |
Check consistency. | |
Public Attributes | |
std::vector< TX > | edges |
The list of bin edges. | |
Simple class just to do 1D bin index lookups. Not a container.
|
inline |
Get the bin index enclosing position x