From 9c510d9d943ed1170d1c8f8e5d0dbf45866ad34b Mon Sep 17 00:00:00 2001 From: Marco Giacalone Date: Fri, 25 Sep 2026 10:41:41 +0200 Subject: [PATCH] Replace simple string search with regular expression When adding -colBkg the simple search was wrongly returning true --- MC/bin/o2dpg_sim_workflow_anchored.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MC/bin/o2dpg_sim_workflow_anchored.py b/MC/bin/o2dpg_sim_workflow_anchored.py index c8a815598..2ece8ad7f 100755 --- a/MC/bin/o2dpg_sim_workflow_anchored.py +++ b/MC/bin/o2dpg_sim_workflow_anchored.py @@ -742,7 +742,7 @@ def main(): forwardargs += " -tf " + str(args.tf) + " --sor " + str(effective_run_start) + " --timestamp " + str(timestamp) + " --production-offset " + str(prod_offset) + " -run " + str(args.run_number) + " --run-anchored --first-orbit " \ + str(effective_first_orbit) + " --orbitsPerTF " + str(GLOparams["OrbitsPerTF"]) + str(energyarg) # the following options can be overwritten/influenced from the outside - if not '-col' in forwardargs: + if not re.search(r'(?