2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
6 inline RectangleBounds*
7 RectangleBounds::clone() const
9 return new RectangleBounds(*this);
13 RectangleBounds::inside(const Amg::Vector2D& locpo,
18 (fabs(locpo[locX]) < m_boundValues[RectangleBounds::bv_halfX] + tol1) &&
19 (fabs(locpo[locY]) < m_boundValues[RectangleBounds::bv_halfY] + tol2));
23 RectangleBounds::insideLoc1(const Amg::Vector2D& locpo, double tol1) const
25 return (fabs(locpo[locX]) < m_boundValues[RectangleBounds::bv_halfX] + tol1);
29 RectangleBounds::insideLoc2(const Amg::Vector2D& locpo, double tol2) const
31 return (fabs(locpo[locY]) < m_boundValues[RectangleBounds::bv_halfY] + tol2);
35 RectangleBounds::halflengthPhi() const
37 return this->halflengthX();
41 RectangleBounds::halflengthEta() const
43 return this->halflengthY();
47 RectangleBounds::halflengthX() const
49 return m_boundValues[RectangleBounds::bv_halfX];
53 RectangleBounds::halflengthY() const
55 return m_boundValues[RectangleBounds::bv_halfY];
59 RectangleBounds::r() const
61 return sqrt(m_boundValues[RectangleBounds::bv_halfX] *
62 m_boundValues[RectangleBounds::bv_halfX] +
63 m_boundValues[RectangleBounds::bv_halfY] *
64 m_boundValues[RectangleBounds::bv_halfY]);