2 from AthenaConfiguration.ComponentFactory
import CompFactory
3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaCommon.Logging
import logging
7 from TrigT1MuonRecRoiTool.TrigT1MuonRecRoiToolConfig
import RPCRecRoiToolCfg, TGCRecRoiToolCfg
11 tool = CompFactory.getComp(
"LVL1::TrigThresholdDecisionTool")(name)
14 acc.setPrivateTools(tool)
20 tool = CompFactory.getComp(
"LVL1MUCTPIPHASE1::MUCTPI_AthTool")(name)
26 logger = logging.getLogger(
"MUCTPI_AthTool" )
29 tool.OverlapStrategyName = flags.Trigger.MUCTPI.OverlapStrategy
32 tool.LUTXMLFile = flags.Trigger.MUCTPI.LUTXMLFile
33 logger.info(
"Configuring MuCTPI simulation with configuration file: %s", tool.LUTXMLFile )
35 if flags.Trigger.doHLT:
37 from TrigEDMConfig.TriggerEDM
import recordable
38 for key
in tool.MUCTPI_xAODLocation:
39 logger.info(
"Configuring MuCTPI simulation with configuration outputs: %s", key )
40 assert key==
recordable(key), f
'recordable() check failed for {key}'
41 logger.info(
"Configuring MuCTPI: post flags.Trigger.doHLT" )
43 acc.setPrivateTools(tool)
49 alg = CompFactory.getComp(
"LVL1MUCTPIPHASE1::MUCTPI_AthAlg")(name=
"MUCTPI_AthAlg")
50 alg.MUCTPI_AthTool = acc.popToolsAndMerge(
MUCTPI_AthToolCfg(flags, name=
"MUCTPI_AthTool"))