ATLAS Offline Software
Loading...
Searching...
No Matches
python.TrigT1MuctpiPhase1Config Namespace Reference

Functions

 TrigThresholdDecisionToolCfg (flags, name="TrigThresholdDecisionTool", AODinput=False)
 MUCTPI_AthToolCfg (flags, name)
 MUCTPI_AthAlgCfg (flags)

Function Documentation

◆ MUCTPI_AthAlgCfg()

python.TrigT1MuctpiPhase1Config.MUCTPI_AthAlgCfg ( flags)

Definition at line 54 of file TrigT1MuctpiPhase1Config.py.

54def MUCTPI_AthAlgCfg(flags):
55 acc = ComponentAccumulator()
56 alg = CompFactory.getComp("LVL1MUCTPIPHASE1::MUCTPI_AthAlg")(name="MUCTPI_AthAlg")
57 alg.MUCTPI_AthTool = acc.popToolsAndMerge(MUCTPI_AthToolCfg(flags, name="MUCTPI_AthTool"))
58 acc.addEventAlgo(alg)
59 return acc

◆ MUCTPI_AthToolCfg()

python.TrigT1MuctpiPhase1Config.MUCTPI_AthToolCfg ( flags,
name )

Definition at line 25 of file TrigT1MuctpiPhase1Config.py.

25def MUCTPI_AthToolCfg(flags, name):
26 acc = ComponentAccumulator()
27 tool = CompFactory.getComp("LVL1MUCTPIPHASE1::MUCTPI_AthTool")(name)
28 tool.RPCRecRoiTool = acc.popToolsAndMerge(RPCRecRoiToolCfg(flags))
29 tool.TGCRecRoiTool = acc.popToolsAndMerge(TGCRecRoiToolCfg(flags))
30 tool.TrigThresholdDecisionTool = acc.popToolsAndMerge(TrigThresholdDecisionToolCfg(flags))
31 #tool.MUCTPI_xAODLocation = ["LVL1MuonRoIsBCm2", "LVL1MuonRoIsBCm1", "LVL1MuonRoIs", "LVL1MuonRoIsBCp1", "LVL1MuonRoIsBCp2"]
32 # Create a logger:
33 logger = logging.getLogger( "MUCTPI_AthTool" )
34
35 # Set properties of the LUT overlap handling:
36 tool.OverlapStrategyName = flags.Trigger.MUCTPI.OverlapStrategy
37
38 # Decide which LUT to use, based on which run we are simulating:
39 tool.LUTXMLFile = flags.Trigger.MUCTPI.LUTXMLFile
40 logger.info( "Configuring MuCTPI simulation with configuration file: %s", tool.LUTXMLFile )
41
42 if flags.Trigger.doHLT:
43 # Check the RoI EDM containers are registered in HLT outputs
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" )
49
50 acc.setPrivateTools(tool)
51 return acc
52
53

◆ TrigThresholdDecisionToolCfg()

python.TrigT1MuctpiPhase1Config.TrigThresholdDecisionToolCfg ( flags,
name = "TrigThresholdDecisionTool",
AODinput = False )

Definition at line 9 of file TrigT1MuctpiPhase1Config.py.

9def TrigThresholdDecisionToolCfg(flags, name="TrigThresholdDecisionTool", AODinput = False):
10 acc = ComponentAccumulator()
11 tool = CompFactory.getComp("LVL1::TrigThresholdDecisionTool")(name)
12 tool.RPCRecRoiTool = acc.popToolsAndMerge(RPCRecRoiToolCfg(flags))
13 tool.TGCRecRoiTool = acc.popToolsAndMerge(TGCRecRoiToolCfg(flags))
14
15 # if we are running from an AOD.pool, we need the metadata service and load the L1 menu from that
16 if AODinput:
17 from TrigConfxAOD.TrigConfxAODConfig import getxAODConfigSvc
18 tool.TrigConfigSvc = acc.getPrimaryAndMerge(getxAODConfigSvc(flags))
19 tool.MenuFromxAOD = True
20
21 acc.setPrivateTools(tool)
22 return acc
23
24