ATLAS Offline Software
Loading...
Searching...
No Matches
AnnulusBounds.icc
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5namespace Trk {
6inline AnnulusBounds*
7AnnulusBounds::clone() const
8{
9 return new AnnulusBounds(*this);
10}
11
12inline double
13AnnulusBounds::minR() const
14{
15 return m_boundValues[AnnulusBounds::bv_minR];
16}
17
18inline double
19AnnulusBounds::maxR() const
20{
21 return m_boundValues[AnnulusBounds::bv_maxR];
22}
23
24inline double
25AnnulusBounds::waferCentreR() const
26{
27 return m_boundValues[AnnulusBounds::bv_R];
28}
29
30inline double
31AnnulusBounds::phi() const
32{
33 return m_boundValues[AnnulusBounds::bv_phi];
34}
35
36inline double
37AnnulusBounds::phiS() const
38{
39 return m_boundValues[AnnulusBounds::bv_phiS];
40}
41
42inline double
43AnnulusBounds::r() const
44
45{
46 return AnnulusBounds::bv_maxR;
47} // MW to be fixed!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
48
49inline bool
50AnnulusBounds::insideLoc1(const Amg::Vector2D& locpo, double tol1) const
51{
52 return (
53 locpo[locX] > std::min(m_solution_L_min[0], m_solution_L_max[0]) - tol1 &&
54 locpo[locX] < std::max(m_solution_R_min[0], m_solution_R_max[0]) + tol1);
55}
56// MW Fix it
57
58inline bool
59AnnulusBounds::insideLoc2(const Amg::Vector2D& locpo, double tol2) const
60{
61 return (
62 locpo[locY] > std::min(m_solution_L_min[1], m_solution_L_max[1]) - tol2 &&
63 locpo[locY] < std::max(m_solution_R_min[1], m_solution_R_max[1]) + tol2);
64}
65// MW Fix it
66
67inline const std::vector<TDD_real_t>& AnnulusBounds::getBoundsValues() const{
68 return m_boundValues;
69}
70
71}
72