42 **kwargs):
43 result = ComponentAccumulator()
44 from TrackToCalo.TrackToCaloConfig import ParticleCaloCellAssociationToolCfg
45 kwargs.setdefault("ParticleCaloCellAssociationTool",
46 result.popToolsAndMerge(
47 ParticleCaloCellAssociationToolCfg(flags)))
48
49 result.addEventAlgo(
50 CompFactory.TrackParticleCellAssociationAlg(
51 name,
52 TrackParticleContainerName="InDetLargeD0TrackParticles",
53 ClusterContainerName="InDetLargeD0TrackParticlesAssociatedClusters",
54 CaloClusterCellLinkName="InDetLargeD0TrackParticlesAssociatedClusters_links",
55 AssociationContainerName="InDetLargeD0TrackParticlesClusterAssociations",
56 **kwargs))
57
58 from OutputStreamAthenaPool.OutputStreamConfig import addToESD, addToAOD
59 toAOD = [
60 "xAOD::CaloClusterContainer#InDetLargeD0TrackParticlesAssociatedClusters",
61 "xAOD::CaloClusterAuxContainer#InDetLargeD0TrackParticlesAssociatedClustersAux.",
62 "CaloClusterCellLinkContainer#InDetLargeD0TrackParticlesAssociatedClusters_links",
63 "xAOD::TrackParticleClusterAssociationContainer#InDetLargeD0TrackParticlesClusterAssociations",
64 "xAOD::TrackParticleClusterAssociationAuxContainer#InDetLargeD0TrackParticlesClusterAssociationsAux."
65 ]
66 from CaloRec.CaloThinCellsByClusterAlgConfig import CaloThinCellsByClusterAlgCfg
67 result.merge(CaloThinCellsByClusterAlgCfg(
68 flags,
69 streamName="StreamAOD",
70 clusters="InDetLargeD0TrackParticlesAssociatedClusters",
71 samplings=["TileGap1", "TileGap2", "TileGap3", "TileBar0", "TileExt0", "HEC0"]))
72 result.merge(addToESD(flags, toAOD))
73 result.merge(addToAOD(flags, toAOD))
74
75 return result
76
77