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)
17 from TrigConfxAOD.TrigConfxAODConfig
import getxAODConfigSvc
19 tool.MenuFromxAOD =
True
21 acc.setPrivateTools(tool)
27 tool = CompFactory.getComp(
"LVL1MUCTPIPHASE1::MUCTPI_AthTool")(name)
33 logger = logging.getLogger(
"MUCTPI_AthTool" )
36 tool.OverlapStrategyName = flags.Trigger.MUCTPI.OverlapStrategy
39 tool.LUTXMLFile = flags.Trigger.MUCTPI.LUTXMLFile
40 logger.info(
"Configuring MuCTPI simulation with configuration file: %s", tool.LUTXMLFile )
42 if flags.Trigger.doHLT:
44 from TrigEDMConfig.TriggerEDM
import recordable
45 for key
in tool.MUCTPI_xAODLocation:
46 logger.info(
"Configuring MuCTPI simulation with configuration outputs: %s", key )
47 assert key==
recordable(key), f
'recordable() check failed for {key}'
48 logger.info(
"Configuring MuCTPI: post flags.Trigger.doHLT" )
50 acc.setPrivateTools(tool)
56 alg = CompFactory.getComp(
"LVL1MUCTPIPHASE1::MUCTPI_AthAlg")(name=
"MUCTPI_AthAlg")
57 alg.MUCTPI_AthTool = acc.popToolsAndMerge(
MUCTPI_AthToolCfg(flags, name=
"MUCTPI_AthTool"))