9#ifndef TRKSURFACES_DIAMONDDBOUNDS_H
10#define TRKSURFACES_DIAMONDDBOUNDS_H
21#ifdef TRKDETDESCR_USEFLOATPRECISON
70 DiamondBounds(
double minhalex,
double medhalex,
double maxhalex,
double haley1,
double haley2);
95 virtual double r()
const override final;
104 virtual
bool inside(
const Amg::Vector2D& locpo,
double tol1 = 0.,
double tol2 = 0.)
const override final;
125 virtual MsgStream&
dump(MsgStream& sl)
const override final;
147#include "TrkSurfaces/DiamondBounds.icc"
The BoundaryCheck class allows to steer the way surface boundaries are used for inside/outside checks...
BoundValues
BoundValues for better readability.
virtual bool inside(const Amg::Vector2D &locpo, double tol1=0., double tol2=0.) const override final
The orientation of the Diamond is according to the figure.
virtual double r() const override final
This method returns the maximal extension on the local plane.
DiamondBounds & operator=(const DiamondBounds &sbo)=default
Assignment operator.
virtual bool operator==(const SurfaceBounds &diabo) const override
Equality operator.
virtual bool insideLoc2(const Amg::Vector2D &locpo, double tol2=0.) const override final
This method checks inside bounds in loc2.
double alpha1() const
This method returns the opening angle alpha in point A.
double minHalflengthX() const
This method returns the halflength in X at minimal Y (first coordinate of local surface frame)
DiamondBounds()
Default Constructor, needed for persistency.
friend class ::DiamondBoundsCnv_p1
DiamondBounds * clone() const override
Virtual constructor.
bool insideFull(const Amg::Vector2D &locpo, double tol1=0., double tol2=0.) const
inside() method for a full symmetric diamond
std::vector< TDD_real_t > m_boundValues
Internal parameters stored in the geometry.
double maxHalflengthX() const
This method returns the halflength in X at maximal Y (first coordinate of local surface frame)
virtual void initCache() override
initialize the alpha1/2 cache - needed also for object persistency
virtual BoundsType type() const override final
Return the bounds type.
double medHalflengthX() const
This method returns the (maximal) halflength in X (first coordinate of local surface frame)
DiamondBounds & operator=(DiamondBounds &&sbo) noexcept=default
Assignment operator.
DiamondBounds(DiamondBounds &&diabo) noexcept=default
Copy constructor.
DiamondBounds(const DiamondBounds &diabo)=default
Copy constructor.
virtual double minDistance(const Amg::Vector2D &pos) const override final
Minimal distance to boundary ( > 0 if outside and <=0 if inside)
double alpha2() const
This method returns the opening angle alpha in point A'.
double halflengthY1() const
This method returns the halflength in Y of trapezoid at negative/positive Y (second coordinate)
virtual ~DiamondBounds()=default
Destructor.
virtual bool insideLoc1(const Amg::Vector2D &locpo, double tol1=0.) const override final
This method checks inside bounds in loc1.
double halflengthY2() const
SurfaceBounds()=default
Default Constructor.
BoundsType
This enumerator simplifies the persistency, by saving a dynamic_cast to happen.
Definition of ATLAS Math & Geometry primitives (Amg)
Ensure that the ATLAS eigen extensions are properly loaded.