7 pixelClusterCollections: list[str] =
None,
8 stripClusterCollections: list[str] =
None,
9 hgtdClusterCollections: list[str] =
None) -> ComponentAccumulator:
11 if pixelClusterCollections
is not None:
12 pixel_cluster_shortlist = [
'-pixelClusterLink',
13 '-validationMeasurementLink']
14 pixel_cluster_variables =
'.'.join(pixel_cluster_shortlist)
15 for pixelClusterCollection
in pixelClusterCollections:
16 toAOD += [f
'xAOD::PixelClusterContainer#{pixelClusterCollection}',
17 f
'xAOD::PixelClusterAuxContainer#{pixelClusterCollection}Aux.{pixel_cluster_variables}']
19 if stripClusterCollections
is not None:
20 strip_cluster_shortlist = [
'-sctClusterLink',
21 '-validationMeasurementLink']
22 strip_cluster_variables =
'.'.join(strip_cluster_shortlist)
23 for stripClusterCollection
in stripClusterCollections:
24 toAOD += [f
"xAOD::StripClusterContainer#{stripClusterCollection}",
25 f
"xAOD::StripClusterAuxContainer#{stripClusterCollection}Aux.{strip_cluster_variables}"]
27 if hgtdClusterCollections
is not None:
28 hgtd_cluster_shortlist = [
'-hgtdClusterLink']
29 hgtd_cluster_variables =
'.'.join(hgtd_cluster_shortlist)
30 for hgtdClusterCollection
in hgtdClusterCollections:
31 toAOD += [f
"xAOD::HGTDClusterContainer#{hgtdClusterCollection}",
32 f
"xAOD::HGTDClusterAuxContainer#{hgtdClusterCollection}Aux.{hgtd_cluster_variables}"]
34 acc = ComponentAccumulator()
38 from OutputStreamAthenaPool.OutputStreamConfig
import addToAOD
39 acc.merge(addToAOD(flags, toAOD))
45 pixelSpacePointCollections: list[str] =
None,
46 stripSpacePointCollections: list[str] =
None) -> ComponentAccumulator:
48 aux_container_type =
"xAOD::SpacePointAuxContainer"
49 if flags.Acts.EDM.SlimContent:
50 aux_container_type =
"xAOD::AuxContainerBase!"
52 if pixelSpacePointCollections
is not None:
53 pixel_spacepoint_shortlist = [
'-measurements',
54 '-pixelSpacePointLink']
55 if flags.Acts.EDM.SlimContent:
56 pixel_spacepoint_shortlist = [
'globalPosition']
57 pixel_spacepoint_variables =
'.'.join(pixel_spacepoint_shortlist)
58 for pixelSpacePointCollection
in pixelSpacePointCollections:
59 toAOD += [f
'xAOD::SpacePointContainer#{pixelSpacePointCollection}',
60 f
"{aux_container_type}#{pixelSpacePointCollection}Aux.{pixel_spacepoint_variables}"]
62 if stripSpacePointCollections
is not None:
63 strip_spacepoint_shortlist = [
'topHalfStripLength',
64 'bottomHalfStripLength',
66 'bottomStripDirection',
67 'stripCenterDistance',
70 if flags.Acts.EDM.SlimContent:
71 strip_spacepoint_shortlist = [
'globalPosition']
72 strip_spacepoint_variables =
'.'.join(strip_spacepoint_shortlist)
73 for stripSpacePointCollection
in stripSpacePointCollections:
74 toAOD += [f
'xAOD::SpacePointContainer#{stripSpacePointCollection}',
75 f
"{aux_container_type}#{stripSpacePointCollection}Aux.{strip_spacepoint_variables}"]
77 acc = ComponentAccumulator()
81 from OutputStreamAthenaPool.OutputStreamConfig
import addToAOD
82 acc.merge(addToAOD(flags, toAOD))
118 trackParticleCollections: list[str] =
None) -> ComponentAccumulator:
120 if trackParticleCollections
is not None:
121 trackparticles_shortlist = [
'-clusterAssociation',
122 '-TTVA_AMVFVertices_forReco',
124 '-TTVA_AMVFWeights_forReco',
125 '-trackParameterCovarianceMatrices',
126 '-caloExtensionLink',
127 '-parameterX',
'-parameterY',
'-parameterZ',
128 '-parameterPX',
'-parameterPY',
'-parameterPZ',
129 '-parameterPosition']
132 trackparticles_shortlist += [
'-TTVA_AMVFVertices',
135 if not flags.Acts.EDM.PersistifyTracks:
136 trackparticles_shortlist += [
'-actsTrack',
139 if not flags.Tracking.writeExtendedHGTDInfo:
140 trackparticles_shortlist += [
'-HGTD_cluster_merged',
141 '-HGTD_cluster_raw_time',
142 '-HGTD_cluster_shadowed',
143 '-HGTD_cluster_time',
144 '-HGTD_cluster_truth_class',
147 '-HGTD_primary_expected',
149 '-HGTD_times_of_compatible_hits']
151 trackparticles_variables =
".".join(trackparticles_shortlist)
153 from InDetConfig.InDetTrackOutputConfig
import FTAG_AUXDATA
154 trackparticles_variables +=
'.-'.join([
''] + FTAG_AUXDATA)
156 from DerivationFrameworkInDet.IDTIDE
import IDTIDE_AOD_EXCLUDED_AUXDATA
157 trackparticles_variables +=
'.-'.join([
''] + IDTIDE_AOD_EXCLUDED_AUXDATA)
158 from DerivationFrameworkInDet.IDTRKVALID
import IDTRKVALID_AOD_EXCLUDED_AUXDATA
159 trackparticles_variables +=
'.-'.join([
''] + IDTRKVALID_AOD_EXCLUDED_AUXDATA)
161 for trackParticleCollection
in trackParticleCollections:
162 toAOD += [f
"xAOD::TrackParticleContainer#{trackParticleCollection}",
163 f
"xAOD::TrackParticleAuxContainer#{trackParticleCollection}Aux." + trackparticles_variables]
165 acc = ComponentAccumulator()
169 from OutputStreamAthenaPool.OutputStreamConfig
import addToAOD
170 acc.merge(addToAOD(flags, toAOD))