Class DiamondBounds¶
Defined in File DiamondBounds.hpp
Inheritance Relationships¶
Base Type¶
public Acts::PlanarBounds(Class PlanarBounds)
Class Documentation¶
-
class
Acts::DiamondBounds: public Acts::PlanarBounds¶ Bounds for a double trapezoidal (“diamond”), planar Surface.
Public Types
Public Functions
-
DiamondBounds() = delete¶
-
DiamondBounds(double halfXnegY, double halfXzeroY, double halfXposY, double halfYneg, double halfYpos) noexcept(false)¶ Constructor for convex hexagon symmetric about the y axis.
- Parameters
halfXnegY: is the halflength in x at minimal yhalfXzeroY: is the halflength in x at y = 0halfXposY: is the halflength in x at maximal yhalfYneg: is the halflength into y < 0halfYpos: is the halflength into y > 0
-
DiamondBounds(const std::array<double, eSize> &values) noexcept(false)¶ Constructor - from fixed size array.
- Parameters
values: The parameter values
-
~DiamondBounds() override = default¶
-
const RectangleBounds &
boundingBox() const final¶ Bounding box parameters.
- Return
rectangle bounds for a bounding box
-
double
get(BoundValues bValue) const¶ Access to the bound values.
- Parameters
bValue: the class nested enum for the array access
-
bool
inside(const Vector2 &lposition, const BoundaryCheck &bcheck) const final¶ Inside check for the bounds object driven by the boundary check directive Each Bounds has a method inside, which checks if a LocalPosition is inside the bounds Inside can be called without/with tolerances.
- Return
boolean indicator for the success of this operation
- Parameters
lposition: Local position (assumed to be in right surface frame)bcheck: boundary check directive
-
std::ostream &
toStream(std::ostream &sl) const final¶ Output Method for std::ostream.
- Parameters
sl: is the ostream in which it is dumped
-
BoundsType
type() const final¶ Return the bounds type - for persistency optimization.
- Return
is a BoundsType enum
-
std::vector<double>
values() const final¶ Return the bound values as dynamically sized vector.
- Return
this returns a copy of the internal values
-