ATLAS Offline Software
TriggerRetrieversConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 
7 def LVL1ResultRetrieverCfg(flags, **kwargs):
8  result = ComponentAccumulator()
9  the_tool = CompFactory.JiveXML.LVL1ResultRetriever(name="LVL1ResultRetriever")
10  result.addPublicTool(the_tool, primary=True)
11  return result
12 
13 
14 def TriggerInfoRetrieverCfg(flags, **kwargs):
15  result = ComponentAccumulator()
16  the_tool = CompFactory.JiveXML.TriggerInfoRetriever(name="TriggerInfoRetriever")
17  result.addPublicTool(the_tool, primary=True)
18  return result
19 
20 
21 def xAODEmTauROIRetrieverCfg(flags, **kwargs):
22  result = ComponentAccumulator()
23  the_tool = CompFactory.JiveXML.xAODEmTauROIRetriever(name="xAODEmTauROIRetriever")
24  result.addPublicTool(the_tool, primary=True)
25  return result
26 
27 
28 def xAODJetROIRetrieverCfg(flags, **kwargs):
29  result = ComponentAccumulator()
30  the_tool = CompFactory.JiveXML.xAODJetROIRetriever(name="xAODJetROIRetriever")
31  result.addPublicTool(the_tool, primary=True)
32  return result
33 
34 
35 def xAODMuonROIRetrieverCfg(flags, **kwargs):
36  result = ComponentAccumulator()
37  the_tool = CompFactory.JiveXML.xAODMuonROIRetriever(name="xAODMuonROIRetriever")
38  result.addPublicTool(the_tool, primary=True)
39  return result
40 
41 
42 def xAODTriggerTowerRetrieverCfg(flags, **kwargs):
43  result = ComponentAccumulator()
44  the_tool = CompFactory.JiveXML.xAODTriggerTowerRetriever(
45  name="xAODTriggerTowerRetriever"
46  )
47  result.addPublicTool(the_tool, primary=True)
48  return result
49 
50 
52  result = ComponentAccumulator()
53  tools = []
54 
55  if flags.Reco.EnableTrigger:
56  #--- LVL1 result from TrigDecision
57  tools += [result.getPrimaryAndMerge(LVL1ResultRetrieverCfg(flags))]
58 
59  #--- TriggerInfo (Etmiss, etc)
60  tools += [result.getPrimaryAndMerge(TriggerInfoRetrieverCfg(flags))]
61 
62  # new xAOD retrievers
63  tools += [result.getPrimaryAndMerge(xAODEmTauROIRetrieverCfg(flags))]
64  tools += [result.getPrimaryAndMerge(xAODJetROIRetrieverCfg(flags))]
65  tools += [result.getPrimaryAndMerge(xAODMuonROIRetrieverCfg(flags))]
66  tools += [result.getPrimaryAndMerge(xAODTriggerTowerRetrieverCfg(flags))]
67 
68  return result, tools
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TriggerRetrieversConfig.LVL1ResultRetrieverCfg
def LVL1ResultRetrieverCfg(flags, **kwargs)
Definition: TriggerRetrieversConfig.py:7
TriggerRetrieversConfig.xAODTriggerTowerRetrieverCfg
def xAODTriggerTowerRetrieverCfg(flags, **kwargs)
Definition: TriggerRetrieversConfig.py:42
TriggerRetrieversConfig.xAODEmTauROIRetrieverCfg
def xAODEmTauROIRetrieverCfg(flags, **kwargs)
Definition: TriggerRetrieversConfig.py:21
TriggerRetrieversConfig.xAODJetROIRetrieverCfg
def xAODJetROIRetrieverCfg(flags, **kwargs)
Definition: TriggerRetrieversConfig.py:28
TriggerRetrieversConfig.xAODMuonROIRetrieverCfg
def xAODMuonROIRetrieverCfg(flags, **kwargs)
Definition: TriggerRetrieversConfig.py:35
TriggerRetrieversConfig.TriggerInfoRetrieverCfg
def TriggerInfoRetrieverCfg(flags, **kwargs)
Definition: TriggerRetrieversConfig.py:14
TriggerRetrieversConfig.TriggerRetrieversCfg
def TriggerRetrieversCfg(flags)
Definition: TriggerRetrieversConfig.py:51