From 0bdd8fb1b35ff82c717f2a8e8be266ddcf355667 Mon Sep 17 00:00:00 2001 From: Sandro Wenzel Date: Fri, 3 Oct 2025 07:00:52 +0200 Subject: [PATCH] ability to take external collision context for the mc-on-data embedding effort --- MC/bin/o2dpg_sim_workflow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MC/bin/o2dpg_sim_workflow.py b/MC/bin/o2dpg_sim_workflow.py index 3972c577a..64ac0ac00 100755 --- a/MC/bin/o2dpg_sim_workflow.py +++ b/MC/bin/o2dpg_sim_workflow.py @@ -124,6 +124,7 @@ # power features (for playing) --> does not appear in help message # help='Treat smaller sensors in a single digitization') parser.add_argument('--pregenCollContext', action='store_true', help=argparse.SUPPRESS) # Now the default, giving this option or not makes not difference. We keep it for backward compatibility +parser.add_argument('--data-anchoring', type=str, default='', help="Take collision contexts (from data) stored in this path") parser.add_argument('--no-combine-smaller-digi', action='store_true', help=argparse.SUPPRESS) parser.add_argument('--no-combine-dpl-devices', action='store_true', help=argparse.SUPPRESS) parser.add_argument('--no-mc-labels', action='store_true', default=False, help=argparse.SUPPRESS) @@ -620,7 +621,8 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True): + ' --extract-per-timeframe tf:sgn' \ + ' --with-vertices ' + vtxmode_precoll \ + ' --maxCollsPerTF ' + str(args.ns) \ - + ' --orbitsEarly ' + str(args.orbits_early) + + ' --orbitsEarly ' + str(args.orbits_early) \ + + ('',f" --import-external {args.data_anchoring}")[len(args.data_anchoring) > 0] PreCollContextTask['cmd'] += ' --bcPatternFile ccdb' # <--- the object should have been set in (local) CCDB if includeQED: