Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena_MET
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Plebani
athena_MET
Commits
59eed4e0
Commit
59eed4e0
authored
2 years ago
by
Frank Winklmeier
Browse files
Options
Downloads
Patches
Plain Diff
MagFieldServices: load field map on start for HLT
parent
b58e3a12
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MagneticField/MagFieldServices/python/MagFieldServicesConfig.py
+3
-1
3 additions, 1 deletion
...icField/MagFieldServices/python/MagFieldServicesConfig.py
MagneticField/MagFieldServices/python/MagFieldServicesSetup.py
+4
-1
4 additions, 1 deletion
...ticField/MagFieldServices/python/MagFieldServicesSetup.py
with
7 additions
and
2 deletions
MagneticField/MagFieldServices/python/MagFieldServicesConfig.py
+
3
−
1
View file @
59eed4e0
# Copyright (C) 2002-202
2
CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-202
3
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
...
...
This diff is collapsed.
Click to expand it.
MagneticField/MagFieldServices/python/MagFieldServicesSetup.py
+
4
−
1
View file @
59eed4e0
# Copyright (C) 2002-202
2
CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-202
3
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment