Skip to content

Commit

Permalink
feat: depend on k4FWCore
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc committed Dec 20, 2023
1 parent 19e82c5 commit 38849c3
Show file tree
Hide file tree
Showing 212 changed files with 444 additions and 2,882 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ else()
endif()

find_package(Gaudi)
find_package(k4FWCore)
add_subdirectory(JugBase)
add_subdirectory(JugAlgo)
add_subdirectory(JugDigi)
Expand Down
2 changes: 1 addition & 1 deletion JugAlgo/JugAlgo/detail/DataProxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <algorithms/type_traits.h>

#include <GaudiAlg/GaudiAlgorithm.h>
#include <JugBase/DataHandle.h>
#include <k4FWCore/DataHandle.h>

namespace Jug::Algo::detail {

Expand Down
4 changes: 2 additions & 2 deletions JugAlgo/src/components/AlgoServiceSvc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <GaudiKernel/Service.h>
#include <JugAlgo/IAlgoServiceSvc.h>
#include <JugBase/IGeoSvc.h>
#include <k4Interface/IGeoSvc.h>

#include <algorithms/geo.h>
#include <algorithms/logger.h>
Expand Down Expand Up @@ -77,7 +77,7 @@ StatusCode AlgoServiceSvc::initialize() {
}
serviceSvc.setInit<algorithms::GeoSvc>([this](auto&& g) {
this->info() << "Initializing algorithms::RandomSvc with the Juggler GeoSvc" << endmsg;
g.init(m_geoSvc->detector());
g.init(m_geoSvc->getDetector());
});
// setup random service
info() << "Setting up algorithms::RandomSvc\n"
Expand Down
13 changes: 3 additions & 10 deletions JugBase/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,21 @@
################################################################################

file(GLOB JugBase_sources CONFIGURE_DEPENDS src/*.cpp)
file(GLOB JugBase_plugins CONFIGURE_DEPENDS src/Plugins/*.cpp)
file(GLOB JugBase_utilities CONFIGURE_DEPENDS src/Utilities/*.cpp)
gaudi_add_library(JugBase
SOURCES
${JugBase_sources}
${JugBase_plugins}
${JugBase_utilities}
gaudi_add_header_only_library(JugBase
LINK
Gaudi::GaudiKernel Gaudi::GaudiAlgLib
podio::podioRootIO
ROOT::Core ROOT::RIO ROOT::Tree
DD4hep::DDRec
ActsCore ActsPluginDD4hep
k4FWCore::k4FWCore
)

target_include_directories(JugBase PUBLIC
target_include_directories(JugBase INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)

target_compile_options(JugBase PRIVATE -Wno-suggest-override)

file(GLOB JugBasePlugins_sources CONFIGURE_DEPENDS src/components/*.cpp)
gaudi_add_module(JugBasePlugins
SOURCES
Expand Down
122 changes: 0 additions & 122 deletions JugBase/JugBase/ACTSLogger.h

This file was deleted.

Loading

0 comments on commit 38849c3

Please sign in to comment.