Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
atlas
athena
Commits
b1fbd0f0
Commit
b1fbd0f0
authored
Aug 05, 2021
by
Walter Lampl
Browse files
MuonConfig: Add new config-flag 'Muon.enableAlignment'
parent
449e1cd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
MuonSpectrometer/MuonConfig/python/MuonConfigFlags.py
View file @
b1fbd0f0
...
...
@@ -2,6 +2,7 @@
from
AthenaConfiguration.AthConfigFlags
import
AthConfigFlags
from
AthenaConfiguration.AutoConfigFlags
import
DetDescrInfo
from
AthenaConfiguration.Enums
import
ProductionStep
import
re
# Some comments from Ed about existing flags
...
...
@@ -126,6 +127,9 @@ def createMuonConfigFlags():
mcf
.
addFlag
(
"Muon.MuonTrigger"
,
False
)
mcf
.
addFlag
(
"Muon.SAMuonTrigger"
,
False
)
mcf
.
addFlag
(
"Muon.enableAlignment"
,
lambda
flags
:
(
flags
.
Common
.
Project
!=
'AthSimulation'
\
and
(
flags
.
Common
.
ProductionStep
!=
ProductionStep
.
Simulation
or
flags
.
Overlay
.
DataOverlay
)))
# TODO - add configuration for above
return
mcf
...
...
MuonSpectrometer/MuonConfig/python/MuonGeometryConfig.py
View file @
b1fbd0f0
...
...
@@ -33,9 +33,7 @@ def MuonDetectorToolCfg(flags):
from
MuonGeoModel.MMPassivationFlag
import
MMPassivationFlag
detTool
.
passivationWidthMM
=
MMPassivationFlag
.
correction
enableAlignment
=
flags
.
Common
.
Project
!=
'AthSimulation'
\
and
(
flags
.
Common
.
ProductionStep
!=
ProductionStep
.
Simulation
or
flags
.
Overlay
.
DataOverlay
)
if
enableAlignment
:
if
flags
.
Muon
.
enableAlignment
:
# Condition DB is needed only if A-lines or B-lines are requested
if
not
(
not
flags
.
Muon
.
Align
.
UseALines
and
flags
.
Muon
.
Align
.
UseBLines
==
'none'
):
detTool
.
UseConditionDb
=
1
...
...
@@ -182,9 +180,7 @@ def MuonGeoModelCfg(flags, forceDisableAlignment=False):
detTool
.
FillCacheInitTime
=
0
# We do not need to fill cache for the MuonGeoModel MuonDetectorTool, just for the condAlg
gms
.
DetectorTools
+=
[
detTool
]
enableAlignment
=
flags
.
Common
.
Project
!=
'AthSimulation'
\
and
(
flags
.
Common
.
ProductionStep
!=
ProductionStep
.
Simulation
or
flags
.
Overlay
.
DataOverlay
)
if
enableAlignment
and
not
forceDisableAlignment
:
if
flags
.
Muon
.
enableAlignment
and
not
forceDisableAlignment
:
acc
.
merge
(
MuonDetectorCondAlgCfg
(
flags
))
acc
.
merge
(
MuonIdHelperSvcCfg
(
flags
))
# This line can be removed once the configuration methods for all 258 components which directly use this service are updated!!
...
...
Vakhtang Tsulaia
@tsulaia
mentioned in commit
f80731b5
·
Aug 10, 2021
mentioned in commit
f80731b5
mentioned in commit f80731b5c672ef1e8420dee74c837477ce465682
Toggle commit list
Edward Moyse
@emoyse
mentioned in merge request
!45721 (closed)
·
Aug 10, 2021
mentioned in merge request
!45721 (closed)
mentioned in merge request !45721
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment