2 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory
import CompFactory
4 from AthenaConfiguration.AccumulatorCache
import AccumulatorCache
9 kwargs.setdefault(
"LoadDetectorVolumeSvc",
False)
11 from AthenaConfiguration.Enums
import ProductionStep
13 if flags.Common.ProductionStep == ProductionStep.Simulation:
14 kwargs.setdefault(
"LoadTrackingGeoSvc" ,
False)
15 kwargs.setdefault(
"LoadDetectorVolumeSvc" ,
False)
17 kwargs.setdefault(
"LoadDetectorVolumeSvc",
False)
18 kwargs.setdefault(
"LoadTrackingGeoSvc",
True)
20 from ActsConfig.ActsGeometryConfig
import ActsTrackingGeometrySvcCfg
22 if kwargs[
"LoadTrackingGeoSvc"]
else "")
23 from ActsGeometry.DetectorVolumeSvcCfg
import DetectorVolumeSvcCfg
25 if kwargs[
"LoadDetectorVolumeSvc"]
else "")
27 the_alg = CompFactory.ActsTrk.AlignStoreProviderAlg(name, **kwargs)
28 result.addCondAlgo(the_alg, primary =
True)
34 from AthenaConfiguration.Enums
import ProductionStep
36 if flags.Common.ProductionStep == ProductionStep.Simulation:
37 kwargs.setdefault(
"LoadTrackingGeoSvc" ,
False)
38 kwargs.setdefault(
"LoadDetectorVolumeSvc" ,
False)
40 kwargs.setdefault(
"LoadDetectorVolumeSvc",
False)
41 kwargs.setdefault(
"LoadTrackingGeoSvc",
True)
43 from ActsConfig.ActsGeometryConfig
import ActsTrackingGeometrySvcCfg
45 if kwargs[
"LoadTrackingGeoSvc"]
else "")
46 from ActsGeometry.DetectorVolumeSvcCfg
import DetectorVolumeSvcCfg
48 if kwargs[
"LoadDetectorVolumeSvc"]
else "")
50 the_alg = CompFactory.ActsTrk.DetectorAlignCondAlg(name, **kwargs)
51 result.addCondAlgo(the_alg, primary =
True)
58 from ROOT.ActsTrk
import DetectorType
60 if flags.Detector.GeometryITkPixel:
61 from PixelConditionsAlgorithms.ITkPixelConditionsConfig
import ITkPixelAlignCondAlgCfg
64 name=
"ActsDetAlignmentCondAlgITkPixel",
65 InputTransforms=
"ITkPixelAlignmentStore",
66 ActsTransforms=
"ActsITkPixelAlignmentStore",
67 DetectorType=DetectorType.Pixel))
69 name=
"ActsDetAlignmentAlgITkPixel",
70 CondAlignStore=
"ActsITkPixelAlignmentStore",
71 EventAlignStore=
"ActsITkPixelAlignmentStore",
72 DetectorType=DetectorType.Pixel))
74 elif flags.Detector.GeometryPixel:
75 from PixelConditionsAlgorithms.PixelConditionsConfig
import PixelAlignCondAlgCfg
78 name=
"ActsDetAlignmentCondAlgPixel",
79 InputTransforms=
"PixelAlignmentStore",
80 ActsTransforms=
"ActsPixelAlignmentStore",
81 DetectorType=DetectorType.Pixel))
83 name=
"ActsDetAlignmentAlgPixel",
84 CondAlignStore=
"ActsPixelAlignmentStore",
85 EventAlignStore=
"ActsPixelAlignmentStore",
86 DetectorType=DetectorType.Pixel))
92 from ROOT.ActsTrk
import DetectorType
94 if flags.Detector.GeometryITkStrip:
95 from SCT_ConditionsAlgorithms.ITkStripConditionsAlgorithmsConfig
import ITkStripAlignCondAlgCfg
98 name=
"ActsDetAlignmentCondAlgITkSct",
99 InputTransforms=
"ITkStripAlignmentStore",
100 ActsTransforms=
"ActsITkStripAlignmentStore",
101 DetectorType=DetectorType.Sct))
103 name=
"ActsDetAlignmentAlgITkSct",
104 CondAlignStore=
"ActsITkStripAlignmentStore",
105 EventAlignStore=
"ActsITkStripAlignmentStore",
106 DetectorType=DetectorType.Sct))
107 elif flags.Detector.GeometrySCT:
108 from SCT_ConditionsAlgorithms.SCT_ConditionsAlgorithmsConfig
import SCT_AlignCondAlgCfg
111 name=
"ActsDetAlignmentCondAlgSct",
112 InputTransforms=
"SCTAlignmentStore",
113 ActsTransforms=
"ActsSCTAlignmentStore",
114 DetectorType=DetectorType.Sct))
117 name=
"ActsDetAlignmentAlgSct",
118 CondAlignStore=
"ActsSCTAlignmentStore",
119 EventAlignStore=
"ActsSCTAlignmentStore",
120 DetectorType=DetectorType.Sct))
129 from AthenaConfiguration.Enums
import ProductionStep
131 if flags.Common.ProductionStep != ProductionStep.Simulation:
134 if flags.Detector.GeometryITkPixel: AlignmentStores += [
"ActsITkPixelAlignmentStore"]
135 if flags.Detector.GeometryITkStrip: AlignmentStores += [
"ActsITkStripAlignmentStore"]
136 if flags.Detector.GeometryPixel: AlignmentStores += [
"ActsPixelAlignmentStore"]
137 if flags.Detector.GeometrySCT: AlignmentStores += [
"ActsSCTAlignmentStore"]
140 if flags.Muon.usePhaseIIGeoSetup:
141 from MuonGeoModelR4.MuonGeoModelConfig
import MuonAlignStoreCfg
144 if flags.Detector.GeometryMDT: AlignmentStores += [
"MdtActsAlignContainer"]
145 if flags.Detector.GeometryRPC: AlignmentStores += [
"RpcActsAlignContainer"]
146 if flags.Detector.GeometryTGC: AlignmentStores += [
"TgcActsAlignContainer"]
147 if flags.Detector.GeometrysTGC: AlignmentStores += [
"sTgcActsAlignContainer"]
148 if flags.Detector.GeometryMM: AlignmentStores += [
"MmActsAlignContainer"]
150 kwargs.setdefault(
"AlignmentStores", AlignmentStores)
152 the_alg = CompFactory.ActsTrk.GeometryContextAlg(name, **kwargs)
153 result.addCondAlgo(the_alg, primary =
True)