Rename Geometry for CMSSW >= 14.2
From CMSSW 14.2 on, it seems like GeometryExtended2026D104
is renamed to GeometryExtendedRun4D104
:
-
CMSSW_14_1_X
: https://github.com/cms-sw/cmssw/blob/CMSSW_14_1_X/Configuration/Geometry/python/GeometryExtended2026D105Reco_cff.py, see https://github.com/cms-sw/cmssw/tree/CMSSW_14_1_X/Configuration/Geometry#readme -
CMSSW_14_2_X
: https://github.com/cms-sw/cmssw/blob/CMSSW_14_2_X/Configuration/Geometry/python/GeometryExtendedRun4D105Reco_cff.py, see https://github.com/cms-sw/cmssw/tree/CMSSW_14_2_X/Configuration/Geometry#readme
To capture both cases, I added some lines to Configuration/python/SysValEras_cff.py
to check if $CMSSW_RELEASE_BASE/src/Configuration/Geometry/python/GeometryExtendedRun4D105Reco_cff.py
exists.
- If it exists (presumably CMSSW >= 14.2), use
GeometryExtendedRun4D105
. - If it does not exist (presumably CMSSW <= 14.1), use
GeometryExtended2026D105
.
However, now that Yu-Wei's TH2Poly
PR #41932 for DQM is rebased to CMSSW 15, I am not sure if newly installed setups will be able to run with CMSSW older than 15.
As a second side note, @psilva, I believe we need to update the GitLab pipeline to be able to compile with the latter PR...