|
25 | 25 | import random |
26 | 26 | import json |
27 | 27 | import itertools |
| 28 | +import math |
28 | 29 | import requests, re |
29 | 30 | pandas_available = True |
30 | 31 | try: |
|
119 | 120 | parser.add_argument('--combine-tpc-clusterization', action='store_true', help=argparse.SUPPRESS) #<--- useful for small productions (pp, low interaction rate, small number of events) |
120 | 121 | parser.add_argument('--first-orbit', default=0, type=int, help=argparse.SUPPRESS) # to set the first orbit number of the run for HBFUtils (only used when anchoring) |
121 | 122 | # (consider doing this rather in O2 digitization code directly) |
122 | | -parser.add_argument('--orbits-early', default=0, type=int, help=argparse.SUPPRESS) # number of orbits to start simulating earlier |
| 123 | +parser.add_argument('--orbits-early', default=0, type=float, help=argparse.SUPPRESS) # number of orbits to start simulating earlier |
123 | 124 | # to reduce start of timeframe effects in MC --> affects collision context |
124 | 125 | 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) |
125 | 126 | parser.add_argument('--run-anchored', action='store_true', help=argparse.SUPPRESS) |
@@ -627,7 +628,7 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True): |
627 | 628 | PreCollContextTask=createTask(name='precollcontext_' + str(tf), needs=precollneeds, tf=tf, cwd=timeframeworkdir, cpu='1') |
628 | 629 | PreCollContextTask['cmd']='${O2_ROOT}/bin/o2-steer-colcontexttool -i ' + signalprefix + ',' + str(INTRATE) + ',' + str(args.ns) + ':' + str(args.ns) \ |
629 | 630 | + ' --show-context ' + ' --timeframeID ' + str(tf-1 + int(args.production_offset)*NTIMEFRAMES) \ |
630 | | - + ' --orbitsPerTF ' + str(orbitsPerTF) + ' --orbits ' + str(orbitsPerTF + args.orbits_early) \ |
| 631 | + + ' --orbitsPerTF ' + str(orbitsPerTF) + ' --orbits ' + str(orbitsPerTF + math.ceil(args.orbits_early)) \ |
631 | 632 | + ' --seed ' + str(TFSEED) + ' --noEmptyTF --first-orbit ' + str(args.first_orbit - args.orbits_early) |
632 | 633 | PreCollContextTask['cmd'] += ' --bcPatternFile ccdb' # <--- the object should have been set in (local) CCDB |
633 | 634 | if includeQED: |
|
0 commit comments