2 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory
import CompFactory
8 if not flags.Muon.usePhaseIIGeoSetup
or (
not flags.Muon.enableAlignment
and \
9 not flags.Muon.applyMMPassivation):
12 from MuonConfig.MuonGeometryConfig
import MuonAlignmentCondAlgCfg
13 kwargs.setdefault(
"applyMmPassivation", flags.Muon.applyMMPassivation)
14 kwargs.setdefault(
"FillAlignCache",
False)
15 kwargs.setdefault(
"FillGeoAlignStore",
False)
16 kwargs.setdefault(
"applyBLines",
False)
19 if kwargs[
"applyMmPassivation"]:
20 from MuonConfig.MuonCondAlgConfig
import NswPassivationDbAlgCfg
22 if flags.Muon.enableAlignment:
24 kwargs.setdefault(
"applyALines", len([alg
for alg
in result.getCondAlgos()
if alg.name ==
"MuonAlignmentCondAlg"])>0)
25 kwargs.setdefault(
"applyBLines", len([alg
for alg
in result.getCondAlgos()
if alg.name ==
"MuonAlignmentCondAlg"])>0)
26 kwargs.setdefault(
"applyNswAsBuilt", len([alg
for alg
in result.getCondAlgos()
if alg.name ==
"NswAsBuiltCondAlg"])>0)
27 kwargs.setdefault(
"applyMdtAsBuilt", len([alg
for alg
in result.getCondAlgos()
if alg.name ==
"MdtAsBuiltCondAlg"])>0)
29 the_alg = CompFactory.ActsMuonAlignCondAlg(name, **kwargs)
30 result.addCondAlgo(the_alg)