ATLAS Offline Software
xAODRetrieversConfig.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 xAODRetrieversCfg(flags):
8  # Based on xAODJiveXML_DataTypes.py
9  result = ComponentAccumulator()
10  # It's not really necessary to configure these, since nothing depends on flags.
11  # We could just make all this the default in cpp (if it is not already)
12  result.addPublicTool(
13  CompFactory.JiveXML.xAODElectronRetriever(
14  name="xAODElectronRetriever",
15  StoreGateKey="Electrons",
16  OtherCollections=["Electrons"],
17  )
18  )
19  result.addPublicTool(
20  CompFactory.JiveXML.xAODMissingETRetriever(
21  name="xAODMissingETRetriever",
22  FavouriteMETCollection="MET_Reference_AntiKt4EMPFlow",
23  OtherMETCollections=[
24  "MET_Reference_AntiKt4EMTopo",
25  "MET_Calo",
26  "MET_LocHadTopo",
27  "MET_Core_AntiKt4LCTopo",
28  ],
29  )
30  )
31  result.addPublicTool(
32  CompFactory.JiveXML.xAODMuonRetriever(
33  name="xAODMuonRetriever", StoreGateKey="Muons", OtherCollections=["Muons"]
34  )
35  )
36  result.addPublicTool(
37  CompFactory.JiveXML.xAODPhotonRetriever(
38  name="xAODPhotonRetriever",
39  StoreGateKey="Photons",
40  OtherCollections=["Photons"],
41  )
42  )
43  result.addPublicTool(
44  CompFactory.JiveXML.xAODJetRetriever(
45  name="xAODJetRetriever",
46  FavouriteJetCollection="AntiKt4EMPFlowJets",
47  OtherJetCollections=[
48  "AntiKt4EMTopoJets",
49  "AntiKt4LCTopoJets",
50  "AntiKt10LCTopoJets",
51  ],
52  )
53  )
54  result.addPublicTool(
55  CompFactory.JiveXML.xAODTauRetriever(
56  name="xAODTauRetriever", StoreGateKey="TauJets"
57  )
58  )
59  result.addPublicTool(
60  CompFactory.JiveXML.xAODTrackParticleRetriever(
61  name="xAODTrackParticleRetriever",
62  StoreGateKey="InDetTrackParticles",
63  OtherTrackCollections=[
64  "InDetLargeD0TrackParticles",
65  "CombinedMuonTrackParticles",
66  "GSFTrackParticles",
67  ],
68  )
69  )
70  result.addPublicTool(
71  CompFactory.JiveXML.xAODVertexRetriever(
72  name="xAODVertexRetriever",
73  PrimaryVertexCollection="PrimaryVertices",
74  SecondaryVertexCollection="BTagging_AntiKt2TrackSecVtx",
75  )
76  )
77  result.addPublicTool(
78  CompFactory.JiveXML.xAODCaloClusterRetriever(
79  name="xAODCaloClusterRetriever",
80  FavouriteClusterCollection="egammaClusters",
81  OtherClusterCollections=["CaloCalTopoClusters"],
82  )
83  )
84  return result
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
xAODRetrieversConfig.xAODRetrieversCfg
def xAODRetrieversCfg(flags)
Definition: xAODRetrieversConfig.py:7