Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-15 09:23:54

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/Geometry/GeometryContext.hpp"
0012 
0013 #include <memory>
0014 #include <vector>
0015 
0016 namespace Acts {
0017 
0018 class Surface;
0019 
0020 /// @brief This is the interface for providing surfaces
0021 /// to the detector building process. These surfaces manly
0022 /// describe the sensitive detector surfaces, but also passive
0023 /// (i.e. material carrying) surfaces are considered.
0024 ///
0025 /// These could be prefilled, or created on demand when
0026 /// the detector is built (to increase memory locality)
0027 class ISurfacesProvider {
0028  public:
0029   virtual ~ISurfacesProvider() = default;
0030 
0031   /// The virtual interface definition for detector surface providers
0032   ///
0033   /// @param gctx the geometry context at the creation of the internal structure
0034   ///
0035   /// @return a shared detector object
0036   virtual std::vector<std::shared_ptr<Surface>> surfaces(
0037       const GeometryContext& gctx) const = 0;
0038 };
0039 
0040 }  // namespace Acts