12 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
13 from AthenaConfiguration.ComponentFactory
import CompFactory
14 from AthenaConfiguration.Enums
import LHCPeriod
18 """Configure the JVT efficiency tool"""
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"}
26 configs[
"AntiKt4EMPFlowCustomVtx"] = configs[
"AntiKt4EMPFlow"]
28 jvtefftool = CompFactory.CP.JetJvtEfficiency(
"JVTEff_{0}".
format(jetalg))
29 jvtefftool.SFFile=configs[jetalg]
31 if jetalg ==
"AntiKt4EMTopo":
32 jvtefftool.TaggingAlg = ROOT.CP.JvtTagger.Jvt
34 acc.setPrivateTools(jvtefftool)