diff --git a/MooreOnlineConf/options/tags-OnlineEnv.py b/MooreOnlineConf/options/tags-OnlineEnv.py index dc6276e97cc751daf291f4e3c2bcb8249e254a77..c81d98fe516d96cc726e6a0ffd5274a37912e4f7 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])