ATLAS Offline Software
Functions
ConditionsConfig Namespace Reference

Functions

def ActsMuonAlignCondAlgCfg (flags, name="ActsMuonAlignCondAlg", **kwargs)
 

Function Documentation

◆ ActsMuonAlignCondAlgCfg()

def ConditionsConfig.ActsMuonAlignCondAlgCfg (   flags,
  name = "ActsMuonAlignCondAlg",
**  kwargs 
)

Definition at line 5 of file ConditionsConfig.py.

5 def ActsMuonAlignCondAlgCfg(flags, name="ActsMuonAlignCondAlg", **kwargs):
6  result = ComponentAccumulator()
7 
8  if not flags.Muon.usePhaseIIGeoSetup or ( not flags.Muon.enableAlignment and \
9  not flags.Muon.applyMMPassivation):
10  return result
11 
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)
17 
18 
19  if kwargs["applyMmPassivation"]:
20  from MuonConfig.MuonCondAlgConfig import NswPassivationDbAlgCfg
21  result.merge(NswPassivationDbAlgCfg(flags))
22  if flags.Muon.enableAlignment:
23  result.merge(MuonAlignmentCondAlgCfg(flags))
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)
28 
29  the_alg = CompFactory.ActsMuonAlignCondAlg(name, **kwargs)
30  result.addCondAlgo(the_alg)
31  return result
32 
33 
ConditionsConfig.ActsMuonAlignCondAlgCfg
def ActsMuonAlignCondAlgCfg(flags, name="ActsMuonAlignCondAlg", **kwargs)
Definition: ConditionsConfig.py:5
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.MuonGeometryConfig.MuonAlignmentCondAlgCfg
def MuonAlignmentCondAlgCfg(flags, name="MuonAlignmentCondAlg", **kwargs)
Definition: MuonGeometryConfig.py:100
python.MuonCondAlgConfig.NswPassivationDbAlgCfg
def NswPassivationDbAlgCfg(flags, **kwargs)
Definition: MuonCondAlgConfig.py:326