Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-17 07:47:15

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/DD4hep/GeometryModuleLoader.hpp"
0010 
0011 #include "Acts/Geometry/GeometryModuleLoader.hpp"
0012 
0013 #include <DD4hep/Detector.h>
0014 
0015 #ifndef ACTS_DD4HEP_GEOMETRY_MODULE_ABI_TAG
0016 #error \
0017     "ACTS_DD4HEP_GEOMETRY_MODULE_ABI_TAG must be provided by CMake when building ActsPluginDD4hep."
0018 #endif
0019 
0020 namespace Acts {
0021 
0022 std::shared_ptr<TrackingGeometry> loadDD4hepGeometryModule(
0023     const std::filesystem::path& modulePath, const dd4hep::Detector& detector,
0024     const Logger& logger) {
0025   return ::Acts::detail::loadGeometryModuleImpl(
0026       modulePath, ACTS_DD4HEP_GEOMETRY_MODULE_ABI_TAG, "dd4hep::Detector",
0027       &detector, logger);
0028 }
0029 
0030 }  // namespace Acts