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 
43  std::ostream& toStream(std::ostream& os) const final {
44  os << "Acts::InfiniteBounds ... boundless surface" << std::endl;
45  return os;
46  }
47 };
48 
49 static const InfiniteBounds s_noBounds{};
50 
51 } // namespace Acts