LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
Range of coordinates. More...
#include "SpacePartition.h"
Public Types | |
using | Base_t = CoordRange< Coord > |
using | Coord_t = typename Base_t::Coord_t |
data type for coordinate More... | |
using | Range_t = CoordRange< Coord > |
this type More... | |
Public Member Functions | |
CoordRangeCells (Coord_t low, Coord_t high, Coord_t cs) | |
Constructor: assigns range and cell size. More... | |
CoordRangeCells (Base_t const &range, Coord_t cs) | |
Constructor: assigns range and cell size. More... | |
std::ptrdiff_t | findCell (Coord_t c) const |
Returns the index of the cell for coordinate c. More... | |
bool | contains (Coord_t c) const |
Returns whether c is contained in the range (inclusve) More... | |
bool | empty () const |
Returns whether the range is empty. More... | |
bool | valid () const |
Returns whether the range is valid (empty is also valid) More... | |
Coord_t | size () const |
Returns the size of the range (no check) More... | |
Coord_t | offset (Coord_t c) const |
Returns the distance of the specified coordinate from the lower bound. More... | |
bool | operator== (const Range_t &as) const |
Returns whether the specified range has the same limits as this. More... | |
bool | operator!= (const Range_t &than) const |
Returns whether the specified range has limits different than this. More... | |
Public Attributes | |
Coord_t | cellSize |
size of a single cell More... | |
Coord_t | lower |
lower boundary More... | |
Coord_t | upper |
upper boundary More... | |
Range of coordinates.
Definition at line 135 of file SpacePartition.h.
using lar::example::CoordRangeCells< Coord >::Base_t = CoordRange<Coord> |
Definition at line 136 of file SpacePartition.h.
using lar::example::CoordRangeCells< Coord >::Coord_t = typename Base_t::Coord_t |
data type for coordinate
Definition at line 139 of file SpacePartition.h.
|
inherited |
this type
Definition at line 103 of file SpacePartition.h.
lar::example::CoordRangeCells< Coord >::CoordRangeCells | ( | Coord_t | low, |
Coord_t | high, | ||
Coord_t | cs | ||
) |
Constructor: assigns range and cell size.
low | lower bound of the range |
high | upper bound of the range |
cs | size of each cell |
Definition at line 410 of file SpacePartition.h.
Referenced by lar::example::CoordRange< Coord >::operator!=().
lar::example::CoordRangeCells< Coord >::CoordRangeCells | ( | Base_t const & | range, |
Coord_t | cs | ||
) |
Constructor: assigns range and cell size.
range | lower and upper bound of the range |
cs | size of each cell |
Definition at line 416 of file SpacePartition.h.
|
inherited |
Returns whether c is contained in the range (inclusve)
Definition at line 380 of file SpacePartition.h.
|
inherited |
std::ptrdiff_t lar::example::CoordRangeCells< Coord >::findCell | ( | Coord_t | c | ) | const |
Returns the index of the cell for coordinate c.
Definition at line 422 of file SpacePartition.h.
References lar::example::SpacePartition< PointIter >::SpacePartition().
|
inlineinherited |
Returns the distance of the specified coordinate from the lower bound.
Definition at line 122 of file SpacePartition.h.
|
inherited |
Returns whether the specified range has limits different than this.
Definition at line 401 of file SpacePartition.h.
References lar::example::CoordRangeCells< Coord >::CoordRangeCells(), lar::example::CoordRange< Coord >::lower, and lar::example::CoordRange< Coord >::upper.
|
inherited |
Returns whether the specified range has the same limits as this.
Definition at line 397 of file SpacePartition.h.
References lar::example::CoordRange< Coord >::lower, and lar::example::CoordRange< Coord >::upper.
|
inherited |
Returns the size of the range (no check)
Definition at line 393 of file SpacePartition.h.
Referenced by lar::example::details::diceVolume().
|
inherited |
Returns whether the range is valid (empty is also valid)
Definition at line 389 of file SpacePartition.h.
Referenced by lar::example::PointIsolationAlg< Coord >::validateConfiguration().
Coord_t lar::example::CoordRangeCells< Coord >::cellSize |
size of a single cell
Definition at line 141 of file SpacePartition.h.
Referenced by lar::example::details::diceVolume().
|
inherited |
lower boundary
Definition at line 106 of file SpacePartition.h.
Referenced by lar::example::CoordRange< Coord >::operator!=(), lar::example::CoordRange< Coord >::operator==(), and lar::example::PointIsolationAlg< Coord >::rangeString().
|
inherited |
upper boundary
Definition at line 107 of file SpacePartition.h.
Referenced by lar::example::CoordRange< Coord >::operator!=(), lar::example::CoordRange< Coord >::operator==(), and lar::example::PointIsolationAlg< Coord >::rangeString().