Commit Graph

4 Commits

Author SHA1 Message Date
lars 6a3aabf772 Allow disabling of GDML so there is no dependency on xerces-c 2026-07-01 12:48:54 +02:00
lars 11d01d7015 Add run_sampling executable for sampling calorimeter geometries
Mirrors run_pbwo4 but alternates thin absorber and active layers,
with four selectable configs (by name or 1-based index): pb_scint,
fe_scint, w_scint_ecal (homogeneous ECAL-like preshower + W/scint
sampling section), and pb_lar. Each is sized to reach ~20-25 X0 of
absorber despite the dilution from inactive gaps. Wired into the
top-level CMakeLists, superbuild, and Dockerfile alongside run_pbwo4.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 09:45:31 +02:00
lars 38a0273087 link run_pbwo4 to build root in both build modes
Superbuild: install step creates build/run_pbwo4 symlink pointing at
the executable in build/minicalosim-build/.
Regular build: CMAKE_RUNTIME_OUTPUT_DIRECTORY ensures the executable
lands in build/ regardless of generator.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-11 11:10:44 +02:00
lars e265a6aa63 add superbuild to compile Geant4 from submodule source
superbuild/CMakeLists.txt uses ExternalProject_Add to give three targets:

  cmake -B build -S superbuild/
  cmake --build build --target geant4      # build Geant4 → build/geant4-install
  cmake --build build --target run_pbwo4   # build minicalosim against it
  cmake --build build                      # both

The existing root CMakeLists.txt (find_package Geant4) is unchanged
for the system-Geant4 workflow.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-11 10:41:47 +02:00