3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
8 kwargs.setdefault(
'TruthParticleIndexDecoration',
'origTruthIndex')
9 acc.addEventAlgo(CompFactory.TruthParticleIndexDecoratorAlg(name, **kwargs))
13 from PixelGeoModel.PixelGeoModelConfig
import PixelReadoutGeometryCfg
16 from PixelConditionsAlgorithms.PixelConditionsConfig
import PixelChargeCalibCondCfg, PixelDCSCondStateAlgCfg, PixelDCSCondStatusAlgCfg, PixelDCSCondTempAlgCfg, PixelDCSCondHVAlgCfg
23 from InDetConfig.PixelCalibAlgsConfig
import PixelChargeToTConversionCfg
26 if "PixelConditionsSummaryTool" not in kwargs:
27 from PixelConditionsTools.PixelConditionsSummaryConfig
import PixelConditionsSummaryCfg
30 if "LorentzAngleTool" not in kwargs:
31 from SiLorentzAngleTool.PixelLorentzAngleConfig
import PixelLorentzAngleToolCfg
34 kwargs.setdefault(
"UseTruthInfo", flags.Input.isMC)
39 kwargs.setdefault(
"InputTruthParticleLinks",
"xAODTruthLinks")
40 kwargs.setdefault(
"WriteExtendedPRDinformation",
True)
42 acc.addEventAlgo(CompFactory.PixelPrepDataToxAOD(name, **kwargs))
56 from ActsConfig.ActsObjectDecorationConfig
import ActsPixelClusterTruthDecorator,ActsStripClusterTruthDecorator
63 kwargs.setdefault(
"WriteSDOs",
True)
64 kwargs.setdefault(
"WriteSiHits",
True)
68 from PixelGeoModelXml.ITkPixelGeoModelConfig
import ITkPixelReadoutGeometryCfg
71 from PixelConditionsAlgorithms.ITkPixelConditionsConfig
import ITkPixelChargeCalibCondAlgCfg, ITkPixelDCSCondStateAlgCfg, ITkPixelDCSCondStatusAlgCfg, ITkPixelDCSCondTempAlgCfg, ITkPixelDCSCondHVAlgCfg
78 from TrkConfig.TrkConfigFlags
import TrackingComponent
79 if TrackingComponent.AthenaChain
in flags.Tracking.recoChain:
80 from InDetConfig.PixelCalibAlgsConfig
import ITkPixelChargeToTConversionCfg
83 if "PixelConditionsSummaryTool" not in kwargs:
84 from PixelConditionsTools.ITkPixelConditionsSummaryConfig
import ITkPixelConditionsSummaryCfg
87 if "LorentzAngleTool" not in kwargs:
88 from SiLorentzAngleTool.ITkPixelLorentzAngleConfig
import ITkPixelLorentzAngleToolCfg
91 kwargs.setdefault(
"UseTruthInfo", flags.Input.isMC)
96 kwargs.setdefault(
"WriteExtendedPRDinformation",
True)
97 kwargs.setdefault(
"PixelReadoutManager",
"ITkPixelReadoutManager")
98 kwargs.setdefault(
"PixelChargeCalibCondData",
"ITkPixelChargeCalibCondData")
99 kwargs.setdefault(
"PixelDCSStateCondData",
"ITkPixelDCSStateCondData")
100 kwargs.setdefault(
"PixelDCSStatusCondData",
"ITkPixelDCSStatusCondData")
101 kwargs.setdefault(
"ReadKeyTemp",
"ITkPixelDCSTempCondData")
102 kwargs.setdefault(
"ReadKeyHV",
"ITkPixelDCSHVCondData")
103 kwargs.setdefault(
"SiClusterContainer",
"ITkPixelClusters")
104 kwargs.setdefault(
"MC_SDOs",
"ITkPixelSDO_Map")
105 kwargs.setdefault(
"MC_Hits",
"ITkPixelHits")
106 kwargs.setdefault(
"PRD_MultiTruth",
"PRD_MultiTruthITkPixel")
107 kwargs.setdefault(
"InputTruthParticleLinks",
"xAODTruthLinks")
108 kwargs.setdefault(
"OutputClusterContainer",
"ITkPixelClusters")
110 acc.addEventAlgo(CompFactory.PixelPrepDataToxAOD(name, **kwargs))
114 kwargs.setdefault(
"WriteSDOs",
True)
115 kwargs.setdefault(
"WriteSiHits",
True)
119 from SCT_GeoModel.SCT_GeoModelConfig
import SCT_ReadoutGeometryCfg
121 kwargs.setdefault(
"UseTruthInfo", flags.Input.isMC)
126 kwargs.setdefault(
"InputTruthParticleLinks",
"xAODTruthLinks")
127 acc.addEventAlgo(CompFactory.SCT_PrepDataToxAOD(name, **kwargs))
131 from SCT_GeoModel.SCT_GeoModelConfig
import SCT_ReadoutGeometryCfg
133 acc.addEventAlgo(CompFactory.SCT_RawDataToxAOD(name, **kwargs))
137 kwargs.setdefault(
"WriteSDOs",
True)
138 kwargs.setdefault(
"WriteSiHits",
True)
143 from StripGeoModelXml.ITkStripGeoModelConfig
import ITkStripReadoutGeometryCfg
146 kwargs.setdefault(
"SiClusterContainer",
"ITkStripClusters")
147 kwargs.setdefault(
"MC_SDOs",
"ITkStripSDO_Map")
148 kwargs.setdefault(
"MC_Hits",
"ITkStripHits")
149 kwargs.setdefault(
"PRD_MultiTruth",
"PRD_MultiTruthITkStrip")
150 kwargs.setdefault(
"InputTruthParticleLinks",
"xAODTruthLinks")
151 kwargs.setdefault(
"SctRdoContainer",
"ITkStripRDOs")
152 kwargs.setdefault(
"SctxAodContainer",
"ITkStripClusters")
153 kwargs.setdefault(
"SctxAodOffset",
"ITkStripClustersOffsets")
154 kwargs.setdefault(
"SCTDetEleCollKey",
"ITkStripDetectorElementCollection")
155 kwargs.setdefault(
"UseTruthInfo", flags.Input.isMC)
161 acc.addEventAlgo(CompFactory.SCT_PrepDataToxAOD(name, **kwargs))
165 kwargs.setdefault(
"WriteSDOs",
True)
166 kwargs.setdefault(
"WriteSiHits",
True)
171 kwargs.setdefault(
"UseTruthInfo", flags.Input.isMC)
173 if "TRTCalDbTool" not in kwargs:
174 from TRT_ConditionsServices.TRT_ConditionsServicesConfig
import (
176 kwargs.setdefault(
"TRTCalDbTool", acc.popToolsAndMerge(
179 if "TRTStrawSummaryTool" not in kwargs:
180 from TRT_ConditionsServices.TRT_ConditionsServicesConfig
import (
181 TRT_StrawStatusSummaryToolCfg)
182 kwargs.setdefault(
"TRTStrawSummaryTool", acc.popToolsAndMerge(
185 if "NeighbourSvc" not in kwargs:
186 from TRT_ConditionsServices.TRT_ConditionsServicesConfig
import (
187 TRT_StrawNeighbourSvcCfg)
188 kwargs.setdefault(
"NeighbourSvc", acc.getPrimaryAndMerge(
191 if "TRTDriftFunctionTool" not in kwargs:
192 from InDetConfig.TRT_DriftFunctionToolConfig
import (
193 TRT_DriftFunctionToolCfg)
194 kwargs.setdefault(
"TRTDriftFunctionTool", acc.popToolsAndMerge(
197 acc.addEventAlgo(CompFactory.TRT_PrepDataToxAOD(name, **kwargs))
201 kwargs.setdefault(
"WriteSDOs",
True)
207 if flags.Detector.EnablePixel:
208 from InDetConfig.TrackRecoConfig
import (
209 ClusterSplitProbabilityContainerName)
211 flags, ClusterSplitProbabilityName=(
214 if flags.Detector.EnableSCT:
217 if flags.Detector.EnableTRT:
224 extra_truth = flags.Tracking.doTIDE_AmbiTrackMonitoring
225 if flags.Detector.EnableITkPixel:
226 from InDetConfig.ITkTrackRecoConfig
import (
227 ITkClusterSplitProbabilityContainerName)
230 flags, ClusterSplitProbabilityName=(
234 flags, ClusterSplitProbabilityName=(
237 if flags.Detector.EnableITkStrip: