ATLAS Offline Software
MuonRetrieversConfig.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 MdtPrepDataRetrieverCfg(flags, **kwargs):
8  result = ComponentAccumulator()
9  the_tool = CompFactory.JiveXML.MdtPrepDataRetriever(name="MdtPrepDataRetriever")
10  result.addPublicTool(the_tool, primary=True)
11  return result
12 
13 def TgcPrepDataRetrieverCfg(flags, **kwargs):
14  result = ComponentAccumulator()
15  the_tool = CompFactory.JiveXML.TgcPrepDataRetriever(name="TgcPrepDataRetriever")
16  result.addPublicTool(the_tool, primary=True)
17  return result
18 
19 def sTgcPrepDataRetrieverCfg(flags, **kwargs):
20  result = ComponentAccumulator()
21  the_tool = CompFactory.JiveXML.sTgcPrepDataRetriever(name="sTgcPrepDataRetriever")
22  result.addPublicTool(the_tool, primary=True)
23  return result
24 
25 def RpcPrepDataRetrieverCfg(flags, **kwargs):
26  result = ComponentAccumulator()
27  the_tool = CompFactory.JiveXML.RpcPrepDataRetriever(name="RpcPrepDataRetriever")
28  result.addPublicTool(the_tool, primary=True)
29  return result
30 
31 def CSCClusterRetrieverCfg(flags, **kwargs):
32  result = ComponentAccumulator()
33  the_tool = CompFactory.JiveXML.CSCClusterRetriever(name="CSCClusterRetriever")
34  result.addPublicTool(the_tool, primary=True)
35  return result
36 
37 def CscPrepDataRetrieverCfg(flags, **kwargs):
38  result = ComponentAccumulator()
39  the_tool = CompFactory.JiveXML.CscPrepDataRetriever(name="CscPrepDataRetriever")
40  result.addPublicTool(the_tool, primary=True)
41  return result
42 
43 def MMPrepDataRetrieverCfg(flags, **kwargs):
44  result = ComponentAccumulator()
45  the_tool = CompFactory.JiveXML.MMPrepDataRetriever(name="MMPrepDataRetriever")
46  result.addPublicTool(the_tool, primary=True)
47  return result
48 
49 
50 def MuonRetrieversCfg(flags, **kwargs):
51  result = ComponentAccumulator()
52  #kwargs.setdefault("StoreGateKey", "MDT_DriftCircles")
53  tools = []
54 
55  if flags.Detector.EnableMuon and flags.Detector.GeometryMuon:
56  # Taken from MuonJiveXML_DataTypes.py
57  if flags.Detector.EnableMDT and flags.Detector.GeometryMDT:
58  tools += [result.getPrimaryAndMerge(MdtPrepDataRetrieverCfg(flags))]
59 
60  if flags.Detector.EnableTGC and flags.Detector.GeometryTGC:
61  tools += [result.getPrimaryAndMerge(TgcPrepDataRetrieverCfg(flags))]
62  tools += [result.getPrimaryAndMerge(sTgcPrepDataRetrieverCfg(flags))]
63 
64  if flags.Detector.EnableRPC and flags.Detector.GeometryRPC:
65  tools += [result.getPrimaryAndMerge(RpcPrepDataRetrieverCfg(flags))]
66 
67  if flags.Detector.EnableCSC and flags.Detector.GeometryCSC:
68  tools += [result.getPrimaryAndMerge(CSCClusterRetrieverCfg(flags))]
69  tools += [result.getPrimaryAndMerge(CscPrepDataRetrieverCfg(flags))]
70 
71  if flags.Detector.EnableMM and flags.Detector.GeometryMM:
72  tools += [result.getPrimaryAndMerge(MMPrepDataRetrieverCfg(flags))]
73  # TODO Not sure if below are still needed?
74  # data_types += ["JiveXML::TrigMuonROIRetriever/TrigMuonROIRetriever"]
75  # data_types += ["JiveXML::MuidTrackRetriever/MuidTrackRetriever]
76  # data_types += ["JiveXML::TrigRpcDataRetriever/TrigRpcDataRetriever"]
77 
78  return result, tools
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MuonRetrieversConfig.MdtPrepDataRetrieverCfg
def MdtPrepDataRetrieverCfg(flags, **kwargs)
Definition: MuonRetrieversConfig.py:7
MuonRetrieversConfig.CscPrepDataRetrieverCfg
def CscPrepDataRetrieverCfg(flags, **kwargs)
Definition: MuonRetrieversConfig.py:37
MuonRetrieversConfig.CSCClusterRetrieverCfg
def CSCClusterRetrieverCfg(flags, **kwargs)
Definition: MuonRetrieversConfig.py:31
MuonRetrieversConfig.MuonRetrieversCfg
def MuonRetrieversCfg(flags, **kwargs)
Definition: MuonRetrieversConfig.py:50
MuonRetrieversConfig.MMPrepDataRetrieverCfg
def MMPrepDataRetrieverCfg(flags, **kwargs)
Definition: MuonRetrieversConfig.py:43
MuonRetrieversConfig.TgcPrepDataRetrieverCfg
def TgcPrepDataRetrieverCfg(flags, **kwargs)
Definition: MuonRetrieversConfig.py:13
MuonRetrieversConfig.sTgcPrepDataRetrieverCfg
def sTgcPrepDataRetrieverCfg(flags, **kwargs)
Definition: MuonRetrieversConfig.py:19
MuonRetrieversConfig.RpcPrepDataRetrieverCfg
def RpcPrepDataRetrieverCfg(flags, **kwargs)
Definition: MuonRetrieversConfig.py:25