diff --git a/Configuration/Geometry/python/GeometryDD4hepExtended2026DefaultReco_cff.py b/Configuration/Geometry/python/GeometryDD4hepExtended2026DefaultReco_cff.py index b72dc7405148f..c7bfaec544dd1 100644 --- a/Configuration/Geometry/python/GeometryDD4hepExtended2026DefaultReco_cff.py +++ b/Configuration/Geometry/python/GeometryDD4hepExtended2026DefaultReco_cff.py @@ -1,3 +1,5 @@ import FWCore.ParameterSet.Config as cms +from Configuration.Geometry.defaultPhase2ConditionsEra_cff import DEFAULT_VERSION -from Configuration.Geometry.GeometryDD4hepExtended2026D110Reco_cff import * +reco_dd4hep_geometry_import_stmt = f"from Configuration.Geometry.GeometryDD4hepExtended{DEFAULT_VERSION}Reco_cff import *" +exec(reco_dd4hep_geometry_import_stmt) diff --git a/Configuration/Geometry/python/GeometryDD4hepExtended2026Default_cff.py b/Configuration/Geometry/python/GeometryDD4hepExtended2026Default_cff.py index 6600d3ddd2b6e..6edff18cef641 100644 --- a/Configuration/Geometry/python/GeometryDD4hepExtended2026Default_cff.py +++ b/Configuration/Geometry/python/GeometryDD4hepExtended2026Default_cff.py @@ -1,3 +1,5 @@ import FWCore.ParameterSet.Config as cms +from Configuration.Geometry.defaultPhase2ConditionsEra_cff import DEFAULT_VERSION -from Configuration.Geometry.GeometryDD4hepExtended2026D110_cff import * +dd4hep_geometry_import_stmt = f"from Configuration.Geometry.GeometryDD4hepExtended{DEFAULT_VERSION}_cff import *" +exec(dd4hep_geometry_import_stmt) diff --git a/Configuration/Geometry/python/GeometryExtended2026DefaultReco_cff.py b/Configuration/Geometry/python/GeometryExtended2026DefaultReco_cff.py index 176c3f8d63020..b757a900c5960 100644 --- a/Configuration/Geometry/python/GeometryExtended2026DefaultReco_cff.py +++ b/Configuration/Geometry/python/GeometryExtended2026DefaultReco_cff.py @@ -1,3 +1,5 @@ import FWCore.ParameterSet.Config as cms +from Configuration.Geometry.defaultPhase2ConditionsEra_cff import DEFAULT_VERSION -from Configuration.Geometry.GeometryExtended2026D110Reco_cff import * +reco_geometry_import_stmt = f"from Configuration.Geometry.GeometryExtended{DEFAULT_VERSION}Reco_cff import *" +exec(reco_geometry_import_stmt) diff --git a/Configuration/Geometry/python/GeometryExtended2026Default_cff.py b/Configuration/Geometry/python/GeometryExtended2026Default_cff.py index 8f26a0828bfc6..cfb9f0a23fd6a 100644 --- a/Configuration/Geometry/python/GeometryExtended2026Default_cff.py +++ b/Configuration/Geometry/python/GeometryExtended2026Default_cff.py @@ -1,3 +1,5 @@ import FWCore.ParameterSet.Config as cms +from Configuration.Geometry.defaultPhase2ConditionsEra_cff import DEFAULT_VERSION -from Configuration.Geometry.GeometryExtended2026D110_cff import * +geometry_import_stmt = f"from Configuration.Geometry.GeometryExtended{DEFAULT_VERSION}_cff import *" +exec(geometry_import_stmt)