Skip to content

Commit e4c8d4c

Browse files
sawenzelalcaliva
authored andcommitted
Enable orbits early / history effect by default
(cherry picked from commit 6d914ef)
1 parent 0096c5e commit e4c8d4c

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
parser.add_argument('--combine-tpc-clusterization', action='store_true', help=argparse.SUPPRESS) #<--- useful for small productions (pp, low interaction rate, small number of events)
121121
parser.add_argument('--first-orbit', default=256, type=int, help=argparse.SUPPRESS) # to set the first orbit number of the run for HBFUtils (only used when anchoring); default 256 for convenience to allow for some orbits-early
122122
# (consider doing this rather in O2 digitization code directly)
123-
parser.add_argument('--orbits-early', default=0, type=float, help=argparse.SUPPRESS) # number of orbits to start simulating earlier
123+
parser.add_argument('--orbits-early', default=1, type=float, help=argparse.SUPPRESS) # number of orbits to start simulating earlier
124124
# to reduce start of timeframe effects in MC --> affects collision context
125125
parser.add_argument('--sor', default=-1, type=int, help=argparse.SUPPRESS) # may pass start of run with this (otherwise it is autodetermined from run number)
126126
parser.add_argument('--run-anchored', action='store_true', help=argparse.SUPPRESS)
@@ -494,16 +494,17 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True):
494494
if doembedding:
495495
interactionspecification = 'bkg,' + str(INTRATE) + ',' + str(NTIMEFRAMES*args.ns) + ':' + str(args.nb) + ' ' + signalprefix + ',' + args.embeddPattern
496496

497-
PreCollContextTask['cmd']='${O2_ROOT}/bin/o2-steer-colcontexttool -i ' + interactionspecification \
498-
+ ' --show-context ' \
499-
+ ' --timeframeID ' + str(int(args.production_offset)*NTIMEFRAMES) \
500-
+ ' --orbitsPerTF ' + str(orbitsPerTF) \
501-
+ ' --orbits ' + str(NTIMEFRAMES * (orbitsPerTF + math.ceil(args.orbits_early))) \
502-
+ ' --seed ' + str(RNDSEED) \
503-
+ ' --noEmptyTF --first-orbit ' + str(args.first_orbit - args.orbits_early) \
504-
+ ' --extract-per-timeframe tf:sgn' \
505-
+ ' --with-vertices ' + vtxmode \
506-
+ ' --maxCollsPerTF ' + str(args.ns)
497+
PreCollContextTask['cmd']='${O2_ROOT}/bin/o2-steer-colcontexttool -i ' + interactionspecification \
498+
+ ' --show-context ' \
499+
+ ' --timeframeID ' + str(int(args.production_offset)*NTIMEFRAMES) \
500+
+ ' --orbitsPerTF ' + str(orbitsPerTF) \
501+
+ ' --orbits ' + str(NTIMEFRAMES * (orbitsPerTF)) \
502+
+ ' --seed ' + str(RNDSEED) \
503+
+ ' --noEmptyTF --first-orbit ' + str(args.first_orbit) \
504+
+ ' --extract-per-timeframe tf:sgn' \
505+
+ ' --with-vertices ' + vtxmode \
506+
+ ' --maxCollsPerTF ' + str(args.ns) \
507+
+ ' --orbitsEarly ' + str(args.orbits_early)
507508

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

0 commit comments

Comments
 (0)