Commit b0e00715 authored by Ruth Pottgen's avatar Ruth Pottgen
Browse files

Merge branch 'IDPVM_21.0_fix_missing_tool_configuration_method' into '21.0'

Added tool configuration method missing from recent master backport.

See merge request atlas/athena!30028
parents 4a478388 87d052a1
......@@ -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