Skip to content
Snippets Groups Projects
Commit 6864f5de authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

WIP: migrate DetSegmentation

parent 2aefa4f8
No related branches found
No related tags found
No related merge requests found
...@@ -4,5 +4,5 @@ ...@@ -4,5 +4,5 @@
# add_subdirectory(DetDriftChamber) # add_subdirectory(DetDriftChamber)
# add_subdirectory(DetEcalMatrix) # add_subdirectory(DetEcalMatrix)
add_subdirectory(DetInterface) add_subdirectory(DetInterface)
# add_subdirectory(DetSegmentation) add_subdirectory(DetSegmentation)
add_subdirectory(GeomSvc) add_subdirectory(GeomSvc)
################################################################################# #################################################################################
##Package : DetSegmentation ##Package : DetSegmentation
################################################################################# #################################################################################
gaudi_subdir(DetSegmentation v1r0)
gaudi_depends_on_subdirs(GaudiKernel)
find_package(DD4hep COMPONENTS DDRec DDG4 DDParsers REQUIRED) find_package(DD4hep COMPONENTS DDRec DDG4 DDParsers REQUIRED)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${DD4hep_ROOT}/cmake ) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${DD4hep_ROOT}/cmake )
...@@ -13,21 +10,20 @@ include(DD4hep) ...@@ -13,21 +10,20 @@ include(DD4hep)
find_package(ROOT COMPONENTS MathCore Physics GenVector Geom REQUIRED) find_package(ROOT COMPONENTS MathCore Physics GenVector Geom REQUIRED)
gaudi_add_library(DetSegmentation gaudi_add_library(DetSegmentation
src/*.cpp SOURCES src/GridDriftChamber.cpp
INCLUDE_DIRS DD4hep ROOT LINK Gaudi::GaudiKernel
LINK_LIBRARIES GaudiKernel DD4hep ROOT ${DD4hep_COMPONENT_LIBRARIES} ${DD4hep_COMPONENT_LIBRARIES}
PUBLIC_HEADERS DetSegmentation) ${ROOT_LIBRARIES}
)
gaudi_add_module(DetSegmentationPlugin gaudi_add_module(DetSegmentationPlugin
src/plugins/*.cpp SOURCES src/plugins/SegmentationFactories.cpp
INCLUDE_DIRS DD4hep ROOT LINK Gaudi::GaudiKernel
LINK_LIBRARIES GaudiKernel DD4hep ROOT ${DD4hep_COMPONENT_LIBRARIES} DetSegmentation) ${ROOT_LIBRARIES}
${DD4hep_COMPONENT_LIBRARIES}
DetSegmentation)
set(LIBRARY_OUTPUT_PATH ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}) set(LIBRARY_OUTPUT_PATH ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
message(STATUS "LIBRARY_OUTPUT_PATH -> ${LIBRARY_OUTPUT_PATH}") message(STATUS "LIBRARY_OUTPUT_PATH -> ${LIBRARY_OUTPUT_PATH}")
dd4hep_generate_rootmap(DetSegmentationPlugin) dd4hep_generate_rootmap(DetSegmentationPlugin)
include(CTest)
gaudi_add_test(TestSegmentationPhiEta
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
FRAMEWORK tests/options/phiEtaSegmentation.py)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment