|
|
|||
File indexing completed on 2026-08-26 08:38:38
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 #if !defined(__unix__) && !defined(__APPLE__) 0012 #error \ 0013 "Runtime geometry modules are only supported on Unix-like systems (Linux, macOS)." 0014 #endif 0015 0016 #include "Acts/Utilities/Logger.hpp" 0017 0018 #include <filesystem> 0019 #include <memory> 0020 0021 namespace dd4hep { 0022 class Detector; 0023 } 0024 0025 namespace Acts { 0026 0027 class TrackingGeometry; 0028 0029 /// Load a DD4hep geometry module shared library with the given detector, 0030 /// validate ABI compatibility, build and return the tracking geometry. 0031 /// The returned deleter keeps the module loaded until the geometry is 0032 /// destroyed. 0033 /// @param modulePath Path to the geometry module shared library. 0034 /// @param detector DD4hep detector instance passed to the module. 0035 /// @param logger Logger instance used by the module loader. 0036 /// @return Shared pointer to the loaded tracking geometry. 0037 std::shared_ptr<TrackingGeometry> loadDD4hepGeometryModule( 0038 const std::filesystem::path& modulePath, const dd4hep::Detector& detector, 0039 const Logger& logger = getDummyLogger()); 0040 0041 } // namespace Acts
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|