ATLAS Offline Software
Loading...
Searching...
No Matches
TrackParticleAssociationAlgsConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
3from AthenaConfiguration.ComponentFactory import CompFactory
4
5
7 name="TrackParticleCellAssociationAlg",
8 **kwargs):
9 result = ComponentAccumulator()
10
11 from TrackToCalo.TrackToCaloConfig import ParticleCaloCellAssociationToolCfg
12 kwargs.setdefault("ParticleCaloCellAssociationTool",
13 result.popToolsAndMerge(
14 ParticleCaloCellAssociationToolCfg(flags)))
15
16 result.addEventAlgo(
17 CompFactory.TrackParticleCellAssociationAlg(name, **kwargs))
18
19 from OutputStreamAthenaPool.OutputStreamConfig import addToESD, addToAOD
20 toAOD = [
21 "xAOD::CaloClusterContainer#InDetTrackParticlesAssociatedClusters",
22 "xAOD::CaloClusterAuxContainer#InDetTrackParticlesAssociatedClustersAux.",
23 "CaloClusterCellLinkContainer#InDetTrackParticlesAssociatedClusters_links",
24 "xAOD::TrackParticleClusterAssociationContainer#InDetTrackParticlesClusterAssociations",
25 "xAOD::TrackParticleClusterAssociationAuxContainer#InDetTrackParticlesClusterAssociationsAux."
26 ]
27 from CaloRec.CaloThinCellsByClusterAlgConfig import CaloThinCellsByClusterAlgCfg
28 result.merge(CaloThinCellsByClusterAlgCfg(
29 flags,
30 streamName="StreamAOD",
31 clusters="InDetTrackParticlesAssociatedClusters",
32 samplings=["TileGap1", "TileGap2", "TileGap3", "TileBar0", "TileExt0", "HEC0"],
33 cells=flags.Egamma.Keys.Input.CaloCells))
34 result.merge(addToESD(flags, toAOD))
35 result.merge(addToAOD(flags, toAOD))
36
37 return result
38
39
41 name="LargeD0TrackParticleCellAssociationAlg",
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
79 acc = ComponentAccumulator()
81 if (flags.Tracking.storeSeparateLargeD0Container and
82 flags.Tracking.doLargeD0):
84
85 return acc
LargeD0TrackParticleCellAssociationAlgCfg(flags, name="LargeD0TrackParticleCellAssociationAlg", **kwargs)
TrackParticleCellAssociationAlgCfg(flags, name="TrackParticleCellAssociationAlg", **kwargs)