WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
WireCell::BufferedHistogram2D Class Reference

#include <BufferedHistogram2D.h>

Public Member Functions

 BufferedHistogram2D (double xbinsize=1.0, double ybinsize=1.0, double xmin=0.0, double ymin=0.0)
 
bool fill (double x, double y, double v=1.0)
 Add v to the bin holding x,y. Return false if point is out of bounds. More...
 
std::vector< double > popx ()
 
int size () const
 popy is not yet implemented. More...
 
int xsize () const
 
int ysize () const
 
double xmin () const
 
double ymin () const
 
double xmax () const
 
double ymax () const
 
double xbinsize () const
 
double ybinsize () const
 

Detailed Description

A 2D histogram which can expand its range based on filling and have its edge sliced off.

Definition at line 12 of file BufferedHistogram2D.h.

Constructor & Destructor Documentation

◆ BufferedHistogram2D()

BufferedHistogram2D::BufferedHistogram2D ( double  xbinsize = 1.0,
double  ybinsize = 1.0,
double  xmin = 0.0,
double  ymin = 0.0 
)

Create a buffered 2d histogram with lower corner at xmin, ymin and with bins of given sizes.

Definition at line 7 of file BufferedHistogram2D.cxx.

Member Function Documentation

◆ fill()

bool BufferedHistogram2D::fill ( double  x,
double  y,
double  v = 1.0 
)

Add v to the bin holding x,y. Return false if point is out of bounds.

Definition at line 31 of file BufferedHistogram2D.cxx.

◆ popx()

std::vector< double > BufferedHistogram2D::popx ( )

Slice off the lowest X bin and return it as a vector. Note, the zeroth element of the vector corresponds to the bin starting at ymin but the length of vector may not represent the global ymax.

Definition at line 54 of file BufferedHistogram2D.cxx.

◆ size()

int WireCell::BufferedHistogram2D::size ( ) const
inline

popy is not yet implemented.

Definition at line 39 of file BufferedHistogram2D.h.

Here is the caller graph for this function:

◆ xbinsize()

double WireCell::BufferedHistogram2D::xbinsize ( ) const
inline

Definition at line 48 of file BufferedHistogram2D.h.

◆ xmax()

double BufferedHistogram2D::xmax ( ) const

Definition at line 13 of file BufferedHistogram2D.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xmin()

double WireCell::BufferedHistogram2D::xmin ( ) const
inline

Definition at line 44 of file BufferedHistogram2D.h.

Here is the caller graph for this function:

◆ xsize()

int WireCell::BufferedHistogram2D::xsize ( ) const
inline

Definition at line 40 of file BufferedHistogram2D.h.

Here is the call graph for this function:

◆ ybinsize()

double WireCell::BufferedHistogram2D::ybinsize ( ) const
inline

Definition at line 49 of file BufferedHistogram2D.h.

◆ ymax()

double BufferedHistogram2D::ymax ( ) const

Definition at line 17 of file BufferedHistogram2D.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ymin()

double WireCell::BufferedHistogram2D::ymin ( ) const
inline

Definition at line 45 of file BufferedHistogram2D.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ysize()

int BufferedHistogram2D::ysize ( ) const

Definition at line 21 of file BufferedHistogram2D.cxx.

Here is the caller graph for this function:

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