Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:09:23

0001 // This file is part of the Acts project.
0002 //
0003 // Copyright (C) 2016-2020 CERN for the benefit of the Acts project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 #include "Acts/Definitions/Algebra.hpp"
0011 #include "Acts/Surfaces/SurfaceBounds.hpp"
0012 
0013 namespace Acts {
0014 
0015 /// @class InfiniteBounds
0016 ///
0017 /// templated boundless extension to forward the interface
0018 /// Returns all inside checks to true and can templated for all bounds
0019 
0020 class InfiniteBounds : public SurfaceBounds {
0021  public:
0022   InfiniteBounds() = default;
0023 
0024   ~InfiniteBounds() override = default;
0025 
0026   SurfaceBounds::BoundsType type() const final {
0027     return SurfaceBounds::eBoundless;
0028   }
0029 
0030   std::vector<double> values() const final { return {}; }
0031 
0032   /// Method inside() returns true for any case
0033   ///
0034   /// ignores input parameters
0035   ///
0036   /// @return always true
0037   bool inside(const Vector2& /*lposition*/,
0038               const BoundaryCheck& /*bcheck*/) const final {
0039     return true;
0040   }
0041 
0042   /// Output Method for std::ostream
0043   std::ostream& toStream(std::ostream& os) const final {
0044     os << "Acts::InfiniteBounds ... boundless surface" << std::endl;
0045     return os;
0046   }
0047 };
0048 
0049 static const InfiniteBounds s_noBounds{};
0050 
0051 }  // namespace Acts