|
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) |
@@ -616,7 +617,7 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True): |
616 | 617 | PreCollContextTask=createTask(name='precollcontext_' + str(tf), needs=precollneeds, tf=tf, cwd=timeframeworkdir, cpu='1') |
617 | 618 | PreCollContextTask['cmd']='${O2_ROOT}/bin/o2-steer-colcontexttool -i ' + signalprefix + ',' + str(INTRATE) + ',' + str(args.ns) + ':' + str(args.ns) \ |
618 | 619 | + ' --show-context ' + ' --timeframeID ' + str(tf-1 + int(args.production_offset)*NTIMEFRAMES) \ |
619 | | - + ' --orbitsPerTF ' + str(orbitsPerTF) + ' --orbits ' + str(orbitsPerTF + args.orbits_early) \ |
| 620 | + + ' --orbitsPerTF ' + str(orbitsPerTF) + ' --orbits ' + str(orbitsPerTF + math.ceil(args.orbits_early)) \ |
620 | 621 | + ' --seed ' + str(TFSEED) + ' --noEmptyTF --first-orbit ' + str(args.first_orbit - args.orbits_early) |
621 | 622 | PreCollContextTask['cmd'] += ' --bcPatternFile ccdb' # <--- the object should have been set in (local) CCDB |
622 | 623 | if includeQED: |
|
0 commit comments