Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
xAODRetrieversConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2025 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 xAODElectronRetrieverCfg(flags, **kwargs):
8  result = ComponentAccumulator()
9  the_tool = CompFactory.JiveXML.xAODElectronRetriever(
10  name="xAODElectronRetriever",
11  PriorityElectronCollection="Electrons",
12  OtherElectronCollections=[],
13  DoWriteAllCollections=False,
14  DoWriteHLT=False,
15  )
16  result.addPublicTool(the_tool, primary=True)
17  return result
18 
19 
20 def xAODMissingETRetrieverCfg(flags, **kwargs):
21  result = ComponentAccumulator()
22  the_tool = CompFactory.JiveXML.xAODMissingETRetriever(
23  name="xAODMissingETRetriever",
24  PriorityMETCollection="MET_Reference_AntiKt4EMPFlow",
25  OtherMETCollections=[
26  "MET_Reference_AntiKt4EMTopo",
27  "MET_Calo",
28  "MET_LocHadTopo",
29  "MET_Core_AntiKt4LCTopo",
30  ],
31  DoWriteAllCollections=False,
32  DoWriteHLT=False,
33  )
34  result.addPublicTool(the_tool, primary=True)
35  return result
36 
37 
38 def xAODMuonRetrieverCfg(flags, **kwargs):
39  result = ComponentAccumulator()
40  the_tool = CompFactory.JiveXML.xAODMuonRetriever(
41  name="xAODMuonRetriever",
42  PriorityMuonCollection="Muons",
43  OtherMuonCollections=[],
44  DoWriteAllCollections=False,
45  DoWriteHLT=False,
46  )
47  result.addPublicTool(the_tool, primary=True)
48  return result
49 
50 
51 def xAODPhotonRetrieverCfg(flags, **kwargs):
52  result = ComponentAccumulator()
53  the_tool = CompFactory.JiveXML.xAODPhotonRetriever(
54  name="xAODPhotonRetriever",
55  PriorityPhotonCollection="Photons",
56  OtherPhotonCollections=[],
57  DoWriteAllCollections=False,
58  DoWriteHLT=False,
59  )
60  result.addPublicTool(the_tool, primary=True)
61  return result
62 
63 
64 def xAODJetRetrieverCfg(flags, **kwargs):
65  result = ComponentAccumulator()
66  the_tool = CompFactory.JiveXML.xAODJetRetriever(
67  name="xAODJetRetriever",
68  PriorityJetCollection="AntiKt4EMPFlowJets",
69  OtherJetCollections=[
70  "AntiKt4EMTopoJets",
71  "AntiKt4LCTopoJets",
72  "AntiKt10LCTopoJets",
73  "AntiKt10UFOCSSKJets",
74  ],
75  BTaggerNames=[
76  "DL1dv01",
77  "GN2v01",
78  ],
79  CDIPaths=[
80  "xAODBTaggingEfficiency/13p6TeV/2023-22-13p6TeV-MC21-CDI_Test_2023-08-1_v1.root",
81  "xAODBTaggingEfficiency/13p6TeV/2023-02_MC23_CDI_GN2v01-noSF.root",
82  ],
83  DoWriteAllCollections=False,
84  DoWriteHLT=False,
85  )
86  result.addPublicTool(the_tool, primary=True)
87  return result
88 
89 
90 def xAODTauRetrieverCfg(flags, **kwargs):
91  result = ComponentAccumulator()
92  the_tool = CompFactory.JiveXML.xAODTauRetriever(
93  name="xAODTauRetriever",
94  PriorityTauCollection="TauJets",
95  OtherTauCollections=[],
96  DoWriteAllCollections=False,
97  DoWriteHLT=False,
98  )
99  result.addPublicTool(the_tool, primary=True)
100  return result
101 
102 
103 def xAODTrackParticleRetrieverCfg(flags, **kwargs):
104  result = ComponentAccumulator()
105  the_tool = CompFactory.JiveXML.xAODTrackParticleRetriever(
106  name="xAODTrackParticleRetriever",
107  PriorityTrackParticleCollection="InDetTrackParticles",
108  OtherTrackParticleCollections=[
109  "InDetLargeD0TrackParticles",
110  "CombinedMuonTrackParticles",
111  "GSFTrackParticles",
112  ],
113  DoWriteAllCollections=False,
114  DoWriteHLT=False,
115  )
116  result.addPublicTool(the_tool, primary=True)
117  return result
118 
119 
120 def xAODVertexRetrieverCfg(flags, **kwargs):
121  result = ComponentAccumulator()
122  the_tool = CompFactory.JiveXML.xAODVertexRetriever(
123  name="xAODVertexRetriever",
124  PrimaryVertexCollection="PrimaryVertices",
125  SecondaryVertexCollection="BTagging_AntiKt4EMPFlowSecVtx",
126  TracksName="InDetTrackParticles_xAOD",
127  OtherVertexCollections=["BTagging_AntiKt4EMTopoSecVtx"],
128  DoWriteAllCollections=False,
129  DoWriteHLT=False,
130  DoWriteV0=False,
131  )
132  result.addPublicTool(the_tool, primary=True)
133  return result
134 
135 
136 def xAODCaloClusterRetrieverCfg(flags, **kwargs):
137  result = ComponentAccumulator()
138  the_tool = CompFactory.JiveXML.xAODCaloClusterRetriever(
139  name="xAODCaloClusterRetriever",
140  PriorityClusterCollection="egammaClusters",
141  OtherClusterCollections=["CaloCalTopoClusters"],
142  DoWriteAllCollections=False,
143  DoWriteHLT=False,
144  )
145  result.addPublicTool(the_tool, primary=True)
146  return result
147 
148 
149 def xAODRetrieversCfg(flags):
150  result = ComponentAccumulator()
151  tools = []
152  # It's not really necessary to configure these, since nothing depends on flags.
153  # We could just make all this the default in cpp (if it is not already)
154  tools += [result.getPrimaryAndMerge(xAODElectronRetrieverCfg(flags))]
155  tools += [result.getPrimaryAndMerge(xAODMissingETRetrieverCfg(flags))]
156  tools += [result.getPrimaryAndMerge(xAODMuonRetrieverCfg(flags))]
157  tools += [result.getPrimaryAndMerge(xAODPhotonRetrieverCfg(flags))]
158  tools += [result.getPrimaryAndMerge(xAODJetRetrieverCfg(flags))]
159  tools += [result.getPrimaryAndMerge(xAODTauRetrieverCfg(flags))]
160  tools += [result.getPrimaryAndMerge(xAODTrackParticleRetrieverCfg(flags))]
161  tools += [result.getPrimaryAndMerge(xAODVertexRetrieverCfg(flags))]
162  tools += [result.getPrimaryAndMerge(xAODCaloClusterRetrieverCfg(flags))]
163 
164  return result, tools
xAODRetrieversConfig.xAODJetRetrieverCfg
def xAODJetRetrieverCfg(flags, **kwargs)
Definition: xAODRetrieversConfig.py:64
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
xAODRetrieversConfig.xAODMuonRetrieverCfg
def xAODMuonRetrieverCfg(flags, **kwargs)
Definition: xAODRetrieversConfig.py:38
xAODRetrieversConfig.xAODTrackParticleRetrieverCfg
def xAODTrackParticleRetrieverCfg(flags, **kwargs)
Definition: xAODRetrieversConfig.py:103
xAODRetrieversConfig.xAODVertexRetrieverCfg
def xAODVertexRetrieverCfg(flags, **kwargs)
Definition: xAODRetrieversConfig.py:120
xAODRetrieversConfig.xAODPhotonRetrieverCfg
def xAODPhotonRetrieverCfg(flags, **kwargs)
Definition: xAODRetrieversConfig.py:51
xAODRetrieversConfig.xAODRetrieversCfg
def xAODRetrieversCfg(flags)
Definition: xAODRetrieversConfig.py:149
xAODRetrieversConfig.xAODTauRetrieverCfg
def xAODTauRetrieverCfg(flags, **kwargs)
Definition: xAODRetrieversConfig.py:90
xAODRetrieversConfig.xAODElectronRetrieverCfg
def xAODElectronRetrieverCfg(flags, **kwargs)
Definition: xAODRetrieversConfig.py:7
xAODRetrieversConfig.xAODMissingETRetrieverCfg
def xAODMissingETRetrieverCfg(flags, **kwargs)
Definition: xAODRetrieversConfig.py:20
xAODRetrieversConfig.xAODCaloClusterRetrieverCfg
def xAODCaloClusterRetrieverCfg(flags, **kwargs)
Definition: xAODRetrieversConfig.py:136