ATLAS Offline Software
LRTElectronAnalysisToolsConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 
3 #==============================================================================
4 # Provides configs for the LRT electron tools
5 #==============================================================================
6 
7 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
8 from AthenaConfiguration.ComponentFactory import CompFactory
9 
10 # Standard + LRT electron collection merger
11 def ElectronMergerCfg(ConfigFlags, name, **kwargs):
12  """Configure the standard and LRT electron merger tool"""
13  acc = ComponentAccumulator()
14  ElectronMerger = CompFactory.LRTElectronAnalysisTools.ElectronMerger
15  acc.addPublicTool(ElectronMerger(name, **kwargs),
16  primary = True)
17  return acc
18 
19 
20 
21 # Standard + LRT electron collection merger
22 def ElectronLRTOverlapRemovalToolCfg(ConfigFlags, name, **kwargs):
23  """Configure the standard and LRT electron overlap removal tool"""
24  acc = ComponentAccumulator()
25  ElectronLRTOverlapRemovalTool = CompFactory.LRTElectronAnalysisTools.ElectronLRTOverlapRemovalTool
26  acc.addPublicTool(ElectronLRTOverlapRemovalTool(name, **kwargs),
27  primary = True)
28  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
LRTElectronAnalysisToolsConfig.ElectronLRTOverlapRemovalToolCfg
def ElectronLRTOverlapRemovalToolCfg(ConfigFlags, name, **kwargs)
Definition: LRTElectronAnalysisToolsConfig.py:22
LRTElectronAnalysisToolsConfig.ElectronMergerCfg
def ElectronMergerCfg(ConfigFlags, name, **kwargs)
Definition: LRTElectronAnalysisToolsConfig.py:11