From 932a0535710e68f5b0741114af008327ccc22bc7 Mon Sep 17 00:00:00 2001 From: Yuri Oksuzian Date: Sat, 1 Aug 2026 08:50:08 -0500 Subject: [PATCH 1/2] Install CalorimeterGeom/data in the CMake build crystalPos.txt (added in #1908) is opened at runtime via ConfigFileLookupPolicy from geom key calorimeter.diskCrystalFile, but CalorimeterGeom had no install rule for data/ -- a spack/CMake install ships without the file and any calo-geometry job dies: Can't find file "Offline/CalorimeterGeom/data/crystalPos.txt" The existing configure_file line only stages the file into the build tree. Add the install(DIRECTORY data ...) rule every other package shipping runtime data uses (Mu2eG4, TrackerConditions, CaloConditions, CalPatRec, CRVConditions, ...). The scons build reads the source tree and is unaffected. Co-Authored-By: Claude Fable 5 --- CalorimeterGeom/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CalorimeterGeom/CMakeLists.txt b/CalorimeterGeom/CMakeLists.txt index 1a3c82600a..0ce810cdea 100644 --- a/CalorimeterGeom/CMakeLists.txt +++ b/CalorimeterGeom/CMakeLists.txt @@ -18,3 +18,4 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/data/crystalPos.txt ${CURRENT_BINARY_ install_source(SUBDIRS src) install_headers(USE_PROJECT_NAME SUBDIRS inc) +install(DIRECTORY data DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/Offline/CalorimeterGeom) From ceb9a3a28d469047efc150e94a951138548fc3b6 Mon Sep 17 00:00:00 2001 From: Yuri Oksuzian Date: Sat, 1 Aug 2026 09:09:25 -0500 Subject: [PATCH 2/2] Remove build-tree configure_file for crystalPos.txt Per review: the install(DIRECTORY data ...) rule makes the configure_file staging redundant; build-tree runs resolve the file from the source tree via MU2E_SEARCH_PATH, matching how Mu2eG4 and the other data-shipping packages work (install rule only). Co-Authored-By: Claude Fable 5 --- CalorimeterGeom/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/CalorimeterGeom/CMakeLists.txt b/CalorimeterGeom/CMakeLists.txt index 0ce810cdea..a007af0b41 100644 --- a/CalorimeterGeom/CMakeLists.txt +++ b/CalorimeterGeom/CMakeLists.txt @@ -14,7 +14,6 @@ cet_make_library( CLHEP::CLHEP cetlib_except::cetlib_except ) -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/data/crystalPos.txt ${CURRENT_BINARY_DIR} data/crystalPos.txt) install_source(SUBDIRS src) install_headers(USE_PROJECT_NAME SUBDIRS inc)