Skip to content

Commit 8ac5992

Browse files
committed
ability to take external collision context
for the mc-on-data embedding effort
1 parent 9197b2f commit 8ac5992

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
# power features (for playing) --> does not appear in help message
125125
# help='Treat smaller sensors in a single digitization')
126126
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
127+
parser.add_argument('--data-anchoring', type=str, default='', help="Take collision contexts (from data) stored in this path")
127128
parser.add_argument('--no-combine-smaller-digi', action='store_true', help=argparse.SUPPRESS)
128129
parser.add_argument('--no-combine-dpl-devices', action='store_true', help=argparse.SUPPRESS)
129130
parser.add_argument('--no-mc-labels', action='store_true', default=False, help=argparse.SUPPRESS)
@@ -623,7 +624,8 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True, runcommand=True):
623624
+ ' --extract-per-timeframe tf:sgn' \
624625
+ ' --with-vertices ' + vtxmode_precoll \
625626
+ ' --maxCollsPerTF ' + str(args.ns) \
626-
+ ' --orbitsEarly ' + str(args.orbits_early)
627+
+ ' --orbitsEarly ' + str(args.orbits_early) \
628+
+ ('',f" --import-external {args.data_anchoring}")[len(args.data_anchoring) > 0]
627629

628630
PreCollContextTask['cmd'] += ' --bcPatternFile ccdb' # <--- the object should have been set in (local) CCDB
629631
if includeQED:

0 commit comments

Comments
 (0)