Commit 87d052a1 authored by Goetz Gaycken's avatar Goetz Gaycken
Browse files

Added tool configuration method missing from recent master backport.

parent d65fc50f
......@@ -134,6 +134,24 @@ def getInDetPhysHitDecoratorTool(**kwargs) :
import InDetPhysValMonitoring.InDetPhysValMonitoringConf
return InDetPhysValMonitoring.InDetPhysValMonitoringConf.InDetPhysHitDecoratorTool(**kwargs)
def getInDetRttTruthSelectionTool(**kwargs) :
# should match truth selection of truth decorator
from AthenaCommon.AppMgr import ToolSvc
the_name='AthTruthSelectionTool'
if hasattr(ToolSvc,the_name) :
return getattr(ToolSvc,the_name)
from InDetPhysValMonitoring.InDetPhysValMonitoringConf import AthTruthSelectionTool
comb_kwargs={}
comb_kwargs.update(requireStatus1 = True,
requireCharged = True,
maxBarcode = ( 200*1000 if kwargs.pop("OnlyDressPrimaryTracks",True) else 2**31-1 ),
maxProdVertRadius = 110.,
maxEta = 2.5,
minPt = 400. )
comb_kwargs.update(kwargs)
tool=AthTruthSelectionTool(**comb_kwargs)
ToolSvc += tool
return tool
class InDetPhysValKeys :
'''
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment