Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-11-20 09:27:58

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 #include "ActsPlugins/Detray/DetraySurfaceGridPolicy.hpp"
0010 
0011 #include "Acts/Geometry/TrackingVolume.hpp"
0012 
0013 namespace ActsPlugins {
0014 
0015 DetraySurfaceGridPolicy::DetraySurfaceGridPolicy(
0016     const Acts::GeometryContext& /*gctx*/, const Acts::TrackingVolume& volume,
0017     const Acts::Logger& /*logger*/, const DetraySurfaceGridConfig& config)
0018     : m_volume(&volume), m_cfg(config) {}
0019 
0020 DetraySurfaceGridPolicy::DetraySurfaceGridPolicy(
0021     const Acts::GeometryContext& gctx, const Acts::TrackingVolume& volume,
0022     const Acts::Logger& logger)
0023     : DetraySurfaceGridPolicy(gctx, volume, logger, DetraySurfaceGridConfig{}) {
0024 }
0025 
0026 void DetraySurfaceGridPolicy::initializeCandidates(
0027     const Acts::GeometryContext& /*gctx*/,
0028     const Acts::NavigationArguments& /*args*/,
0029     Acts::NavigationPolicyState& /*state*/,
0030     Acts::AppendOnlyNavigationStream& /*stream*/,
0031     const Acts::Logger& /*logger*/) const {}
0032 
0033 void DetraySurfaceGridPolicy::connect(
0034     Acts::NavigationDelegate& delegate) const {
0035   connectDefault<DetraySurfaceGridPolicy>(delegate);
0036 }
0037 
0038 const DetraySurfaceGridConfig& DetraySurfaceGridPolicy::config() const {
0039   return m_cfg;
0040 }
0041 
0042 const Acts::TrackingVolume& DetraySurfaceGridPolicy::volume() const {
0043   return *m_volume;
0044 }
0045 
0046 }  // namespace ActsPlugins