12 from D3PDMakerConfig.D3PDMakerFlags
import D3PDMakerFlags
13 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
14 from AthenaConfiguration.ComponentFactory
import CompFactory
16 D3PD = CompFactory.D3PD
20 algname = 'egammaTruthBuilder',
26 if 'ParticleCaloExtensionTool' not in kwargs:
27 from TrkConfig.AtlasExtrapolatorConfig
import \
28 MCTruthClassifierExtrapolatorCfg
29 extrapolator = acc.popToolsAndMerge \
30 (MCTruthClassifierExtrapolatorCfg (flags))
32 from TrackToCalo.TrackToCaloConfig
import EMParticleCaloExtensionToolCfg
33 extension = EMParticleCaloExtensionToolCfg \
34 (flags, Extrapolator=extrapolator)
36 kwargs[
'ParticleCaloExtensionTool'] = acc.popToolsAndMerge (extension)
38 kwargs.setdefault (
'InputKey', D3PDMakerFlags.TruthSGKey)
39 kwargs.setdefault (
'OutputKey',
'egammaTruth')
40 kwargs.setdefault (
'AuxPrefix', D3PDMakerFlags.EgammaUserDataPrefix)