ATLAS Offline Software
JetJvtEfficiencyToolConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 
3 
11 
12 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
13 from AthenaConfiguration.ComponentFactory import CompFactory
14 from AthenaConfiguration.Enums import LHCPeriod
15 import ROOT
16 
17 def getJvtEffToolCfg(flags, jetalg):
18  """Configure the JVT efficiency tool"""
19 
20  acc = ComponentAccumulator()
21 
22  run = "Run3" if flags.GeoModel.Run is LHCPeriod.Run3 else "Run2"
23  configs = {"AntiKt4EMTopo": "JetJvtEfficiency/Moriond2018/JvtSFFile_EMTopoJets.root",
24  "AntiKt4EMPFlow": f"JetJvtEfficiency/May2024/NNJvtSFFile_{run}_EMPFlow.root"}
25 
26  configs["AntiKt4EMPFlowCustomVtx"] = configs["AntiKt4EMPFlow"]
27 
28  jvtefftool = CompFactory.CP.JetJvtEfficiency("JVTEff_{0}".format(jetalg))
29  jvtefftool.SFFile=configs[jetalg]
30  # NNJvt isn't calculated for EMTopo jets (yet) so fallback to Jvt
31  if jetalg == "AntiKt4EMTopo":
32  jvtefftool.TaggingAlg = ROOT.CP.JvtTagger.Jvt
33 
34  acc.setPrivateTools(jvtefftool)
35  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
vtune_athena.format
format
Definition: vtune_athena.py:14
python.JetJvtEfficiencyToolConfig.getJvtEffToolCfg
def getJvtEffToolCfg(flags, jetalg)
Definition: JetJvtEfficiencyToolConfig.py:17