ATLAS Offline Software
Loading...
Searching...
No Matches
TriggerRetrieversConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6
7def 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
14def 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
21def 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
28def 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
35def 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
42def 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
xAODTriggerTowerRetrieverCfg(flags, **kwargs)
LVL1ResultRetrieverCfg(flags, **kwargs)
xAODJetROIRetrieverCfg(flags, **kwargs)
xAODMuonROIRetrieverCfg(flags, **kwargs)
TriggerInfoRetrieverCfg(flags, **kwargs)
xAODEmTauROIRetrieverCfg(flags, **kwargs)