Skip to content
Snippets Groups Projects
Commit 59eed4e0 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

MagFieldServices: load field map on start for HLT

parent b58e3a12
No related branches found
No related tags found
No related merge requests found
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
from AthenaConfiguration.ComponentFactory import CompFactory
from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
......@@ -30,6 +30,8 @@ def AtlasFieldCacheCondAlgCfg(flags, **kwargs):
if flags.Common.isOnline:
# online does not use DCS
afmArgs.update( UseMapsFromCOOL = False )
# load map on start() for HLT
afmArgs.update( LoadMapOnStart = flags.Trigger.doHLT and flags.Trigger.Online.isPartition )
# consider field off if current is below these values:
afmArgs.update( SoleMinCurrent = 160 ) # Standby current is 150A
afmArgs.update( ToroMinCurrent = 210 ) # Standby current is 200A
......
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
# JobOption fragment to set up the magnetic field services and algorithms
# Valerio Ippolito - Harvard University
......@@ -9,6 +9,7 @@ from AthenaCommon.Logging import logging
logging.getLogger().info("Importing %s", __name__)
from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
from AthenaCommon import CfgMgr
#--------------------------------------------------------------
......@@ -31,6 +32,8 @@ def AtlasFieldMapCondAlg(name="AtlasFieldMapCondAlg",**kwargs):
if athenaCommonFlags.isOnline():
# online does not use DCS
kwargs.setdefault( "UseMapsFromCOOL", False )
# load map on start() for HLT
kwargs.setdefault( "LoadMapOnStart", hasattr(svcMgr, 'HltEventLoopMgr') )
# consider field off if current is below these values:
kwargs.setdefault( "SoleMinCurrent", 160 ) # Standby current is 150A
kwargs.setdefault( "ToroMinCurrent", 210 ) # Standby current is 200A
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment