Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,6 @@ test/gaudi_opts/testConverterConstants.py
buildsub/
installsub/
setup.sh

/data/*.json
/data/*.root
18 changes: 18 additions & 0 deletions data/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,24 @@ See the License for the specific language governing permissions and
limitations under the License.
]]

# Download the necessary data files dynamically
set(DATA_BASE_URL "https://key4hep.web.cern.ch/key4hep/k4ActsTracking/MuColl/data")
set(FILE_LIST_PATH "${CMAKE_CURRENT_SOURCE_DIR}/file_list.txt")
set(OUTPUT_DIR "${CMAKE_CURRENT_SOURCE_DIR}")

message(STATUS "Running download script for data files...")
execute_process(
COMMAND bash "${CMAKE_CURRENT_SOURCE_DIR}/download_files.sh" ${FILE_LIST_PATH} ${DATA_BASE_URL} ${OUTPUT_DIR}
RESULT_VARIABLE download_result
ERROR_VARIABLE download_error
)

if(download_result EQUAL 0)
message(STATUS "Data files download completed successfully")
else()
message(FATAL_ERROR "Failed to download data files:\n${download_error}")
endif()

# Tracking geometry
INSTALL(FILES MuColl_v1.root MuSIC_v1.root MuSIC_v2.root MAIA_v0.root
DESTINATION ${CMAKE_INSTALL_DATADIR}/k4ActsTracking/data)
Expand Down
307 changes: 0 additions & 307 deletions data/MAIA_v0.json

This file was deleted.

Binary file removed data/MAIA_v0.root
Binary file not shown.
Loading
Loading