2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
6 DiscBounds::clone() const
8 return new DiscBounds(*this);
13 DiscBounds::insideLoc1(const Amg::Vector2D& locpo, double tol1) const
15 return (locpo[locR] > (m_boundValues[DiscBounds::bv_rMin] - tol1) &&
16 locpo[locR] < (m_boundValues[DiscBounds::bv_rMax] + tol1));
20 DiscBounds::insideLoc2(const Amg::Vector2D& locpo, double tol2) const
22 double alpha = fabs(locpo[locPhi] - m_boundValues[DiscBounds::bv_averagePhi]);
24 alpha = 2. * M_PI - alpha;
25 // alpha -= alpha > M_PI ? 2.*M_PI : 0.;
26 // alpha += alpha < -M_PI ? 2.*M_PI : 0.;
28 (alpha <= (m_boundValues[DiscBounds::bv_halfPhiSector] + tol2));
33 DiscBounds::rMin() const
35 return m_boundValues[DiscBounds::bv_rMin];
39 DiscBounds::rMax() const
41 return m_boundValues[DiscBounds::bv_rMax];
47 return m_boundValues[DiscBounds::bv_rMax];
51 DiscBounds::averagePhi() const
53 return m_boundValues[DiscBounds::bv_averagePhi];
57 DiscBounds::halfPhiSector() const
59 return m_boundValues[DiscBounds::bv_halfPhiSector];