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
9066a5b4
Commit
9066a5b4
authored
4 years ago
by
R D Schaffer
Committed by
Adam Edward Barton
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update configuration for magField map for online
parent
60799c40
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MagneticField/MagFieldServices/python/MagFieldServicesConfig.py
+7
-5
7 additions, 5 deletions
...icField/MagFieldServices/python/MagFieldServicesConfig.py
MagneticField/MagFieldServices/python/MagFieldServicesSetup.py
+4
-11
4 additions, 11 deletions
...ticField/MagFieldServices/python/MagFieldServicesSetup.py
with
11 additions
and
16 deletions
MagneticField/MagFieldServices/python/MagFieldServicesConfig.py
+
7
−
5
View file @
9066a5b4
...
...
@@ -40,12 +40,13 @@ def MagneticFieldSvcCfg(flags, **kwargs):
"
name
"
:
"
AtlasFieldMapCondAlg
"
,
}
if
flags
.
Common
.
isOnline
:
# Set UseMapsFromCOOL for online to force the map creation at start
afmArgs
.
update
(
UseMapsFromCOOL
=
False
)
else
:
# Otherwise read from cool
afmArgs
.
update
(
UseMapsFromCOOL
=
True
)
# online has the map loaded at start
afmArgs
.
update
(
LoadMapOnStart
=
True
)
# UseMapsFromCOOL is default for standard running
afmArgs
.
update
(
UseMapsFromCOOL
=
True
)
# However, for tests, this must be turned off. It is detected
# when UseDCS is set to False - UseDCS is directly an option for the field cache alg
if
'
UseDCS
'
in
kwargs
and
not
kwargs
[
'
UseDCS
'
]:
afmArgs
[
'
UseMapsFromCOOL
'
]
=
False
mag_field_map_cond_alg
=
CompFactory
.
MagField
.
AtlasFieldMapCondAlg
(
**
afmArgs
)
...
...
@@ -62,6 +63,7 @@ def MagneticFieldSvcCfg(flags, **kwargs):
afcArgs
.
update
(
LockMapCurrents
=
True
)
else
:
afcArgs
.
update
(
UseDCS
=
True
)
# For test, UseDCS is set to False
if
'
UseDCS
'
in
kwargs
:
afcArgs
[
'
UseDCS
'
]
=
kwargs
[
'
UseDCS
'
]
mag_field_cache_cond_alg
=
CompFactory
.
MagField
.
AtlasFieldCacheCondAlg
(
**
afcArgs
)
...
...
This diff is collapsed.
Click to expand it.
MagneticField/MagFieldServices/python/MagFieldServicesSetup.py
+
4
−
11
View file @
9066a5b4
...
...
@@ -34,22 +34,15 @@ def AtlasFieldCacheCondAlg(name="AtlasFieldCacheCondAlg",**kwargs):
kwargs
.
setdefault
(
"
LockMapCurrents
"
,
True
)
else
:
kwargs
.
setdefault
(
"
UseDCS
"
,
True
)
# kwargs.setdefault( "UseDCS", False )
# kwargs.setdefault( "UseSoleCurrent", 12000 )
# kwargs.setdefault( "UseToroCurrent", 20400 )
return
CfgMgr
.
MagField__AtlasFieldCacheCondAlg
(
name
,
**
kwargs
)
def
AtlasFieldMapCondAlg
(
name
=
"
AtlasFieldMapCondAlg
"
,
**
kwargs
):
if
athenaCommonFlags
.
isOnline
():
#
The following are the defaults - added here to be clear
#
For old tests, must update field from defautl jobOpt
kwargs
.
setdefault
(
"
UseMapsFromCOOL
"
,
False
)
# kwargs.setdefault( "MapSoleCurrent", 7730 )
# kwargs.setdefault( "MapToroCurrent", 20400 )
else
:
# The following are the defaults - added here to be clear
kwargs
.
setdefault
(
"
UseMapsFromCOOL
"
,
True
)
# kwargs.setdefault( "MapSoleCurrent", 7730 )
# kwargs.setdefault( "MapToroCurrent", 20400 )
# online has the map loaded at start (for the future - uncomment if needed)
# kwargs.setdefault( "LoadMapOnStart", True )
return
CfgMgr
.
MagField__AtlasFieldMapCondAlg
(
name
,
**
kwargs
)
...
...
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