2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
8 DiamondBounds::clone() const
10 return new DiamondBounds(*this);
14 DiamondBounds::minHalflengthX() const
16 return m_boundValues[DiamondBounds::bv_minHalfX];
20 DiamondBounds::medHalflengthX() const
22 return m_boundValues[DiamondBounds::bv_medHalfX];
26 DiamondBounds::maxHalflengthX() const
28 return m_boundValues[DiamondBounds::bv_maxHalfX];
32 DiamondBounds::halflengthY1() const
34 return m_boundValues[DiamondBounds::bv_halfY1];
38 DiamondBounds::halflengthY2() const
40 return m_boundValues[DiamondBounds::bv_halfY2];
44 DiamondBounds::r() const
46 return sqrt(m_boundValues[DiamondBounds::bv_medHalfX] *
47 m_boundValues[DiamondBounds::bv_medHalfX] +
48 m_boundValues[DiamondBounds::bv_halfY1] *
49 m_boundValues[DiamondBounds::bv_halfY1]);
53 DiamondBounds::insideLoc1(const Amg::Vector2D& locpo, double tol1) const
55 return (fabs(locpo[locX]) < m_boundValues[DiamondBounds::bv_medHalfX] + tol1);
59 DiamondBounds::insideLoc2(const Amg::Vector2D& locpo, double tol2) const
62 (locpo[locY] > -2. * m_boundValues[DiamondBounds::bv_halfY1] - tol2) &&
63 (locpo[locY] < 2. * m_boundValues[DiamondBounds::bv_halfY2] + tol2));