3 Commits

Author SHA1 Message Date
lars 14cfc18369 Add optional primary particle energy argument to dataset scripts
run_pbwo4 and run_sampling previously hardcoded 1 GeV mono-energetic
e- primaries. Both now accept a trailing energy_GeV CLI argument
(default 1.0, unchanged) so datasets at other energies can be
produced without recompiling.
2026-07-13 14:01:23 +02:00
lars 068cf93604 Allow MINICALOSIM_SEED env var to override RNG seed in run_pbwo4/run_sampling
Concurrent job launches can land in the same wall-clock second, causing
G4System::init's time-based seed (seed=-1) to collide and produce
byte-identical physics across separately-named shards. Falls back to
the existing time-based seed if the variable is unset, empty, or invalid.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-09 10:04:47 +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