ATLAS Offline Software
Loading...
Searching...
No Matches
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
7from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
8from AthenaConfiguration.ComponentFactory import CompFactory
9
10# Standard + LRT electron collection merger
11def 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
22def 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
ElectronMergerCfg(ConfigFlags, name, **kwargs)
ElectronLRTOverlapRemovalToolCfg(ConfigFlags, name, **kwargs)