9#ifndef TRKSURFACES_RECTANGLEBOUNDS_H
10#define TRKSURFACES_RECTANGLEBOUNDS_H
16#ifdef TRKDETDESCR_USEFLOATPRECISON
112 virtual MsgStream&
dump(MsgStream& sl)
const override;
123#include "TrkSurfaces/RectangleBounds.icc"
The BoundaryCheck class allows to steer the way surface boundaries are used for inside/outside checks...
Bounds for a rectangular, planar surface.
std::vector< TDD_real_t > m_boundValues
The internal version of the bounds can be float/double.
virtual BoundsType type() const override final
Return the type of the bounds for persistency.
virtual RectangleBounds * clone() const override
Virtual constructor.
BoundValues
for readability
virtual ~RectangleBounds()=default
Destructor.
double halflengthPhi() const
This method returns the halflength in phi (first coordinate of local surface frame)
virtual double minDistance(const Amg::Vector2D &pos) const override final
Minimal distance to boundary ( > 0 if outside and <=0 if inside)
virtual bool operator==(const SurfaceBounds &sbo) const override final
Equality operator.
RectangleBounds(RectangleBounds &&recbo) noexcept=default
Move constructor.
virtual bool insideLoc2(const Amg::Vector2D &locpo, double tol2=0.) const override final
This method checks inside bounds in loc2.
RectangleBounds & operator=(const RectangleBounds &recbo)
Assignment Operator.
virtual bool inside(const Amg::Vector2D &locpo, double tol1=0., double tol2=0.) const override final
This method checks if the provided local coordinates are inside the surface bounds.
double halflengthX() const
for consistant naming
virtual bool insideLoc1(const Amg::Vector2D &locpo, double tol1=0.) const override final
This method checks inside bounds in loc1.
virtual double r() const override
This method returns the maximal extension on the local plane, i.e.
double halflengthY() const
for consitant naming
RectangleBounds & operator=(RectangleBounds &&recbo) noexcept=default
Move Assignment Operator.
RectangleBounds()
Default Constructor - needed for persistency.
double halflengthEta() const
This method returns the halflength in Eta (second coordinate of local surface frame)
SurfaceBounds()=default
Default Constructor.
BoundsType
This enumerator simplifies the persistency, by saving a dynamic_cast to happen.
Definition of ATLAS Math & Geometry primitives (Amg)
Eigen::Matrix< double, 2, 1 > Vector2D
Ensure that the ATLAS eigen extensions are properly loaded.