ATLAS Offline Software
Loading...
Searching...
No Matches
python.ITkActsDataPreparationConfig Namespace Reference

Functions

ComponentAccumulator ITkActsDataPreparationCfg (flags, *, str previousExtension=None)

Function Documentation

◆ ITkActsDataPreparationCfg()

ComponentAccumulator python.ITkActsDataPreparationConfig.ITkActsDataPreparationCfg ( flags,
* ,
str previousExtension = None )

Definition at line 4 of file ITkActsDataPreparationConfig.py.

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 # PLR is reconstructed as a sidecar cluster stream only. It is kept
21 # separate from the standard ITk tracking inputs and is therefore only
22 # scheduled once on the primary/validation pass.
23 from InDetConfig.ITkActsHelpers import isPrimaryPass, isValidationPass
24 if flags.Detector.EnablePLR and (isPrimaryPass(flags) or isValidationPass(flags)):
25 from ActsConfig.ActsClusterizationConfig import ActsPLRClusterizationAlgCfg
26 acc.merge(ActsPLRClusterizationAlgCfg(
27 flags,
28 name=f"{flags.Tracking.ActiveConfig.extension}PLRClusterizationAlg",
29 RoIs=f"{flags.Tracking.ActiveConfig.extension}RegionOfInterest",
30 ))
31
32 # Space Point Formation
33 from ActsConfig.ActsSpacePointFormationConfig import ActsSpacePointFormationCfg
34 acc.merge(ActsSpacePointFormationCfg(flags,
35 previousActsExtension = previousExtension))
36
37 # Truth
38 # this truth must only be done if you do PRD and SpacePointformation
39 # If you only do the latter (== running on ESD) then the needed input (simdata)
40 # is not in ESD but the resulting truth (clustertruth) is already there ...
41 if flags.Tracking.doTruth:
42 from ActsConfig.ActsTruthConfig import ActsTruthAssociationAlgCfg, ActsTruthParticleHitCountAlgCfg
43 acc.merge(ActsTruthAssociationAlgCfg(flags))
44 acc.merge(ActsTruthParticleHitCountAlgCfg(flags))
45 if flags.Acts.doTruthInspection:
46 from ActsConfig.ActsInspectTruthContentConfig import ActsInspectTruthContentAlgCfg
47 acc.merge(ActsInspectTruthContentAlgCfg(flags))
48
49 return acc