Skip to content

Commit

Permalink
Merge pull request #39572 from tvami/FixPhase2UnitTest
Browse files Browse the repository at this point in the history
Change Phase-2 CPE unit test to use T21 geom
  • Loading branch information
cmsbuild authored Oct 4, 2022
2 parents 97723d2 + 8c966d5 commit fa27d11
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 11 deletions.
24 changes: 24 additions & 0 deletions CondTools/SiPixel/data/phase2_T21_mapping.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
RULES,,,,
,,,,
BARREL,,,,
,,,,
TEMPLATE ID ,LAYER,LADDER,MODULE,
303,1,1-12,1-9,
303,2,1-28,1-9,
303,3,1-24,1-9,
303,4,1-32,1-9,
,,,,
ENDCAP,,,,
,,,,
TEMPLATE ID ,DISK,BLADE,SIDE,PANEL
313,1-12,1-05,1-2,1
,,,,
EXCEPTIONS,,,,
,,,,
BARREL,,,,
,,,,
TEMPLATE ID ,LAYER,LADDER,MODULE,
,,,,
ENDCAP,,,,
,,,,
TEMPLATE ID ,DISK,BLADE,SIDE,PANEL
24 changes: 24 additions & 0 deletions CondTools/SiPixel/data/phase2_T21_mapping_den.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
RULES,,,,
,,,,
BARREL,,,,
,,,,
TEMPLATE ID ,LAYER,LADDER,MODULE,
310,1,1-12,1-9,
310,2,1-28,1-9,
310,3,1-24,1-9,
310,4,1-32,1-9,
,,,,
ENDCAP,,,,
,,,,
TEMPLATE ID ,DISK,BLADE,SIDE,PANEL
314,1-12,1-05,1-2,1
,,,,
EXCEPTIONS,,,,
,,,,
BARREL,,,,
,,,,
TEMPLATE ID ,LAYER,LADDER,MODULE,
,,,,
ENDCAP,,,,
,,,,
TEMPLATE ID ,DISK,BLADE,SIDE,PANEL
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger = cms.Service("MessageLogger",
destinations = cms.untracked.vstring('SiPixel2DTemplateDBObjectUploader_Phase2.log'))
process.load('Configuration.Geometry.GeometryExtended2026D49_cff')
process.load('Configuration.Geometry.GeometryExtended2026D49Reco_cff')
process.load('Configuration.Geometry.GeometryExtended2026D88_cff')
process.load('Configuration.Geometry.GeometryExtended2026D88Reco_cff')
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, options.GlobalTag, '')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@
elif tGeometry == 'T15':
geometry_cff = 'GeometryExtended2026D49_cff'
recoGeometry_cff = 'GeometryExtended2026D49Reco_cff'
elif tGeometry == 'T16':
geometry_cff = 'GeometryExtended2026D48_cff'
recoGeometry_cff = 'GeometryExtended2026D48Reco_cff'
elif tGeometry == 'T21':
geometry_cff = 'GeometryExtended2026D88_cff'
recoGeometry_cff = 'GeometryExtended2026D88Reco_cff'
else:
print("Unknown tracker geometry")
print("What are you doing ?!?!?!?!")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@
elif tGeometry == 'T15':
geometry_cff = 'GeometryExtended2026D49_cff'
recoGeometry_cff = 'GeometryExtended2026D49Reco_cff'
elif tGeometry == 'T16':
geometry_cff = 'GeometryExtended2026D48_cff'
recoGeometry_cff = 'GeometryExtended2026D48Reco_cff'
elif tGeometry == 'T21':
geometry_cff = 'GeometryExtended2026D92_cff'
recoGeometry_cff = 'GeometryExtended2026D92Reco_cff'
else:
print("Unknown tracker geometry")
print("What are you doing ?!?!?!?!")
Expand Down
6 changes: 3 additions & 3 deletions CondTools/SiPixel/test/createTestDBObjects.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ echo -e "TESTING Pixel 1D GenErr DB code ..."
cmsRun ${LOCAL_TEST_DIR}/SiPixelGenErrorDBObjectUploader_cfg.py MagField=0.0 Fullname=SiPixelGenErrorDBObject_phase1_0T_mc_BoR3_v1_bugfix Map=${LOCAL_TEST_DIR}/../data/phaseI_mapping.csv GenErrFilePath=CalibTracker/SiPixelESProducers/data/SiPixelTemplateDBObject_0T_phase1_BoR3_v1 || die "Failure running SiPixelGenErrorDBObjectUploader_cfg.py" $?

