ATLAS Offline Software
Loading...
Searching...
No Matches
ITkActsDataPreparationConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
3
5 *,
6 previousExtension: str = None) -> ComponentAccumulator:
7 acc = ComponentAccumulator()
8
9 # Region of interest creation
10 from ActsConfig.ActsRegionsOfInterestConfig import ActsRegionsOfInterestCreatorAlgCfg
11 acc.merge(ActsRegionsOfInterestCreatorAlgCfg(flags,
12 name = f"{flags.Tracking.ActiveConfig.extension}RegionsOfInterestCreatorAlg"))
13
14 # Cluster formation
15 # This includes Pixel, Strip and HGTD clusters
16 from ActsConfig.ActsClusterizationConfig import ActsClusterizationCfg
17 acc.merge(ActsClusterizationCfg(flags,
18 previousActsExtension = previousExtension))
19
20 # Space Point Formation
21 from ActsConfig.ActsSpacePointFormationConfig import ActsSpacePointFormationCfg
22 acc.merge(ActsSpacePointFormationCfg(flags,
23 previousActsExtension = previousExtension))
24
25 # Truth
26 # this truth must only be done if you do PRD and SpacePointformation
27 # If you only do the latter (== running on ESD) then the needed input (simdata)
28 # is not in ESD but the resulting truth (clustertruth) is already there ...
29 if flags.Tracking.doTruth:
30 from ActsConfig.ActsTruthConfig import ActsTruthAssociationAlgCfg, ActsTruthParticleHitCountAlgCfg
31 acc.merge(ActsTruthAssociationAlgCfg(flags))
32 acc.merge(ActsTruthParticleHitCountAlgCfg(flags))
33
34 return acc
35
ComponentAccumulator ITkActsDataPreparationCfg(flags, *, str previousExtension=None)