Skip to content

Commit ef75c8f

Browse files
sawenzelclaude
andcommitted
Round the ITS ramp-up shift with the final orbitsPerTF
This fixes the anchoring for productions that override orbitsPerTF. - The ramp-up shift was rounded with the orbitsPerTF of the data run, before the --orbitsPerTF override. - With 128 orbits per TF this left the MC timeframes 64 orbits off. - The shift is now recomputed after the override. https://its.cern.ch/jira/browse/O2-7335 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 654a8ce commit ef75c8f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎MC/bin/o2dpg_sim_workflow_anchored.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,9 @@ def main():
707707
if determined_orbits != -1:
708708
print("Adjusting orbitsPerTF from " + str(GLOparams["OrbitsPerTF"]) + " to " + str(determined_orbits))
709709
GLOparams["OrbitsPerTF"] = determined_orbits
710+
# the ramp-up shift must be a multiple of the final orbitsPerTF
711+
effective_run_start, effective_first_orbit = anchor_origin(run_start, GLOparams["FirstOrbit"], GLOparams["OrbitsPerTF"], ITS_rampup, args.timeframeID != -1)
712+
mid_run_timestamp = (effective_run_start + run_end) // 2
710713

711714
# determine timestamp, and production offset for the final MC job to run
712715
timestamp = 0
@@ -807,7 +810,8 @@ def main():
807810
Col = ColSystem,
808811
IntRate =rate,
809812
RunNumber = args.run_number,
810-
OrbitsPerTF = GLOparams["OrbitsPerTF"])
813+
OrbitsPerTF = GLOparams["OrbitsPerTF"],
814+
FirstOrbitMC = effective_first_orbit)
811815
publish_MCProdInfo(info, username = grid_user_name, ccdb_url = mcprod_ccdb_server)
812816
else:
813817
print("No production tag or GRID user name known. Not publishing MCProdInfo")

0 commit comments

Comments
 (0)