From f0c8001d3bc08963d9d8f35fbd3a45b43059972c Mon Sep 17 00:00:00 2001 From: Susumu Oda <Susumu.Oda@cern.ch> Date: Thu, 3 May 2018 13:34:08 +0200 Subject: [PATCH] TrackStateOnSurfaceDecorator is run when tracking is not disabled Former-commit-id: c984471969996b481b2df1f7f4cc394effd56b79 --- .../InDetPrepRawDataToxAOD/share/SCTxAOD.py | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/InnerDetector/InDetEventCnv/InDetPrepRawDataToxAOD/share/SCTxAOD.py b/InnerDetector/InDetEventCnv/InDetPrepRawDataToxAOD/share/SCTxAOD.py index 9bc6eb90071..3fffee62989 100644 --- a/InnerDetector/InDetEventCnv/InDetPrepRawDataToxAOD/share/SCTxAOD.py +++ b/InnerDetector/InDetEventCnv/InDetPrepRawDataToxAOD/share/SCTxAOD.py @@ -105,17 +105,19 @@ svcMgr.DecisionSvc.CalcStats = True # Add the TSOS augmentation tool to the derivation framework augmentationTools=[] -from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackStateOnSurfaceDecorator -DFTSOS = DerivationFramework__TrackStateOnSurfaceDecorator(name = "SCTxAOD_DFTrackStateOnSurfaceDecorator", - ContainerName = "InDetTrackParticles", - DecorationPrefix = prefixName, - StoreTRT = False, - StoreSCT = True, - StorePixel = False, - IsSimulation = isSctDxAODSimulation, - OutputLevel = INFO) -ToolSvc += DFTSOS -augmentationTools+=[DFTSOS] +from InDetRecExample.InDetJobProperties import InDetFlags +if not InDetFlags.disableTracking(): + from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackStateOnSurfaceDecorator + DFTSOS = DerivationFramework__TrackStateOnSurfaceDecorator(name = "SCTxAOD_DFTrackStateOnSurfaceDecorator", + ContainerName = "InDetTrackParticles", + DecorationPrefix = prefixName, + StoreTRT = False, + StoreSCT = True, + StorePixel = False, + IsSimulation = isSctDxAODSimulation, + OutputLevel = INFO) + ToolSvc += DFTSOS + augmentationTools+=[DFTSOS] # Add BS error augmentation tool -- GitLab