HackAnalysis  2
Public Member Functions | Public Attributes | List of all members
HEP::Binning2D< TX, TY > Class Template Reference

#include <BinnedFn.h>

Public Member Functions

 Binning2D (const std::vector< TX > &xbinedges, const std::vector< TY > &ybinedges)
 Constructor taking lists of bin edges.
 
 Binning2D (const Binning1D< TX > &xbinning, const Binning1D< TY > &ybinning)
 Constructor taking 1D binnings.
 
size_t num_bins_x () const
 Get the number of bins in x.
 
size_t num_bins_y () const
 Get the number of bins in y.
 
size_t num_bins () const
 Get the total number of bins.
 
size_t size () const
 Get the total number of bins.
 
size_t get_index_x (const TX &x) const
 Get the x bin index enclosing position x.
 
size_t get_index_y (const TY &y) const
 Get the y bin index enclosing position y.
 
std::pair< size_t, size_t > get_index_pair (const TX &x, const TY &y) const
 Get the (x,y) bin index pair enclosing position (x,y)
 
void reset ()
 Clear the bin contents (but leave the binning intact)
 
void check () const
 Check consistency.
 

Public Attributes

Binning1D< TX > binningX
 The lists of bin edges.
 
Binning1D< TY > binningY
 

Detailed Description

template<typename TX = double, typename TY = double>
class HEP::Binning2D< TX, TY >

Simple class just to do 2D bin index lookups. Not a container.


The documentation for this class was generated from the following file: