ATLAS Offline Software
Loading...
Searching...
No Matches
HGTD_RecoConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4
5def HGTD_RecoCfg(flags):
6 """Configures HGTD track extension
7 (currently only decorates tracks with relevant info) """
8 result = ComponentAccumulator()
9
10 # We can do clusterization using Acts algorithm
11 # In so, we then need to schedule the cluster EDM converter
12 # to provide the same inputs to the downstream algorithms that
13 # still do not support ACTS reconstruction
14 if not flags.HGTD.doActs:
15 from HGTD_Config.HGTD_PrepRawDataFormationConfig import PadClusterizationCfg
16 result.merge(PadClusterizationCfg(flags))
17
18 from HGTD_Config.HGTD_TrackTimeExtensionConfig import TrackTimeExtensionCfg
19 result.merge(TrackTimeExtensionCfg(flags))
20
21 from HGTD_Config.HGTD_TrackTimeExtensionConfig import TimeCompatibilityCheckCfg #ITk holes
22 result.merge(TimeCompatibilityCheckCfg(flags))
23
24 else:
25 from ActsConfig.ActsClusterizationConfig import ActsHgtdClusterizationAlgCfg
26 result.merge(ActsHgtdClusterizationAlgCfg(flags))
27
28 from ActsConfig.ActsHGTDTrackExtensionAlgConfig import ActsHGTDTrackExtensionAlgCfg
29 result.merge(ActsHGTDTrackExtensionAlgCfg(flags))
30
31 if flags.Tracking.doTruth:
32 from ActsConfig.ActsHGTDTrackExtensionAlgConfig import HGTDTruthTrackDecorationAlgCfg
33 result.merge(HGTDTruthTrackDecorationAlgCfg(flags))
34
35 from HGTD_Config.HGTD_TrackTimeExtensionConfig import TrackTimeDefAndQualityAlgCfg
36 result.merge(TrackTimeDefAndQualityAlgCfg(flags))
37
38 from HGTD_Config.HGTD_VertexTimeConfig import VertexTimeAlgCfg
39 result.merge(VertexTimeAlgCfg(flags))
40
41 return result