Skip to content

Commit 0bdd8fb

Browse files
committed
ability to take external collision context
for the mc-on-data embedding effort
1 parent f1a5935 commit 0bdd8fb

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)
@@ -620,7 +621,8 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True):
620621
+ ' --extract-per-timeframe tf:sgn' \
621622
+ ' --with-vertices ' + vtxmode_precoll \
622623
+ ' --maxCollsPerTF ' + str(args.ns) \
623-
+ ' --orbitsEarly ' + str(args.orbits_early)
624+
+ ' --orbitsEarly ' + str(args.orbits_early) \
625+
+ ('',f" --import-external {args.data_anchoring}")[len(args.data_anchoring) > 0]
624626

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

0 commit comments

Comments
 (0)