Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:11:03

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 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 https://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 #include "Acts/Definitions/Algebra.hpp"
0012 #include "Acts/Surfaces/SurfaceBounds.hpp"
0013 
0014 namespace Acts {
0015 
0016 /// @class InfiniteBounds
0017 ///
0018 /// templated boundless extension to forward the interface
0019 /// Returns all inside checks to true and can templated for all bounds
0020 ///
0021 class InfiniteBounds : public SurfaceBounds {
0022  public:
0023   BoundsType type() const final { return SurfaceBounds::eBoundless; }
0024 
0025   std::vector<double> values() const final { return {}; }
0026 
0027   /// Method inside() returns true for any case
0028   ///
0029   /// ignores input parameters
0030   ///
0031   /// @return always true
0032   bool inside(const Vector2& /*lposition*/,
0033               const BoundaryTolerance& /*boundaryTolerance*/) const final {
0034     return true;
0035   }
0036 
0037   /// Output Method for std::ostream
0038   std::ostream& toStream(std::ostream& os) const final {
0039     os << "Acts::InfiniteBounds ... boundless surface" << std::endl;
0040     return os;
0041   }
0042 };
0043 
0044 static const InfiniteBounds s_noBounds{};
0045 
0046 }  // namespace Acts