echo -e "TESTING Pixel 1D Template DB code for Phase-2 ..."
cmsRun ${LOCAL_TEST_DIR}/SiPixelTemplateDBObjectUploader_Phase2_cfg.py MagField=3.8 Version=7 Append=mc_25x100 Map=${LOCAL_TEST_DIR}/../data/phase2_T15_mapping.csv geometry=T15 TemplateFilePath=CalibTracker/SiPixelESProducers/data/Phase2_25by100_templates_2020October || die "Failure running SiPixelTemplateDBObjectUploader_Phase2_cfg.py" $?
cmsRun ${LOCAL_TEST_DIR}/SiPixelTemplateDBObjectUploader_Phase2_cfg.py MagField=3.8 Version=1 Append=mc_25x100_IT615 Map=${LOCAL_TEST_DIR}/../data/phase2_T21_mapping.csv geometry=T21 TemplateFilePath=CalibTracker/SiPixelESProducers/data/Phase2_IT_v6.1.5_25x100_irradiated_v2_mc || die "Failure running SiPixelTemplateDBObjectUploader_Phase2_cfg.py" $?

echo -e "TESTING Pixel 1D GenErr DB code for Phase-2 ..."
cmsRun ${LOCAL_TEST_DIR}/SiPixelGenErrorDBObjectUploader_Phase2_cfg.py MagField=3.8 Version=7 Append=mc_25x100 Map=${LOCAL_TEST_DIR}/../data/phase2_T15_mapping.csv geometry=T15 GenErrFilePath=CalibTracker/SiPixelESProducers/data/Phase2_25by100_templates_2020October || die "Failure running SiPixelGenErrorDBObjectUploader_Phase2_cfg.py" $?
cmsRun ${LOCAL_TEST_DIR}/SiPixelGenErrorDBObjectUploader_Phase2_cfg.py MagField=3.8 Version=1 Append=mc_25x100_IT615 Map=${LOCAL_TEST_DIR}/../data/phase2_T21_mapping.csv geometry=T21 GenErrFilePath=CalibTracker/SiPixelESProducers/data/Phase2_IT_v6.1.5_25x100_irradiated_v2_mc || die "Failure running SiPixelGenErrorDBObjectUploader_Phase2_cfg.py" $?

echo -e "TESTING Pixel 2D Template DB code for Phase-2 ..."
cmsRun ${LOCAL_TEST_DIR}/SiPixel2DTemplateDBObjectUploader_Phase2_cfg.py MagField=3.8 Version=7 Append=mc_25x100 Map=${LOCAL_TEST_DIR}/../data/phase2_T15_mapping.csv TemplateFilePath=CalibTracker/SiPixelESProducers/data/Phase2_25by100_templates_2020October denominator=True || die "Failure running SiPixel2DTemplateDBObjectUploader_Phase2_cfg.py" $?
cmsRun ${LOCAL_TEST_DIR}/SiPixel2DTemplateDBObjectUploader_Phase2_cfg.py MagField=3.8 Version=1 Append=mc_25x100_IT615 Map=${LOCAL_TEST_DIR}/../data/phase2_T21_mapping_den.csv TemplateFilePath=CalibTracker/SiPixelESProducers/data/Phase2_IT_v6.1.5_25x100_irradiated_v2_mc denominator=True || die "Failure running SiPixel2DTemplateDBObjectUploader_Phase2_cfg.py" $?

echo -e "TESTING SiPixelVCal DB codes ... \n\n"

Expand Down

0 comments on commit fa27d11

Please sign in to comment.