Commit d0ccf491 authored by Ruth Pottgen's avatar Ruth Pottgen Committed by Atlas Nightlybuild
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

(cherry picked from commit b0e00715)

87d052a1 Added tool configuration method missing from recent master backport.
parent 90506b77
......@@ -120,6 +120,24 @@ def getInDetPhysHitDecoratorAlg(**kwargs) :
ResidualPullCalculator = 'Trk::ResidualPullCalculator/ResidualPullCalculator',
TrackParticleContainerName = 'InDetTrackParticles')
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
def getParameterErrDecoratorAlg(**kwargs) :
'''
......
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