LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
Manages a cell-like division of a coordinate. More...
Public Member Functions | |
GridAxisClass () | |
Default constructor: an invalid range. More... | |
GridAxisClass (size_t nDiv, float new_min, float new_max) | |
Constructor: sets the limits and the number of cells. More... | |
bool | hasCell (std::ptrdiff_t iCell) const |
Returns whether the cell is present or not. More... | |
bool | hasCoord (float coord) const |
Returns whether the coordinate is included in the range or not. More... | |
float | Length () const |
Returns the length of the axis. More... | |
size_t | NCells () const |
Returns the length of the axis. More... | |
bool | isEmpty () const |
Returns whether minimum and maximum match. More... | |
float | CellSize () const |
Returns the cell size. More... | |
float | LowerEdge (std::ptrdiff_t iCell) const |
Returns the lower edge of the cell. More... | |
float | UpperEdge (std::ptrdiff_t iCell) const |
Returns the upper edge of the cell. More... | |
bool | Init (size_t nDiv, float new_min, float new_max) |
Initialize the axis, returns whether cell size is finite. More... | |
bool | SetLimits (float new_min, float new_max) |
Initialize the axis limits, returns whether cell size is finite. More... | |
bool | SetMinCellSize (float min_size) |
bool | SetMaxCellSize (float max_size) |
bool | SetCellSizeBoundary (float min_size, float max_size) |
template<typename Stream > | |
void | Dump (Stream &&out) const |
std::ptrdiff_t | GetCell (float coord) const |
Returns the index of the specified cell. More... | |
std::ptrdiff_t | operator() (float coord) const |
Returns the index of the specified cell. More... | |
float | Min () const |
Returns the extremes of the axis. More... | |
float | Max () const |
Returns the extremes of the axis. More... | |
Private Attributes | |
size_t | n_cells |
number of cells in the axis More... | |
float | min |
float | max |
extremes of the axis More... | |
float | cell_size |
size of each cell More... | |
Manages a cell-like division of a coordinate.
Definition at line 323 of file RawDataDrawer.cxx.
|
inline |
Default constructor: an invalid range.
Definition at line 326 of file RawDataDrawer.cxx.
|
inline |
Constructor: sets the limits and the number of cells.
Definition at line 329 of file RawDataDrawer.cxx.
References geo::vect::coord().
|
inline |
Returns the cell size.
Definition at line 363 of file RawDataDrawer.cxx.
void evd::details::GridAxisClass::Dump | ( | Stream && | out | ) | const |
Definition at line 1855 of file RawDataDrawer.cxx.
Referenced by evd::details::CellGridClass::Dump().
std::ptrdiff_t evd::details::GridAxisClass::GetCell | ( | float | coord | ) | const |
Returns the index of the specified cell.
Definition at line 1801 of file RawDataDrawer.cxx.
References min.
Referenced by evd::details::CellGridClass::GetCell().
|
inline |
Returns whether the cell is present or not.
Definition at line 339 of file RawDataDrawer.cxx.
Referenced by evd::details::CellGridClass::GetCell().
|
inline |
Returns whether the coordinate is included in the range or not.
Definition at line 343 of file RawDataDrawer.cxx.
References min.
bool evd::details::GridAxisClass::Init | ( | size_t | nDiv, |
float | new_min, | ||
float | new_max | ||
) |
Initialize the axis, returns whether cell size is finite.
Definition at line 1807 of file RawDataDrawer.cxx.
References max.
|
inline |
|
inline |
|
inline |
Returns the lower edge of the cell.
Definition at line 366 of file RawDataDrawer.cxx.
Referenced by evd::details::CellGridClass::GetCellBox().
|
inline |
|
inline |
|
inline |
Returns the length of the axis.
Definition at line 357 of file RawDataDrawer.cxx.
Referenced by evd::details::CellGridClass::GetCell(), and evd::details::CellGridClass::GetCellBox().
|
inline |
Returns the index of the specified cell.
Definition at line 335 of file RawDataDrawer.cxx.
|
inline |
Expands the cell (at fixed range) to meet maximum cell size
Definition at line 389 of file RawDataDrawer.cxx.
bool evd::details::GridAxisClass::SetLimits | ( | float | new_min, |
float | new_max | ||
) |
Initialize the axis limits, returns whether cell size is finite.
Definition at line 1816 of file RawDataDrawer.cxx.
bool evd::details::GridAxisClass::SetMaxCellSize | ( | float | max_size | ) |
Expands the cell (at fixed range) to meet maximum cell size
Definition at line 1840 of file RawDataDrawer.cxx.
References max.
bool evd::details::GridAxisClass::SetMinCellSize | ( | float | min_size | ) |
Expands the cell (at fixed range) to meet minimum cell size
Definition at line 1826 of file RawDataDrawer.cxx.
References max.
|
inline |
Returns the upper edge of the cell.
Definition at line 370 of file RawDataDrawer.cxx.
Referenced by evd::details::CellGridClass::GetCellBox().
|
private |
size of each cell
Definition at line 399 of file RawDataDrawer.cxx.
|
private |
extremes of the axis
Definition at line 397 of file RawDataDrawer.cxx.
|
private |
Definition at line 397 of file RawDataDrawer.cxx.
|
private |
number of cells in the axis
Definition at line 396 of file RawDataDrawer.cxx.