Skip to content

Commit

Permalink
Merge pull request #46608 from mmusich/mm_fixes_post-46582
Browse files Browse the repository at this point in the history
fix a bunch of tests broken by #46582
  • Loading branch information
cmsbuild authored Nov 8, 2024
2 parents aca061d + 3412226 commit e773726
Show file tree
Hide file tree
Showing 12 changed files with 59 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ echo " testing CalibTracker/StandalonTrackerTopology"

cmsRun ${SCRAM_TEST_PATH}/testStandaloneTrackerTopology_cfg.py || die "Failure using cmsRun testPixelTopologyMapTest_cfg.py (Phase-0 test)" $?
cmsRun ${SCRAM_TEST_PATH}/testStandaloneTrackerTopology_cfg.py runNumber=300000 || die "Failure using cmsRun testPixelTopologyMapTest_cfg.py (Phase-1 test)" $?
cmsRun ${SCRAM_TEST_PATH}/testStandaloneTrackerTopology_cfg.py globalTag=auto:phase2_realistic_T21 || die "Failure using cmsRun testPixelTopologyMapTest_cfg.py (Phase-2 test)" $?
cmsRun ${SCRAM_TEST_PATH}/testStandaloneTrackerTopology_cfg.py isPhase2=True || die "Failure using cmsRun testPixelTopologyMapTest_cfg.py (Phase-2 test)" $?
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import FWCore.ParameterSet.Config as cms
import FWCore.ParameterSet.VarParsing as VarParsing

process = cms.Process("TopologyAnalysis")
options = VarParsing.VarParsing("analysis")

options.register ('globalTag',
Expand All @@ -16,8 +15,25 @@
VarParsing.VarParsing.varType.int, # string, int, or float
"run number")

options.register ('isPhase2',
False,
VarParsing.VarParsing.multiplicity.singleton, # singleton or list
VarParsing.VarParsing.varType.bool, # string, int, or float
"is phase2?")

options.parseArguments()

###################################################################
# Set default phase-2 settings
###################################################################
import Configuration.Geometry.defaultPhase2ConditionsEra_cff as _settings
_PH2_GLOBAL_TAG, _PH2_ERA = _settings.get_era_and_conditions(_settings.DEFAULT_VERSION)

if(options.isPhase2):
process = cms.Process("TopologyAnalysis",_PH2_ERA)
else:
process = cms.Process("TopologyAnalysis")

###################################################################
# Message logger service
###################################################################
Expand All @@ -29,9 +45,9 @@
###################################################################
process.load("Configuration.StandardSequences.Services_cff")

if 'phase2' in options.globalTag:
process.load("Configuration.Geometry.GeometryExtended2026D98_cff")
process.load("Configuration.Geometry.GeometryExtended2026D98Reco_cff")
if(options.isPhase2):
process.load("Configuration.Geometry.GeometryExtendedRun4Default_cff")
process.load("Configuration.Geometry.GeometryExtendedRun4DefaultReco_cff")
else:
process.load("Configuration.StandardSequences.GeometryRecoDB_cff")

Expand All @@ -40,7 +56,10 @@
####################################################################
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, options.globalTag, '')
if(options.isPhase2):
process.GlobalTag = GlobalTag(process.GlobalTag, _PH2_GLOBAL_TAG, '')
else:
process.GlobalTag = GlobalTag(process.GlobalTag, options.globalTag, '')

###################################################################
# Empty Source
Expand Down
7 changes: 4 additions & 3 deletions Geometry/MTDCommonData/test/testMTDinDD4hep.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import FWCore.ParameterSet.Config as cms

from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
import Configuration.Geometry.defaultPhase2ConditionsEra_cff as _settings
_PH2_GLOBAL_TAG, _PH2_ERA = _settings.get_era_and_conditions(_settings.DEFAULT_VERSION)
from Configuration.ProcessModifiers.dd4hep_cff import dd4hep

process = cms.Process("CompareGeometryTest",Phase2C17I13M9,dd4hep)
process = cms.Process("CompareGeometryTest",_PH2_ERA,dd4hep)

process.source = cms.Source("EmptySource")
process.maxEvents = cms.untracked.PSet(
Expand Down Expand Up @@ -54,7 +55,7 @@
threshold = cms.untracked.string('INFO')
)

