ATLAS Offline Software
Functions
python.JetJvtEfficiencyToolConfig Namespace Reference

Functions

def getJvtEffToolCfg (flags, jetalg)
 

Function Documentation

◆ getJvtEffToolCfg()

def python.JetJvtEfficiencyToolConfig.getJvtEffToolCfg (   flags,
  jetalg 
)
Configure the JVT efficiency tool

Definition at line 17 of file JetJvtEfficiencyToolConfig.py.

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