From 24facef5060d25a190a9759cb2e7465360865069 Mon Sep 17 00:00:00 2001 From: Markus Frank Date: Tue, 18 Feb 2025 11:44:02 +0100 Subject: [PATCH 1/3] Enable random seed printout to debug flaky BoxOfStraws example --- examples/ClientTests/scripts/BoxOfStraws_DDSim.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/ClientTests/scripts/BoxOfStraws_DDSim.py b/examples/ClientTests/scripts/BoxOfStraws_DDSim.py index a91422909..b65727b67 100644 --- a/examples/ClientTests/scripts/BoxOfStraws_DDSim.py +++ b/examples/ClientTests/scripts/BoxOfStraws_DDSim.py @@ -3,7 +3,9 @@ # make ddsim find the sensitive detector for box of straws SIM.action.calorimeterSDTypes = ['sensitive'] - +SIM.random.enableEventSeed = True +## Fix random seed for all events (debugging only): +## SIM.random.seed = SIM.filter.calo = "" # Configure the regexSD for the BoxOfStraws gas_ From 5fd3e24b718960eed83b36697246ce77878d8e48 Mon Sep 17 00:00:00 2001 From: Markus Frank Date: Tue, 18 Feb 2025 13:18:17 +0100 Subject: [PATCH 2/3] Enable random seed printout to debug flaky BoxOfStraws example --- examples/ClientTests/scripts/BoxOfStraws_DDSim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ClientTests/scripts/BoxOfStraws_DDSim.py b/examples/ClientTests/scripts/BoxOfStraws_DDSim.py index b65727b67..72889dcfc 100644 --- a/examples/ClientTests/scripts/BoxOfStraws_DDSim.py +++ b/examples/ClientTests/scripts/BoxOfStraws_DDSim.py @@ -4,8 +4,8 @@ # make ddsim find the sensitive detector for box of straws SIM.action.calorimeterSDTypes = ['sensitive'] SIM.random.enableEventSeed = True -## Fix random seed for all events (debugging only): -## SIM.random.seed = +# Fix random seed for all events (debugging only): +# SIM.random.seed = SIM.filter.calo = "" # Configure the regexSD for the BoxOfStraws gas_ From a45c92c3e9103245e2e30155662d38a698421c8a Mon Sep 17 00:00:00 2001 From: Markus Frank Date: Tue, 18 Feb 2025 13:55:11 +0100 Subject: [PATCH 3/3] Enable random seed printout to debug flaky BoxOfStraws example --- examples/ClientTests/scripts/BoxOfStraws_DDSim.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/ClientTests/scripts/BoxOfStraws_DDSim.py b/examples/ClientTests/scripts/BoxOfStraws_DDSim.py index 72889dcfc..18b6037ac 100644 --- a/examples/ClientTests/scripts/BoxOfStraws_DDSim.py +++ b/examples/ClientTests/scripts/BoxOfStraws_DDSim.py @@ -3,9 +3,13 @@ # make ddsim find the sensitive detector for box of straws SIM.action.calorimeterSDTypes = ['sensitive'] + +# Trigger printout of event seed SIM.random.enableEventSeed = True + # Fix random seed for all events (debugging only): -# SIM.random.seed = +# SIM.random.seed = + SIM.filter.calo = "" # Configure the regexSD for the BoxOfStraws gas_