ATLAS Offline Software
AlignmentErrorToolConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 
6 def AlignmentErrorToolCfg(flags, name="AlignmentErrorTool", **kwargs):
8 
9  from MuonConfig.MuonGeometryConfig import MuonGeoModelCfg
10  acc.merge(MuonGeoModelCfg(flags))
11 
12  if not (flags.IOVDb.DatabaseInstance == 'COMP200' \
13  or 'HLT' in flags.IOVDb.GlobalTag \
14  or flags.Common.isOnline or flags.Muon.MuonTrigger) :
15  from MuonConfig.MuonGeometryConfig import MuonAlignmentErrorDbAlgCfg
16  acc.merge(MuonAlignmentErrorDbAlgCfg(flags))
17 
18 
21 
22 
23  from MuonConfig.MuonGeometryConfig import MuonIdHelperSvcCfg
24  kwargs.setdefault("MuonIdHelperSvc", acc.getPrimaryAndMerge(MuonIdHelperSvcCfg(flags)))
25 
26  acc.setPrivateTools(
27  CompFactory.MuonAlign.AlignmentErrorTool(name, **kwargs))
28 
29  return acc
30 
python.AlignmentErrorToolConfig.AlignmentErrorToolCfg
def AlignmentErrorToolCfg(flags, name="AlignmentErrorTool", **kwargs)
Definition: AlignmentErrorToolConfig.py:6
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.MuonGeometryConfig.MuonIdHelperSvcCfg
def MuonIdHelperSvcCfg(flags)
Definition: MuonGeometryConfig.py:15
python.MuonGeometryConfig.MuonAlignmentErrorDbAlgCfg
def MuonAlignmentErrorDbAlgCfg(flags)
Definition: MuonGeometryConfig.py:133
python.MuonGeometryConfig.MuonGeoModelCfg
def MuonGeoModelCfg(flags)
Definition: MuonGeometryConfig.py:28