ATLAS Offline Software
TrigT1MuonRecRoiToolConfig.py
Go to the documentation of this file.
1 #
2 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 #
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 from MuonConfig.MuonCablingConfig import RPCCablingConfigCfg, TGCCablingConfigCfg
6 from MuonConfig.MuonGeometryConfig import MuonGeoModelCfg
7 
8 def RPCRecRoiToolCfg(flags, name="RPCRecRoiTool", useRun3Config=True):
9  acc = RPCCablingConfigCfg(flags)
10  acc.merge(MuonGeoModelCfg(flags))
11 
12  tool = CompFactory.getComp("LVL1::TrigT1RPCRecRoiTool")(name)
13  tool.UseRun3Config = useRun3Config
14  tool.ReadKey = str(acc.getCondAlgo("RpcCablingCondAlg").WriteKey)
15  tool.DetectorManagerKey = str(acc.getCondAlgo("MuonDetectorCondAlg").WriteDetectorManagerKey)
16  acc.setPrivateTools(tool)
17 
18  return acc
19 
20 def TGCRecRoiToolCfg(flags, name="TGCRecRoiTool", useRun3Config=True):
21  acc = TGCCablingConfigCfg(flags)
22  acc.merge(MuonGeoModelCfg(flags))
23 
24  tool = CompFactory.getComp("LVL1::TrigT1TGCRecRoiTool")(name)
25  tool.UseRun3Config = useRun3Config
26  tool.DetectorManagerKey = str(acc.getCondAlgo("MuonDetectorCondAlg").WriteDetectorManagerKey)
27  acc.setPrivateTools(tool)
28 
29  return acc
TrigT1MuonRecRoiToolConfig.RPCRecRoiToolCfg
def RPCRecRoiToolCfg(flags, name="RPCRecRoiTool", useRun3Config=True)
Definition: TrigT1MuonRecRoiToolConfig.py:8
python.MuonCablingConfig.TGCCablingConfigCfg
def TGCCablingConfigCfg(flags)
Definition: MuonCablingConfig.py:86
python.MuonCablingConfig.RPCCablingConfigCfg
def RPCCablingConfigCfg(flags)
Definition: MuonCablingConfig.py:33
python.MuonGeometryConfig.MuonGeoModelCfg
def MuonGeoModelCfg(flags)
Definition: MuonGeometryConfig.py:28
TrigT1MuonRecRoiToolConfig.TGCRecRoiToolCfg
def TGCRecRoiToolCfg(flags, name="TGCRecRoiTool", useRun3Config=True)
Definition: TrigT1MuonRecRoiToolConfig.py:20
str
Definition: BTagTrackIpAccessor.cxx:11