From 3ce76c11db20481a2f677500b06f9b332e4ea4e9 Mon Sep 17 00:00:00 2001
From: Rosen Matev <rosen.matev@cern.ch>
Date: Thu, 7 Dec 2023 17:50:34 +0100
Subject: [PATCH] Do not set beam spot offset for recent runs

---
 MooreOnlineConf/options/tags-OnlineEnv.py | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/MooreOnlineConf/options/tags-OnlineEnv.py b/MooreOnlineConf/options/tags-OnlineEnv.py
index dc6276e9..c81d98fe 100644
--- a/MooreOnlineConf/options/tags-OnlineEnv.py
+++ b/MooreOnlineConf/options/tags-OnlineEnv.py
@@ -51,9 +51,13 @@ if run_list:
         offset = (0.1, -0.231)
     if all_in_range(run_list, 276757, 276766):  # pp "reference" run
         offset = (0.064, -0.073)  # https://lblogbook.cern.ch/HLT/370
+    if all_in_range(run_list, 277473, 999999):
+        # IR condition implemented since 277473
+        offset = None
     else:
         raise RuntimeError("RunList is not entirely in a known range!")
 
-    print(f"WARNING forcing beam spot offset to {offset}")
-    PatPV3DFuture.global_bind(
-        BeamLineOffsetX=offset[0], BeamLineOffsetY=offset[1])
+    if offset is not None:
+        print(f"WARNING forcing beam spot offset to {offset}")
+        PatPV3DFuture.global_bind(
+            BeamLineOffsetX=offset[0], BeamLineOffsetY=offset[1])
-- 
GitLab