2 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
3 from AthenaConfiguration.Enums
import Format
19 if flags.Detector.EnableBCM:
20 if flags.Input.Format
is Format.BS:
21 from BCM_RawDataByteStreamCnv.BCM_RawDataByteStreamCnvConfig
import (
22 BCM_RawDataProviderAlgCfg)
24 from InDetConfig.BCM_ZeroSuppressionConfig
import BCM_ZeroSuppressionCfg
30 if (flags.Detector.EnablePixel
and
31 (flags.Input.Format
is Format.BS
32 or 'PixelRDOs' in flags.Input.Collections
33 or f
'{flags.Overlay.BkgPrefix}PixelRDOs' in flags.Input.Collections)):
37 from InDetConfig.InDetPrepRawDataFormationConfig
import (
38 PixelClusterizationCfg)
40 if flags.InDet.doSplitReco:
41 from InDetConfig.InDetPrepRawDataFormationConfig
import (
42 PixelClusterizationPUCfg)
47 if (flags.Detector.EnableSCT
and
48 (flags.Input.Format
is Format.BS
49 or 'SCT_RDOs' in flags.Input.Collections
50 or f
'{flags.Overlay.BkgPrefix}SCT_RDOs' in flags.Input.Collections)):
55 from InDetConfig.InDetPrepRawDataFormationConfig
import (
58 if flags.InDet.doSplitReco:
59 from InDetConfig.InDetPrepRawDataFormationConfig
import (
60 SCTClusterizationPUCfg)
67 from InDetConfig.SiSpacePointFormationConfig
import (
68 InDetSiTrackerSpacePointFinderCfg)
74 if (flags.InDet.doTruth
and
75 (
not flags.Detector.EnableSCT
or
76 'SCT_SDO_Map' in flags.Input.Collections)
and
77 (
not flags.Detector.EnablePixel
or
78 'PixelSDO_Map' in flags.Input.Collections)):
80 from InDetConfig.InDetTruthAlgsConfig
import (
81 InDetPRD_MultiTruthMakerSiCfg)
83 if flags.InDet.doSplitReco:
84 from InDetConfig.InDetTruthAlgsConfig
import (
85 InDetPRD_MultiTruthMakerSiPUCfg)
93 previousActsExtension: str =
None):
107 if flags.Detector.EnableBCMPrime:
108 from InDetConfig.BCM_ZeroSuppressionConfig
import BCM_ZeroSuppressionCfg
113 if flags.Tracking.ActiveConfig.doAthenaCluster:
114 from InDetConfig.InDetPrepRawDataFormationConfig
import (
115 AthenaTrkClusterizationCfg)
118 if flags.Acts.useHGTDClusterInTrackFinding
and flags.Detector.EnableHGTD:
119 from HGTD_Config.HGTD_PrepRawDataFormationConfig
import PadClusterizationCfg
122 if flags.Tracking.ActiveConfig.doActsCluster:
124 from ActsConfig.ActsRegionsOfInterestConfig
import ActsRegionsOfInterestCreatorAlgCfg
126 name=f
"{flags.Tracking.ActiveConfig.extension}RegionsOfInterestCreatorAlg"))
129 if flags.Tracking.ActiveConfig.doFPGATrack:
130 from EFTrackingFPGAIntegration.EFClusterizationConfig
import EFPassThroughClusterizationCfg
133 from ActsConfig.ActsClusterizationConfig
import ActsClusterizationCfg
139 if flags.Tracking.ActiveConfig.doAthenaToActsCluster:
143 from InDetConfig.InDetPrepRawDataFormationConfig
import (
144 ITkInDetToXAODClusterConversionCfg)
147 if flags.Acts.useHGTDClusterInTrackFinding
and flags.Detector.EnableHGTD:
148 from InDetConfig.InDetPrepRawDataFormationConfig
import HGTDInDetToXAODClusterConversionCfg
152 if flags.Tracking.ActiveConfig.doActsToAthenaCluster:
156 from InDetConfig.InDetPrepRawDataFormationConfig
import (
157 ITkXAODToInDetClusterConversionCfg)
163 if flags.Tracking.ActiveConfig.doAthenaSpacePoint:
164 if flags.Tracking.doITkFastTracking:
165 from InDetConfig.SiSpacePointFormationConfig
import (
166 ITkFastSiTrackerSpacePointFinderCfg)
169 from InDetConfig.SiSpacePointFormationConfig
import (
170 ITkSiTrackerSpacePointFinderCfg)
173 if flags.Tracking.ActiveConfig.doFPGASpacePoint:
174 from EFTrackingFPGAIntegration.EFSpacePointFormationConfig
import (
175 EFSpacePointFormationCfg)
178 if flags.Tracking.ActiveConfig.doActsSpacePoint:
179 from ActsConfig.ActsSpacePointFormationConfig
import (
180 ActsSpacePointFormationCfg)
186 if flags.Tracking.ActiveConfig.doAthenaToActsSpacePoint:
190 from InDetConfig.SiSpacePointFormationConfig
import (
191 InDetToXAODSpacePointConversionCfg)
197 if flags.Tracking.doTruth:
198 if flags.Tracking.ActiveConfig.doAthenaCluster
or flags.Tracking.ActiveConfig.doActsToAthenaCluster:
199 from InDetConfig.InDetTruthAlgsConfig
import ITkPRD_MultiTruthMakerSiCfg
202 if flags.Tracking.ActiveConfig.doActsCluster
or flags.Tracking.ActiveConfig.doAthenaToActsCluster:
203 from ActsConfig.ActsTruthConfig
import ActsTruthAssociationAlgCfg, ActsTruthParticleHitCountAlgCfg
211 if __name__ ==
"__main__":
212 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
215 from AthenaConfiguration.TestDefaults
import defaultTestFiles
216 flags.Input.Files = defaultTestFiles.RDO_RUN2
218 flags.Tracking.doPixelClusterSplitting =
True
221 flags.Concurrency.NumThreads = numThreads
222 flags.Concurrency.NumConcurrentEvents = numThreads
227 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
230 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
235 iovsvc = top_acc.getService(
'IOVDbSvc')
236 iovsvc.OutputLevel = 5
238 top_acc.printConfig()
240 top_acc.store(
open(
"test_SiliconPreProcessing.pkl",
"wb"))