process.load('Configuration.Geometry.GeometryDD4hepExtended2026D110_cff')
process.load('Configuration.Geometry.GeometryDD4hepExtendedRun4Default_cff')

process.testBTL = cms.EDAnalyzer("DD4hep_TestMTDIdealGeometry",
DDDetector = cms.ESInputTag('',''),
Expand Down
7 changes: 4 additions & 3 deletions Geometry/MTDCommonData/test/testMTDinDDD.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import FWCore.ParameterSet.Config as cms

from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
import Configuration.Geometry.defaultPhase2ConditionsEra_cff as _settings
_PH2_GLOBAL_TAG, _PH2_ERA = _settings.get_era_and_conditions(_settings.DEFAULT_VERSION)

process = cms.Process("CompareGeometryTest",Phase2C17I13M9)
process = cms.Process("CompareGeometryTest", _PH2_ERA)

process.source = cms.Source("EmptySource")
process.maxEvents = cms.untracked.PSet(
Expand Down Expand Up @@ -53,7 +54,7 @@
threshold = cms.untracked.string('INFO')
)

process.load('Configuration.Geometry.GeometryExtended2026D110_cff')
process.load('Configuration.Geometry.GeometryExtendedRun4Default_cff')

process.testBTL = cms.EDAnalyzer("TestMTDIdealGeometry",
ddTopNodeName = cms.untracked.string('BarrelTimingLayer')
Expand Down
8 changes: 5 additions & 3 deletions Geometry/MTDGeometryBuilder/test/dd4hep_mtd_cfg.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import FWCore.ParameterSet.Config as cms

from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
import Configuration.Geometry.defaultPhase2ConditionsEra_cff as _settings
_PH2_GLOBAL_TAG, _PH2_ERA = _settings.get_era_and_conditions(_settings.DEFAULT_VERSION)

from Configuration.ProcessModifiers.dd4hep_cff import dd4hep

process = cms.Process("GeometryTest",Phase2C17I13M9,dd4hep)
process = cms.Process("GeometryTest",_PH2_ERA,dd4hep)

process.source = cms.Source("EmptyIOVSource",
lastValue = cms.uint64(1),
Expand Down Expand Up @@ -50,7 +52,7 @@
threshold = cms.untracked.string('INFO')
)

process.load("Configuration.Geometry.GeometryDD4hepExtended2026D110Reco_cff")
process.load("Configuration.Geometry.GeometryDD4hepExtendedRun4DefaultReco_cff")

process.Timing = cms.Service("Timing")

Expand Down
7 changes: 4 additions & 3 deletions Geometry/MTDGeometryBuilder/test/mtd_cfg.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import FWCore.ParameterSet.Config as cms

from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
import Configuration.Geometry.defaultPhase2ConditionsEra_cff as _settings
_PH2_GLOBAL_TAG, _PH2_ERA = _settings.get_era_and_conditions(_settings.DEFAULT_VERSION)

process = cms.Process("GeometryTest",Phase2C17I13M9)
process = cms.Process("GeometryTest", _PH2_ERA)

process.source = cms.Source("EmptyIOVSource",
lastValue = cms.uint64(1),
Expand Down Expand Up @@ -46,7 +47,7 @@
threshold = cms.untracked.string('INFO')
)

process.load("Configuration.Geometry.GeometryExtended2026D110_cff")
process.load("Configuration.Geometry.GeometryExtendedRun4Default_cff")

process.load("Geometry.MTDNumberingBuilder.mtdNumberingGeometry_cff")

Expand Down
8 changes: 5 additions & 3 deletions Geometry/MTDNumberingBuilder/test/dd4hep_mtd_cfg.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import FWCore.ParameterSet.Config as cms

from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
import Configuration.Geometry.defaultPhase2ConditionsEra_cff as _settings
_PH2_GLOBAL_TAG, _PH2_ERA = _settings.get_era_and_conditions(_settings.DEFAULT_VERSION)

from Configuration.ProcessModifiers.dd4hep_cff import dd4hep

process = cms.Process("GeometryTest",Phase2C17I13M9,dd4hep)
process = cms.Process("GeometryTest",_PH2_ERA,dd4hep)

process.source = cms.Source("EmptyIOVSource",
lastValue = cms.uint64(1),
Expand Down Expand Up @@ -47,7 +49,7 @@
threshold = cms.untracked.string('INFO')
)

process.load("Configuration.Geometry.GeometryDD4hepExtended2026D110Reco_cff")
process.load("Configuration.Geometry.GeometryDD4hepExtendedRun4DefaultReco_cff")

process.prod = cms.EDAnalyzer("GeometricTimingDetAnalyzer")

Expand Down
7 changes: 4 additions & 3 deletions Geometry/MTDNumberingBuilder/test/mtd_cfg.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import FWCore.ParameterSet.Config as cms

from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
import Configuration.Geometry.defaultPhase2ConditionsEra_cff as _settings
_PH2_GLOBAL_TAG, _PH2_ERA = _settings.get_era_and_conditions(_settings.DEFAULT_VERSION)

process = cms.Process("GeometryTest",Phase2C17I13M9)
process = cms.Process("GeometryTest",_PH2_ERA)

process.source = cms.Source("EmptyIOVSource",
lastValue = cms.uint64(1),
Expand Down Expand Up @@ -46,7 +47,7 @@
threshold = cms.untracked.string('INFO')
)

process.load("Configuration.Geometry.GeometryExtended2026D110Reco_cff")
process.load("Configuration.Geometry.GeometryExtendedRun4DefaultReco_cff")

process.Timing = cms.Service("Timing")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ALL_FILES="${ALL_FILES%?}"
echo "Discovered files: $ALL_FILES"

cmsDriver.py Phase2 -s L1P2GT,HLT:75e33_timing --processName=HLTX \
--conditions auto:phase2_realistic_T33 --geometry Extended2026D110 \
--conditions auto:phase2_realistic_T33 --geometry ExtendedRun4D110 \
--era Phase2C17I13M9 \
--customise SLHCUpgradeSimulations/Configuration/aging.customise_aging_1000 \
--eventcontent FEVTDEBUGHLT \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ _PH2_GLOBAL_TAG, _PH2_ERA = _settings.get_era_and_conditions(_settings.DEFAULT_V
_PH2_GEOMETRY = f"Extended{_settings.DEFAULT_VERSION}"

# Get the actual era name from the version key
_PH2_ERA_NAME = _settings.properties[2026][_settings.DEFAULT_VERSION]['Era']
_PH2_ERA_NAME = _settings.properties['Run4'][_settings.DEFAULT_VERSION]['Era']

# Function to display help information
def print_help():
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import FWCore.ParameterSet.Config as cms

# set the geometry and the GlobalTag
import Configuration.Geometry.defaultPhase2ConditionsEra_cff as _settings
_PH2_GLOBAL_TAG, _PH2_ERA = _settings.get_era_and_conditions(_settings.DEFAULT_VERSION)

process = cms.Process("NavigationSchoolAnalyzer")
process = cms.Process("NavigationSchoolAnalyzer",_PH2_ERA)

# the following lines are kept for when the phase-2 geometry wil be moved to DB
#process.load("Configuration.StandardSequences.GeometryDB_cff")
#process.load('Configuration.StandardSequences.GeometryRecoDB_cff')

process.load('Configuration.Geometry.GeometryExtended2026D98Reco_cff')
process.load('Configuration.Geometry.GeometryExtendedRun4DefaultReco_cff')
process.load("Configuration.StandardSequences.MagneticField_cff")
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T25', '')
process.GlobalTag = GlobalTag(process.GlobalTag, _PH2_GLOBAL_TAG, '')
process.load("RecoTracker.TkNavigation.NavigationSchoolESProducer_cff")

#process.MessageLogger = cms.Service("MessageLogger",
Expand Down
2 changes: 1 addition & 1 deletion Validation/Geometry/test/genHGCalPlots.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -ex

geom=Extended2026D110
geom=ExtendedRun4D110
VGEO_DIR=${CMSSW_BASE}/src/Validation/Geometry/test
TEST_DIR=.

Expand Down

0 comments on commit e773726

Please sign in to comment.