Skip to content

Commit cd90ad0

Browse files
committed
anchorMC: possibility to overwrite readoutDets
1 parent 71507bf commit cd90ad0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MC/bin/o2dpg_sim_workflow_anchored.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,9 @@ def main():
536536
# TODO: this needs to be done in a pythonic way clearly
537537
# NOTE: forwardargs can - in principle - contain some of the arguments that are appended here. However, the last passed argument wins, so they would be overwritten.
538538
forwardargs += " -tf " + str(args.tf) + " --sor " + str(run_start) + " --timestamp " + str(timestamp) + " --production-offset " + str(prod_offset) + " -run " + str(args.run_number) + " --run-anchored --first-orbit " \
539-
+ str(GLOparams["FirstOrbit"]) + " -field ccdb -bcPatternFile ccdb" + " --orbitsPerTF " + str(GLOparams["OrbitsPerTF"]) + " -col " + str(ColSystem) + " -eCM " + str(eCM) + ' --readoutDets ' + GLOparams['detList']
539+
+ str(GLOparams["FirstOrbit"]) + " -field ccdb -bcPatternFile ccdb" + " --orbitsPerTF " + str(GLOparams["OrbitsPerTF"]) + " -col " + str(ColSystem) + " -eCM " + str(eCM)
540+
if not '--readoutDets' in forwardargs:
541+
forwardargs += ' --readoutDets ' + GLOparams['detList']
540542
print ("forward args ", forwardargs)
541543
cmd = "${O2DPG_ROOT}/MC/bin/o2dpg_sim_workflow.py " + forwardargs
542544

0 commit comments

Comments
 (0)