2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
7 inline TrapezoidBounds*
8 TrapezoidBounds::clone() const
10 return new TrapezoidBounds(*this);
14 TrapezoidBounds::minHalflengthX() const
16 return m_boundValues[TrapezoidBounds::bv_minHalfX];
20 TrapezoidBounds::maxHalflengthX() const
22 return m_boundValues[TrapezoidBounds::bv_maxHalfX];
26 TrapezoidBounds::halflengthY() const
28 return m_boundValues[TrapezoidBounds::bv_halfY];
32 TrapezoidBounds::minHalflengthPhi() const
34 return minHalflengthX();
38 TrapezoidBounds::maxHalflengthPhi() const
40 return maxHalflengthX();
44 TrapezoidBounds::halflengthEta() const
50 TrapezoidBounds::alpha() const
56 TrapezoidBounds::beta() const
62 TrapezoidBounds::r() const
64 return sqrt(m_boundValues[TrapezoidBounds::bv_maxHalfX] *
65 m_boundValues[TrapezoidBounds::bv_maxHalfX] +
66 m_boundValues[TrapezoidBounds::bv_halfY] *
67 m_boundValues[TrapezoidBounds::bv_halfY]);
71 TrapezoidBounds::insideLoc1(const Amg::Vector2D& locpo, double tol1) const
73 return (std::abs(locpo[locX]) <
74 m_boundValues[TrapezoidBounds::bv_maxHalfX] + tol1);
78 TrapezoidBounds::insideLoc2(const Amg::Vector2D& locpo, double tol2) const
80 return (std::abs(locpo[locY]) < m_boundValues[TrapezoidBounds::bv_halfY] + tol2);