Skip to content

Commit

Permalink
Merge pull request #45787 from bsunanda/Phase2-hgx359XX
Browse files Browse the repository at this point in the history
Phase2-hgx359XX Modify Three test scripts to test if the bug-fix for HGCalGeometry Works
  • Loading branch information
cmsbuild authored Aug 29, 2024
2 parents 934df06 + bcd83aa commit b2d7e71
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
###############################################################################
# Way to use this:
# cmsRun testHGCalGeometryRotCheck_cfg.py geometry=D88
# cmsRun testHGCalGeometryRotCheck_cfg.py geometry=D110
#
# Options for type D88, D92, D93
# Options for type D95, D96, D98, D99, D100, D101, D102, D103, D104, D105,
# D106, D107, D108, D109, D110, D111, D112, D113, D114
#
###############################################################################
import FWCore.ParameterSet.Config as cms
Expand All @@ -13,10 +14,10 @@
### SETUP OPTIONS
options = VarParsing.VarParsing('standard')
options.register('geometry',
"D92",
"D110",
VarParsing.VarParsing.multiplicity.singleton,
VarParsing.VarParsing.varType.string,
"type of operations: D88, D92, D93")
"type of operations: D95, D96, D98, D99, D100, D101, D102, D103, D104, D105, D106, D107, D108, D109, D110, D111, D112, D113, D114")

### get and parse the command line arguments
options.parseArguments()
Expand All @@ -27,12 +28,9 @@

####################################################################
# Use the options
if (options.geometry == "D88"):
process.load('Configuration.Geometry.GeometryExtended2026D88Reco_cff')
elif (options.geometry == "D93"):
process.load('Configuration.Geometry.GeometryExtended2026D93Reco_cff')
else:
process.load('Configuration.Geometry.GeometryExtended2026D92Reco_cff')
geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff"
print("Geometry file: ", geomFile)
process.load(geomFile)

process.load("SimGeneral.HepPDTESSource.pdt_cfi")
process.load('Geometry.HGCalGeometry.hgcalGeometryRotCheck_cfi')
Expand Down
18 changes: 8 additions & 10 deletions Geometry/HGCalGeometry/test/python/testHGCalGeometryRotTest_cfg.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
###############################################################################
# Way to use this:
# cmsRun testHGCalGeometryRotTest_cfg.py geometry=D88
# cmsRun testHGCalGeometryRotTest_cfg.py geometry=D110
#
# Options for type D88, D92, D93
# Options for type D95, D96, D98, D99, D100, D101, D102, D103, D104, D105,
# D106, D107, D108, D109, D110, D111, D112, D113, D114
#
###############################################################################
import FWCore.ParameterSet.Config as cms
Expand All @@ -13,10 +14,10 @@
### SETUP OPTIONS
options = VarParsing.VarParsing('standard')
options.register('geometry',
"D92",
"D110",
VarParsing.VarParsing.multiplicity.singleton,
VarParsing.VarParsing.varType.string,
"type of operations: D88, D92, D93")
"type of operations: D95, D96, D98, D99, D100, D101, D102, D103, D104, D105, D106, D107, D108, D109, D110, D111, D112, D113, D114")

### get and parse the command line arguments
options.parseArguments()
Expand All @@ -27,12 +28,9 @@

####################################################################
# Use the options
if (options.geometry == "D88"):
process.load('Configuration.Geometry.GeometryExtended2026D88Reco_cff')
elif (options.geometry == "D93"):
process.load('Configuration.Geometry.GeometryExtended2026D93Reco_cff')
else:
process.load('Configuration.Geometry.GeometryExtended2026D92Reco_cff')
geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff"
print("Geometry file: ", geomFile)
process.load(geomFile)

process.load("SimGeneral.HepPDTESSource.pdt_cfi")
process.load('Geometry.HGCalGeometry.hgcalGeometryRotTest_cfi')
Expand Down
21 changes: 9 additions & 12 deletions Geometry/HGCalGeometry/test/python/testHGCalGeometry_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Way to use this:
# cmsRun testHGCalHGCalGeometry_cfg.py geometry=V17
#
# Options for geometry V16, V17
# Options for geometry V16, V17, V18
#
###############################################################################
import FWCore.ParameterSet.Config as cms
Expand All @@ -16,7 +16,7 @@
"V17",
VarParsing.VarParsing.multiplicity.singleton,
VarParsing.VarParsing.varType.string,
"geometry of operations: V16, V17")
"geometry of operations: V16, V17, V18")

### get and parse the command line arguments
options.parseArguments()
Expand All @@ -26,16 +26,13 @@
####################################################################
# Use the options

if (options.geometry == "V16"):
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
process = cms.Process('HGCHGCalGeometry',Phase2C17I13M9)
process.load("Geometry.HGCalCommonData.testHGCalV16XML_cfi")
process.load("Geometry.HGCalCommonData.hgcalV15ParametersInitialization_cfi")
else:
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
process = cms.Process('HGCHGCalGeometry',Phase2C17I13M9)
process.load("Geometry.HGCalCommonData.testHGCalV17XML_cfi")
process.load("Geometry.HGCalCommonData.hgcalV15ParametersInitialization_cfi")
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
process = cms.Process('HGCHGCalGeometry',Phase2C17I13M9)
geomFile = "Geometry.HGCalCommonData.testHGCal" + options.geometry + "XML_cfi"
print("Geometry file: ", geomFile)
process.load(geomFile)
process.load("Geometry.HGCalCommonData.hgcalParametersInitialization_cfi")
process.load("Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi")

process.load("SimGeneral.HepPDTESSource.pdt_cfi")
process.load("Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi")
Expand Down

0 comments on commit b2d7e71

Please sign in to comment.