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 jvtSelTool.IsPFlow = False
25 acc.setPrivateTools(jvtSelTool)
26 return acc
27 # PFlow jets
28 jvtSelTool = CompFactory.CP.NNJvtSelectionTool("JVTSelection_{0}".format(jetContainer))
29 jvtSelTool.JetContainer = jetContainer
30 jvtSelTool.JvtMomentName = "NNJvt"
31 jvtSelTool.PassFlagName = "passJvt"
32 acc.setPrivateTools(jvtSelTool)
33 return acc
34
35# TODO: Efficiencies not currently computed in derivations, but if needed this can be added here.