Verified Commit 3d737957 authored by Tadej Novak's avatar Tadej Novak
Browse files

Fix tracking geometry IoV hack for simulation

parent 1b35b189
Pipeline #3293392 passed with stage
in 0 seconds
......@@ -487,7 +487,7 @@ def PixelDetectorElementCondAlgCfg(flags, name="PixelDetectorElementCondAlg", **
from TRT_GeoModel.TRT_GeoModelConfig import TRT_ReadoutGeometryCfg
acc.merge(TRT_ReadoutGeometryCfg(flags))
kwargs.setdefault("TRT_DetEltContKey", "TRT_DetElementContainer")
if flags.Detector.GeometrySCT:
if not flags.GeoModel.Align.LegacyConditionsAccess and flags.Detector.GeometrySCT:
from SCT_GeoModel.SCT_GeoModelConfig import SCT_AlignmentCfg
acc.merge(SCT_AlignmentCfg(flags))
kwargs.setdefault("SCTAlignmentStore", "SCTAlignmentStore")
......
......@@ -83,7 +83,7 @@ def SCT_DetectorElementCondAlgCfg(flags, name="SCT_DetectorElementCondAlg", **kw
from TRT_GeoModel.TRT_GeoModelConfig import TRT_ReadoutGeometryCfg
acc.merge(TRT_ReadoutGeometryCfg(flags))
kwargs.setdefault("TRT_DetEltContKey", "TRT_DetElementContainer")
if flags.Detector.GeometryPixel:
if not flags.GeoModel.Align.LegacyConditionsAccess and flags.Detector.GeometryPixel:
from PixelGeoModel.PixelGeoModelConfig import PixelAlignmentCfg
acc.merge(PixelAlignmentCfg(flags))
kwargs.setdefault("PixelAlignmentStore", "PixelAlignmentStore")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment