|
ACTS
Experiment-independent tracking
|
#include <Acts/Surfaces/DiamondBounds.hpp>
Public Types | |
| enum | BoundValues { eHalfLengthXnegY = 0 , eHalfLengthXzeroY = 1 , eHalfLengthXposY = 2 , eHalfLengthYneg = 3 , eHalfLengthYpos = 4 , eSize = 5 } |
| Enumeration for the bound values. More... | |
| Public Types inherited from Acts::SurfaceBounds | |
| enum | BoundsType : int { eCone = 0 , eCylinder = 1 , eDiamond = 2 , eDisc = 3 , eEllipse = 4 , eLine = 5 , eRectangle = 6 , eTrapezoid = 7 , eTriangle = 8 , eDiscTrapezoid = 9 , eConvexPolygon = 10 , eAnnulus = 11 , eBoundless = 12 , eOther = 13 } |
| This is nested to the SurfaceBounds, as also VolumeBounds will have Bounds Type. More... | |
Public Member Functions | |
| DiamondBounds (const std::array< double, eSize > &values) noexcept(false) | |
| Constructor - from fixed size array. | |
| DiamondBounds (double halfXnegY, double halfXzeroY, double halfXposY, double halfYneg, double halfYpos) noexcept(false) | |
| Constructor for convex hexagon symmetric about the y axis. | |
| const RectangleBounds & | boundingBox () const final |
| Bounding box parameters. | |
| Vector2 | center () const final |
| Calculate the center of the surface bounds in local coordinates. | |
| Vector2 | closestPoint (const Vector2 &lposition, const SquareMatrix2 &metric) const final |
| Calculates the closest point on the bounds to a given local position. | |
| double | get (BoundValues bValue) const |
| Access to the bound values. | |
| bool | inside (const Vector2 &lposition) const final |
| Inside check for the bounds object. | |
| virtual bool | inside (const Vector2 &lposition, const BoundaryTolerance &boundaryTolerance) const |
| Inside check for the bounds object given a boundary tolerance. | |
| std::ostream & | toStream (std::ostream &sl) const final |
| Output Method for std::ostream. | |
| BoundsType | type () const final |
| Return the bounds type - for persistency optimization. | |
| std::vector< double > | values () const final |
| Return the bound values as dynamically sized vector. | |
| std::vector< Vector2 > | vertices (unsigned int ignoredSegments=0u) const final |
| Return the vertices that describe this shape. | |
| Public Member Functions inherited from Acts::PlanarBounds | |
| SquareMatrix2 | boundToCartesianJacobian (const Vector2 &lposition) const final |
| Computes the bound to cartesian jacobian at a given local position. | |
| SquareMatrix2 | boundToCartesianMetric (const Vector2 &lposition) const final |
| Computes the bound to cartesian metric at a given local position. | |
| bool | isCartesian () const final |
| Check if the bound coordinates are cartesian. | |
| Public Member Functions inherited from Acts::SurfaceBounds | |
| virtual | ~SurfaceBounds ()=default |
| virtual double | distance (const Vector2 &lposition) const |
| Calculates the distance to the bounds from a given local position. | |
Bounds for a double trapezoidal ("diamond"), planar Surface.
| Acts::DiamondBounds::DiamondBounds | ( | double | halfXnegY, |
| double | halfXzeroY, | ||
| double | halfXposY, | ||
| double | halfYneg, | ||
| double | halfYpos ) |
Constructor for convex hexagon symmetric about the y axis.
| halfXnegY | is the halflength in x at minimal y |
| halfXzeroY | is the halflength in x at y = 0 |
| halfXposY | is the halflength in x at maximal y |
| halfYneg | is the halflength into y < 0 |
| halfYpos | is the halflength into y > 0 |
|
explicitnoexcept |
Constructor - from fixed size array.
| values | The parameter values |
|
finalvirtual |
|
finalvirtual |
Calculate the center of the surface bounds in local coordinates.
This method returns a representative center point of the bounds region. The exact definition varies by bounds type and coordinate system:
Cartesian bounds (Rectangle, Diamond, Trapezoid):
Polar/Cylindrical bounds (Radial, Cylinder, Cone):
Complex bounds (Annulus, ConvexPolygon):
Infinite bounds: Returns conceptual center at (0,0)
Implements Acts::SurfaceBounds.
|
finalvirtual |
Calculates the closest point on the bounds to a given local position.
| lposition | is the local position |
| metric | to be used for the distance calculation |
Implements Acts::SurfaceBounds.
| double Acts::DiamondBounds::get | ( | BoundValues | bValue | ) | const |
Access to the bound values.
| bValue | the class nested enum for the array access |
|
finalvirtual |
Inside check for the bounds object.
| lposition | is the local position |
Implements Acts::SurfaceBounds.
|
virtual |
Inside check for the bounds object given a boundary tolerance.
| lposition | is the local position |
| boundaryTolerance | is the boundary tolerance object |
Reimplemented from Acts::SurfaceBounds.
|
finalvirtual |
Output Method for std::ostream.
| sl | is the ostream in which it is dumped |
Implements Acts::SurfaceBounds.
|
finalvirtual |
Return the bounds type - for persistency optimization.
Implements Acts::SurfaceBounds.
|
finalvirtual |
Return the bound values as dynamically sized vector.
Implements Acts::SurfaceBounds.
|
finalvirtual |
Return the vertices that describe this shape.
| ignoredSegments | is an ignored parameter only used for curved bound segments |
Implements Acts::PlanarBounds.