ATLAS Offline Software
Loading...
Searching...
No Matches
JetJvtEfficiencyToolConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3
11
12from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
13from AthenaConfiguration.ComponentFactory import CompFactory
14
15def getJvtSelToolCfg(flags, jetContainer):
16 """Configure the JVT selection tool"""
17 acc = ComponentAccumulator()
18 if "EMTopo" in jetContainer:
19 # Not recommended for analysis but retained for specialized usage
20 jvtSelTool = CompFactory.CP.JvtSelectionTool("JVTSelection_{0}".format(jetContainer))
21 jvtSelTool.JetContainer = jetContainer
22 jvtSelTool.JvtMomentName = "Jvt"
23 jvtSelTool.PassFlagName = "passJvt"
24 acc.setPrivateTools(jvtSelTool)
25 return acc
26 # PFlow jets
27 jvtSelTool = CompFactory.CP.NNJvtSelectionTool("JVTSelection_{0}".format(jetContainer))
28 jvtSelTool.JetContainer = jetContainer
29 jvtSelTool.JvtMomentName = "NNJvt"
30 jvtSelTool.PassFlagName = "passJvt"
31 acc.setPrivateTools(jvtSelTool)
32 return acc
33
34# TODO: Efficiencies not currently computed in derivations, but if needed this can be added here.