k4bench.cli¶
k4bench.cli ¶
Command-line interface for k4bench.
Entry point registered as k4bench in pyproject.toml.
Usage examples
Single baseline run::
k4bench --xml ALLEGRO.xml \
--ddsim-args="--enableGun --gun.particle e- --gun.distribution uniform"
Full sweep (baseline + one run per detector removed)::
k4bench --xml ALLEGRO.xml --sweep \
--ddsim-args="--enableGun --gun.particle e- --gun.distribution uniform"
Simulate with only specific detectors::
k4bench --xml ALLEGRO.xml \
--include-only ECalBarrel HCalBarrel \
--ddsim-args="--enableGun --gun.particle e- --gun.distribution uniform"
Simulate with all detectors except specific ones::
k4bench --xml ALLEGRO.xml \
--exclude-only ECalBarrel HCalBarrel \
--ddsim-args="--enableGun --gun.particle e- --gun.distribution uniform"
Control output::
k4bench --xml ALLEGRO.xml \
--output-dir logs/ \
--pickle results.pkl \
--ddsim-args="--enableGun --gun.particle e- --gun.distribution uniform"
main ¶
Parse arguments, run the benchmark, save results.
Returns the exit code (0 = success, 1 = error).