2 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory
import CompFactory
4 from AthenaConfiguration.AccumulatorCache
import AccumulatorCache
10 from AthenaConfiguration.Enums
import ProductionStep
12 kwargs.setdefault(
"FillAlignCache" ,
13 flags.Common.ProductionStep != ProductionStep.Simulation)
15 from ActsConfig.ActsGeometryConfig
import ActsTrackingGeometrySvcCfg
17 if kwargs[
"FillAlignCache"]
else "")
18 the_alg = CompFactory.ActsTrk.AlignStoreProviderAlg(name, **kwargs)
19 result.addCondAlgo(the_alg, primary =
True)
25 from AthenaConfiguration.Enums
import ProductionStep
27 kwargs.setdefault(
"FillAlignCache" ,
28 flags.Common.ProductionStep != ProductionStep.Simulation)
30 from ActsConfig.ActsGeometryConfig
import ActsTrackingGeometrySvcCfg
32 if kwargs[
"FillAlignCache"]
else "")
34 the_alg = CompFactory.ActsTrk.DetectorAlignCondAlg(name, **kwargs)
35 result.addCondAlgo(the_alg, primary =
True)
42 from ROOT.ActsTrk
import DetectorType
44 if flags.Detector.GeometryITkPixel:
45 from PixelConditionsAlgorithms.ITkPixelConditionsConfig
import ITkPixelAlignCondAlgCfg
48 name=
"ActsDetAlignmentCondAlgITkPixel",
49 InputTransforms=
"ITkPixelAlignmentStore",
50 ActsTransforms=
"ActsITkPixelAlignmentStore",
51 DetectorType=DetectorType.Pixel))
53 name=
"ActsDetAlignmentAlgITkPixel",
54 CondAlignStore=
"ActsITkPixelAlignmentStore",
55 EventAlignStore=
"ActsITkPixelAlignmentStore",
56 DetectorType=DetectorType.Pixel))
58 elif flags.Detector.GeometryPixel:
59 from PixelConditionsAlgorithms.PixelConditionsConfig
import PixelAlignCondAlgCfg
62 name=
"ActsDetAlignmentCondAlgPixel",
63 InputTransforms=
"PixelAlignmentStore",
64 ActsTransforms=
"ActsPixelAlignmentStore",
65 DetectorType=DetectorType.Pixel))
67 name=
"ActsDetAlignmentAlgPixel",
68 CondAlignStore=
"ActsPixelAlignmentStore",
69 EventAlignStore=
"ActsPixelAlignmentStore",
70 DetectorType=DetectorType.Pixel))
76 from ROOT.ActsTrk
import DetectorType
78 if flags.Detector.GeometryITkStrip:
79 from SCT_ConditionsAlgorithms.ITkStripConditionsAlgorithmsConfig
import ITkStripAlignCondAlgCfg
82 name=
"ActsDetAlignmentCondAlgITkSct",
83 InputTransforms=
"ITkStripAlignmentStore",
84 ActsTransforms=
"ActsITkStripAlignmentStore",
85 DetectorType=DetectorType.Sct))
87 name=
"ActsDetAlignmentAlgITkSct",
88 CondAlignStore=
"ActsITkStripAlignmentStore",
89 EventAlignStore=
"ActsITkStripAlignmentStore",
90 DetectorType=DetectorType.Sct))
91 elif flags.Detector.GeometrySCT:
92 from SCT_ConditionsAlgorithms.SCT_ConditionsAlgorithmsConfig
import SCT_AlignCondAlgCfg
95 name=
"ActsDetAlignmentCondAlgSct",
96 InputTransforms=
"SCTAlignmentStore",
97 ActsTransforms=
"ActsSCTAlignmentStore",
98 DetectorType=DetectorType.Sct))
101 name=
"ActsDetAlignmentAlgSct",
102 CondAlignStore=
"ActsSCTAlignmentStore",
103 EventAlignStore=
"ActsSCTAlignmentStore",
104 DetectorType=DetectorType.Sct))
113 from AthenaConfiguration.Enums
import ProductionStep
115 if flags.Common.ProductionStep != ProductionStep.Simulation:
118 if flags.Detector.GeometryITkPixel: AlignmentStores += [
"ActsITkPixelAlignmentStore"]
119 if flags.Detector.GeometryITkStrip: AlignmentStores += [
"ActsITkStripAlignmentStore"]
120 if flags.Detector.GeometryPixel: AlignmentStores += [
"ActsPixelAlignmentStore"]
121 if flags.Detector.GeometrySCT: AlignmentStores += [
"ActsSCTAlignmentStore"]
124 if flags.Muon.usePhaseIIGeoSetup:
125 from MuonGeoModelR4.MuonGeoModelConfig
import MuonAlignStoreCfg
128 if flags.Detector.GeometryMDT: AlignmentStores += [
"MdtActsAlignContainer"]
129 if flags.Detector.GeometryRPC: AlignmentStores += [
"RpcActsAlignContainer"]
130 if flags.Detector.GeometryTGC: AlignmentStores += [
"TgcActsAlignContainer"]
131 if flags.Detector.GeometrysTGC: AlignmentStores += [
"sTgcActsAlignContainer"]
132 if flags.Detector.GeometryMM: AlignmentStores += [
"MmActsAlignContainer"]
134 kwargs.setdefault(
"AlignmentStores", AlignmentStores)
136 the_alg = CompFactory.ActsTrk.GeometryContextAlg(name, **kwargs)
137 result.addCondAlgo(the_alg, primary =
True)