ATLAS Offline Software
Loading...
Searching...
No Matches
JetSelectorToolsConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6def JetCleaningToolCfg(ConfigFlags, name, jetdef, cleaningLevel, useDecorations):
7 """Configure the jet cleaning tool"""
8 acc = ComponentAccumulator()
9 JetCleaningTool = CompFactory.JetCleaningTool
10 acc.setPrivateTools(JetCleaningTool(name, CutLevel=cleaningLevel, JetContainer=jetdef, UseDecorations=useDecorations))
11 return acc
12
13
14def EventCleaningToolCfg(ConfigFlags, name, cleaningLevel):
15 """Configure the event cleaning tool"""
16 acc = ComponentAccumulator()
17 EventCleaningTool = CompFactory.ECUtils.EventCleaningTool
18 acc.setPrivateTools(EventCleaningTool(name, CleaningLevel=cleaningLevel))
19 return acc
20
Class for selecting jets that pass cleaning cuts.
Class for selecting jets that pass cleaning cuts.
JetCleaningToolCfg(ConfigFlags, name, jetdef, cleaningLevel, useDecorations)
EventCleaningToolCfg(ConfigFlags, name, cleaningLevel)