Skip to content

Commit dfbf242

Browse files
sawenzelclaude
andcommitted
Apply the background's loopers settings to the signal as well
This makes both transports use the same loopers settings when embedding. - GenTPCLoopers settings given with -confKeyBkg now also reach the signal. - The background's value takes precedence in both transports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 1f21226 commit dfbf242

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎MC/bin/o2dpg_sim_workflow.py‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -540,11 +540,12 @@ def loopersVetoed(confkey):
540540
args.confKeyBkg = args.confKeyBkg + ';GenTPCLoopers.loopersVeto=true'
541541
args.confKey = args.confKey + ';GenTPCLoopers.loopersVeto=true'
542542
else:
543-
# Loopers settings given for the signal apply to the background as well; the background's own
544-
# settings take precedence. Both transports take colsys from -colBkg, as the loopers are a background effect.
543+
# Loopers settings given for either transport apply to both; the background's own settings take precedence.
544+
# Both transports take colsys from -colBkg, as the loopers are a background effect.
545545
# Which transport generates the loopers of a given collision is decided in O2, from the collision context itself.
546-
args.confKeyBkg = ';'.join(loopersKeys(args.confKey) + ['GenTPCLoopers.colsys=' + COLTYPEBKG, args.confKeyBkg])
547-
args.confKey = ';'.join(['GenTPCLoopers.colsys=' + COLTYPEBKG, args.confKey])
546+
signalLoopersKeys, bkgLoopersKeys = loopersKeys(args.confKey), loopersKeys(args.confKeyBkg)
547+
args.confKeyBkg = ';'.join(signalLoopersKeys + ['GenTPCLoopers.colsys=' + COLTYPEBKG, args.confKeyBkg])
548+
args.confKey = ';'.join(['GenTPCLoopers.colsys=' + COLTYPEBKG, args.confKey] + bkgLoopersKeys)
548549

549550
workflow={}
550551
workflow['stages'] = []

0 commit comments

Comments
 (0)