2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
7 inline DiscTrapezoidalBounds*
8 DiscTrapezoidalBounds::clone() const
10 return new DiscTrapezoidalBounds(*this);
15 DiscTrapezoidalBounds::insideLoc1(const Amg::Vector2D& locpo, double tol1) const
18 fabs(locpo[locPhi] - m_boundValues[DiscTrapezoidalBounds::bv_averagePhi]);
20 alpha = 2 * M_PI - alpha;
23 (m_boundValues[DiscTrapezoidalBounds::bv_rMin] *
24 cos(m_boundValues[DiscTrapezoidalBounds::bv_halfPhiSector]) /
28 (m_boundValues[DiscTrapezoidalBounds::bv_rMax] *
29 cos(m_boundValues[DiscTrapezoidalBounds::bv_halfPhiSector]) /
35 DiscTrapezoidalBounds::insideLoc2(const Amg::Vector2D& locpo, double tol2) const
38 fabs(locpo[locPhi] - m_boundValues[DiscTrapezoidalBounds::bv_averagePhi]);
40 alpha = 2. * M_PI - alpha;
42 (m_boundValues[DiscTrapezoidalBounds::bv_halfPhiSector] + tol2));
46 DiscTrapezoidalBounds::rMin() const
48 return m_boundValues[DiscTrapezoidalBounds::bv_rMin];
52 DiscTrapezoidalBounds::rMax() const
54 return m_boundValues[DiscTrapezoidalBounds::bv_rMax];
58 DiscTrapezoidalBounds::r() const
60 return m_boundValues[DiscTrapezoidalBounds::bv_rMax];
64 DiscTrapezoidalBounds::averagePhi() const
66 return m_boundValues[DiscTrapezoidalBounds::bv_averagePhi];
70 DiscTrapezoidalBounds::rCenter() const
72 return m_boundValues[DiscTrapezoidalBounds::bv_rCenter];
76 DiscTrapezoidalBounds::stereo() const
78 return m_boundValues[DiscTrapezoidalBounds::bv_stereo];
82 DiscTrapezoidalBounds::halfPhiSector() const
84 return m_boundValues[DiscTrapezoidalBounds::bv_halfPhiSector];
88 DiscTrapezoidalBounds::minHalflengthX() const
90 return m_boundValues[DiscTrapezoidalBounds::bv_minHalfX];
94 DiscTrapezoidalBounds::maxHalflengthX() const
96 return m_boundValues[DiscTrapezoidalBounds::bv_maxHalfX];
100 DiscTrapezoidalBounds::halflengthY() const
102 return m_boundValues[DiscTrapezoidalBounds::bv_halfY];
105 } // end of namespace