 |
Belle II Software
release-05-02-19
|
20 namespace TrackFindingCDC {
40 m_top(std::max(y1, y2))
51 m_top = std::isnan(
getTop()) ? other.getTop() : std::max(
getTop(), other.getTop());
float getTop() const
Getter for the location of the top of the bounding box rectangle (upper y bound). NAN if unset.
void operator&=(const BoundingBox &other)
Expands the bounding box such that it also covers the given bounding box.
BoundingBox()
Default constructor for ROOT compatibility. Cell weight defaults to 1.
float getBottom() const
Getter for the location of the bottom of the bounding box rectangle (lower y bound)....
float m_right
Memory for the upper x bound of the rectangle.
float m_top
Memory for the upper y bound of the rectangle.
float m_bottom
Memory for the lower y bound of the rectangle.
Abstract base class for different kinds of events.
float getWidth() const
Getter for the width of the bounding box rectangle.
float getHeight() const
Getter for the height of the bounding box rectangle.
float m_left
Memory for the lower x bound of the rectangle.
float getRight() const
Getter for the location of the right of the bounding box rectangle (upper x bound)....
float getLeft() const
Getter for the location of the left of the bounding box rectangle (lower x bound)....
void clear()
Clears all bounds to NAN.
A two dimensional rectangle that keeps track of the extend of a drawing.
void expand(float delta)
Expands the rectangle in each direction by the given value delta.