ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
InfiniteBounds.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file InfiniteBounds.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2016-2020 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
12 
13 namespace Acts {
14 
19 
20 class InfiniteBounds : public SurfaceBounds {
21  public:
22  InfiniteBounds() = default;
23 
24  ~InfiniteBounds() override = default;
25 
28  }
29 
30  std::vector<double> values() const final { return {}; }
31 
37  bool inside(const Vector2D& /*lposition*/,
38  const BoundaryCheck& /*bcheck*/) const final {
39  return true;
40  }
41 
45  double distanceToBoundary(const Vector2D& /*position*/) const final {
46  return 0;
47  }
48 
50  std::ostream& toStream(std::ostream& os) const final {
51  os << "Acts::InfiniteBounds ... boundless surface" << std::endl;
52  return os;
53  }
54 };
55 
56 static const InfiniteBounds s_noBounds{};
57 
58 } // namespace Acts