Commit f3ff4206 authored by Thomas Strebler's avatar Thomas Strebler Committed by Walter Lampl
Browse files

Added ITkCaloExtension config

parent b6cd7cc0
......@@ -52,8 +52,12 @@ def RecoSteering(flags):
#Caching of CaloExtension for downstream Combined Performance algorithms.
#The algorithms that use these cached CaloExtension only run in the reco step that produces ESD.
if flags.Output.doESD:
from TrackToCalo.CaloExtensionBuilderAlgCfg import CaloExtensionBuilderAlgCfg
acc.merge(CaloExtensionBuilderAlgCfg(flags))
if flags.Detector.GeometryID:
from TrackToCalo.CaloExtensionBuilderAlgCfg import CaloExtensionBuilderAlgCfg
acc.merge(CaloExtensionBuilderAlgCfg(flags))
elif flags.Detector.GeometryITk:
from TrackToCalo.ITkCaloExtensionBuilderAlgCfg import ITkCaloExtensionBuilderAlgCfg
acc.merge(ITkCaloExtensionBuilderAlgCfg(flags))
log.info("---------- Configured track calorimeter extension builder")
from eflowRec.PFRun3Config import PFCfg
......
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from AthenaConfiguration.ComponentFactory import CompFactory
from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
def ITkCaloExtensionBuilderAlgCfg(inputFlags):
#Run-3 uses
#from TrkConfig.AtlasExtrapolatorConfig import AtlasExtrapolatorCfg
from InDetConfig.ITkRecToolConfig import ITkExtrapolatorCfg
Trk__ParticleCaloExtensionTool = CompFactory.Trk.ParticleCaloExtensionTool
result = ComponentAccumulator()
pcExtensionTool = Trk__ParticleCaloExtensionTool(Extrapolator = result.getPrimaryAndMerge(ITkExtrapolatorCfg(inputFlags)))
CaloExtensionBuilderAlg = CompFactory.Trk.CaloExtensionBuilderAlg
CaloExtensionBuilderAlg = CaloExtensionBuilderAlg(LastCaloExtentionTool = pcExtensionTool,
PixelDetEleCollKey="",
SCTDetEleCollKey="",
TRTDetEleContKey="")
result.addEventAlgo (CaloExtensionBuilderAlg)
return result
Supports Markdown
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