ATLAS Offline Software
Loading...
Searching...
No Matches
MuonRetrieversConfig.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 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
13def 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
19def 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
25def 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
31def 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
37def 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
43def 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
50def 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
TgcPrepDataRetrieverCfg(flags, **kwargs)
MuonRetrieversCfg(flags, **kwargs)
CSCClusterRetrieverCfg(flags, **kwargs)
RpcPrepDataRetrieverCfg(flags, **kwargs)
sTgcPrepDataRetrieverCfg(flags, **kwargs)
MdtPrepDataRetrieverCfg(flags, **kwargs)
MMPrepDataRetrieverCfg(flags, **kwargs)
CscPrepDataRetrieverCfg(flags, **kwargs)