Commit Graph

27 Commits

Author SHA1 Message Date
lars 2a0a23a45b remove example files, mac files, and unused docker variants
Keep only the core C++ source and docker/Dockerfile-mini. Removes:
- exampleB4a (example executable and associated scripts)
- Geant4 macro (.mac) files
- ROOT plotting scripts
- GNUmakefile (old non-CMake build system)
- All Dockerfiles and scripts except Dockerfile-mini

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-11 10:45:17 +02:00
lars 18de7dd3db limit Docker build parallelism to min(nproc, 16)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-10 08:20:27 +02:00
lars 5fc50bcefc print commit hash on import; fix event_id offset in multi-core steps
G4Calo.py prints the commit at import time, resolved via a
minicalo_version.py file (baked in by Docker) or git rev-parse
from the file's directory as fallback.

event_id in the Steps ntuple restarts from 0 in each subprocess;
_assemble_results_to_mini_df now accepts per-file event_id_offsets
so IDs are globally unique after merging. run_batch passes cumulative
nevents as offsets when loading the Steps tree.

Dockerfiles write minicalo_version.py before copying Python files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-08 16:35:31 +02:00
lars f5c832fd44 fix Geant4 cmake git-dirty check when building from submodule ADD
The submodule leaves a .git *file* (not directory) pointing to
../../.git/modules/lib/geant4, which passes G4GitUtilities' guard
but causes a FATAL_ERROR when git status fails in the bare /tmp dir.
Remove .git before cmake so the guard fires and the check is skipped.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-08 16:09:55 +02:00
lars 4ffb2f78b8 extend Steps ntuple and switch Docker to Geant4 submodule source
Add 15 new columns to the Steps ntuple: edep, step_length, parent_id,
process name, layer_id, material, pre-step momentum direction, and
B/E field components (in T and V/m) at the pre-step point.

Replace wget Geant4 tarball download in all three Dockerfiles with
ADD of the lib/geant4 submodule source; narrow submodule init to
lib/pybind11 only so builds no longer require network access for Geant4.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-08 16:07:17 +02:00
lars 7a62a46fe6 add run_pbwo4.py and include examples dir in both Docker images
run_pbwo4.py simulates 10 events in a single 20cm G4_PbWO4 layer
(10x10 sensor grid, 1 GeV e-) and saves results as a pickle next to
the script. Both images now expose /examples containing all bind/ files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-08 13:59:01 +02:00
lars 03b615cd3a fix LD_LIBRARY_PATH warning in Dockerfile-mini
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-08 12:57:38 +02:00
lars aaf0b33413 add minimal Docker image (no CUDA, no Jupyter, batch-only Geant4)
Dockerfile-mini builds a lightweight image with only what's needed to
run the bind/ examples: Geant4 v11.1.2 (batch mode, no visualization),
Python 3.10, and numpy/pandas/uproot/awkward/plotly/ipython.
Examples are copied to /examples which is also the working directory.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-08 12:38:52 +02:00
lars 0c3f68d0cf change container entrypoint from start-notebook.sh to bash
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-08 12:30:47 +02:00
lars 4bc94278d8 fix Docker build: initialise pybind11 submodule before cmake
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-08 11:47:51 +02:00
Jan Kieseler 90baa21ce5 better commit hash handling 2025-10-16 17:25:09 +02:00
Jan Kieseler 8b8a526c54 added fastparquet 2025-10-16 15:32:52 +02:00
Jan Kieseler 13a913c068 changed to slim pandas wrapper 2025-10-10 10:38:33 +02:00
Jan Kieseler fd13b336e1 updated finally to ubuntu 22.04 and py3.10 2025-01-15 16:20:13 +01:00
Jan Kieseler 64e48ce7b3 changing ubuntu version 2025-01-15 16:06:34 +01:00
Jan Kieseler 62bf0837b5 changed underlying geant encapsulation completely 2024-12-13 11:13:54 +01:00
Jan Kieseler ef48d3da76 faster geant compile 2024-12-12 08:28:53 +01:00
Jan Kieseler 7e47bd5aa7 remove threaded option in geant compile args 2024-12-12 08:26:53 +01:00
Jan Kieseler 46efd8dea0 cpu file, needs testing 2024-09-17 16:19:49 +02:00
Jan Kieseler a8ae88b8cd added check script 2024-08-22 16:06:35 +02:00
Jan Kieseler 483f584e1c cuda check and better comment 2024-08-22 16:05:56 +02:00
Jan Kieseler c6c7b496c6 cuda check script 2024-08-22 16:04:26 +02:00
Jan Kieseler d41814b502 docker update 2024-08-22 14:51:50 +02:00
Jan Kieseler ee622c57ba another try 2024-07-24 10:23:58 +02:00
Jan Kieseler f1635306a0 added files 2024-07-23 16:43:00 +02:00
Jan Kieseler a7c454648d updated build pipeline 2024-05-07 13:58:10 +02:00
Jan Kieseler 32719f21c3 move 2024-05-07 09:38:15 +02:00