3 __doc__ =
"Tool configuration for the track to calo tools."
6 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory
import CompFactory
11 name='ParticleCaloExtensionTool',
13 ''' PFO/Muon/Tau common configuration of the tool.
14 Useful when targeting intersection through
15 the full calorimeter and provide intersections
16 with arbitrary layers. Results are typically "cached"
20 if "Extrapolator" not in kwargs:
21 from TrkConfig.AtlasExtrapolatorConfig
import AtlasExtrapolatorCfg
22 kwargs[
"Extrapolator"] = acc.popToolsAndMerge(
26 CompFactory.Trk.ParticleCaloExtensionTool(name, **kwargs))
31 name='EMParticleCaloExtensionTool',
33 ''' e/gamma configuration of the tool.
34 Useful when targeting a specific layers in
35 "direct" extrapolation mode. It needs the
39 kwargs.setdefault(
"StartFromPerigee",
True)
41 if "CaloSurfaceBuilder" not in kwargs:
42 from CaloTrackingGeometry.CaloTrackingGeometryConfig
import (
43 CaloSurfaceBuilderMiddleCfg)
44 kwargs[
"CaloSurfaceBuilder"] = acc.popToolsAndMerge(
47 if "Extrapolator" not in kwargs:
48 from TrkConfig.AtlasExtrapolatorConfig
import egammaCaloExtrapolatorCfg
49 kwargs[
"Extrapolator"] = acc.popToolsAndMerge(
52 acc.setPrivateTools(acc.popToolsAndMerge(
58 name='HLTPF_ParticleCaloExtension',
62 if "Extrapolator" not in kwargs:
63 from TrkConfig.AtlasExtrapolatorConfig
import TrigPFlowExtrapolatorCfg
64 kwargs[
"Extrapolator"] = acc.popToolsAndMerge(
68 CompFactory.Trk.ParticleCaloExtensionTool(name, **kwargs))
73 name='ParticleCaloCellAssociationTool',
77 if "ParticleCaloExtensionTool" not in kwargs:
78 kwargs[
"ParticleCaloExtensionTool"] = acc.popToolsAndMerge(
82 kwargs.setdefault(
"CaloCellContainer", flags.Egamma.Keys.Input.CaloCells)
85 CompFactory.Rec.ParticleCaloCellAssociationTool(name, **kwargs))
90 name='HLTPF_ParticleCaloCellAssociationTool',
94 if "ParticleCaloExtensionTool" not in kwargs:
95 kwargs[
"ParticleCaloExtensionTool"] = acc.popToolsAndMerge(
98 kwargs.setdefault(
"CaloCellContainer",
"")
101 CompFactory.Rec.ParticleCaloCellAssociationTool(name, **kwargs))