Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-07-11 07:49:42

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/Detector/interface/IRootVolumeFinderBuilder.hpp"
0012 #include "Acts/Geometry/GeometryContext.hpp"
0013 #include "Acts/Navigation/PortalNavigation.hpp"
0014 #include "Acts/Utilities/AxisDefinitions.hpp"
0015 
0016 #include <memory>
0017 #include <vector>
0018 
0019 namespace Acts::Experimental {
0020 
0021 class DetectorVolume;
0022 
0023 /// @brief This is the interface for builders that create root volume finder
0024 /// delegates
0025 class IndexedRootVolumeFinderBuilder final : public IRootVolumeFinderBuilder {
0026  public:
0027   /// @brief Constructor with binning casts
0028   /// @param binning the cast values for the grid binning
0029   explicit IndexedRootVolumeFinderBuilder(
0030       std::vector<Acts::AxisDirection> binning);
0031 
0032   /// The virtual interface definition for root volume finder builders
0033   ///
0034   /// @param gctx the geometry context at the creation of the internal structure
0035   /// @param rootVolumes the root volumes to be used for the finder
0036   ///
0037   /// @return a shared detector object
0038   ExternalNavigationDelegate construct(
0039       const GeometryContext& gctx,
0040       const std::vector<std::shared_ptr<DetectorVolume>>& rootVolumes)
0041       const final;
0042 
0043  private:
0044   std::vector<Acts::AxisDirection> m_casts;
0045 };
0046 
0047 }  // namespace Acts::Experimental