Skip to content

Commit

Permalink
Merge pull request #43934 from bsunanda/Phase2-hgx353D
Browse files Browse the repository at this point in the history
Phase2-hgx353D Modify some of the cfg's in Validation/HGCalValidation to work for V16, V17, V18 scenarios of HGCal Geometry
  • Loading branch information
cmsbuild authored Feb 12, 2024
2 parents a84b9fd + 152f24a commit 33ad2e0
Show file tree
Hide file tree
Showing 9 changed files with 184 additions and 66 deletions.
27 changes: 20 additions & 7 deletions Validation/HGCalValidation/test/python/runHGCGeomCheck_cfg.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
###############################################################################
# Way to use this:
# cmsRun runHGCGeomCheck_cfg.py geometry=D88
# cmsRun runHGCGeomCheck_cfg.py geometry=D99
#
# Options for geometry D88, D92, D93
# Options for geometry D98, D99, D108, D94, D103, D104, D106, D109
#
###############################################################################
import FWCore.ParameterSet.Config as cms
import os, sys, imp, re
import os, sys, importlib, re
import FWCore.ParameterSet.VarParsing as VarParsing

####################################################################
### SETUP OPTIONS
options = VarParsing.VarParsing('standard')
options.register('geometry',
"D88",
"D99",
VarParsing.VarParsing.multiplicity.singleton,
VarParsing.VarParsing.varType.string,
"geometry of operations: D88, D92, D93")
"geometry of operations: D98, D99, D108, D94, D103, D104, D106, D109")

### get and parse the command line arguments
options.parseArguments()
Expand All @@ -25,8 +25,21 @@

####################################################################
# Use the options
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
process = cms.Process('GeomCheck',Phase2C17I13M9)
if (options.geometry == "D94"):
from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9
process = cms.Process('Client',Phase2C20I13M9)
elif (options.geometry == "D104"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
elif (options.geometry == "D106"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
elif (options.geometry == "D109"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
else:
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
process = cms.Process('Client',Phase2C17I13M9)

geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff"
inFile = "file:testHGCalSimWatcher" + options.geometry + ".root"
Expand Down
27 changes: 20 additions & 7 deletions Validation/HGCalValidation/test/python/runHGCHitAnalyzer_cfg.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
###############################################################################
# Way to use this:
# cmsRun runHGCHitAnalyzer_cfg.py geometry=D88
# cmsRun runHGCHitAnalyzer_cfg.py geometry=D99
#
# Options for geometry D88, D92, D93
# Options for geometry D98, D99, D108, D94, D103, D104, D106, D109
#
###############################################################################
import FWCore.ParameterSet.Config as cms
import os, sys, imp, re
import os, sys, importlib, re
import FWCore.ParameterSet.VarParsing as VarParsing

####################################################################
### SETUP OPTIONS
options = VarParsing.VarParsing('standard')
options.register('geometry',
"D88",
"D99",
VarParsing.VarParsing.multiplicity.singleton,
VarParsing.VarParsing.varType.string,
"geometry of operations: D88, D92, D93")
"geometry of operations: D98, D99, D108, D94, D103, D104, D106, D109")

### get and parse the command line arguments
options.parseArguments()
Expand All @@ -25,8 +25,21 @@

####################################################################
# Use the options
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
process = cms.Process('HGCHitAnalyzer',Phase2C17I13M9)
if (options.geometry == "D94"):
from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9
process = cms.Process('Client',Phase2C20I13M9)
elif (options.geometry == "D104"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
elif (options.geometry == "D106"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
elif (options.geometry == "D109"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
else:
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
process = cms.Process('Client',Phase2C17I13M9)

geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff"
inFile = "file:step3" + options.geometry + ".root"
Expand Down
25 changes: 20 additions & 5 deletions Validation/HGCalValidation/test/python/runHGCMissingRecHit_cfg.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
###############################################################################
# Way to use this:
# cmsRun runHGCMissingRecHit_cfg.py geometry=D88
# cmsRun runHGCMissingRecHit_cfg.py geometry=D99
#
# Options for geometry D88, D92, D93
# Options for geometry D98, D99, D108, D94, D103, D104, D106, D109
#
###############################################################################
import FWCore.ParameterSet.Config as cms
import os, sys, imp, re
import os, sys, importlib, re
import FWCore.ParameterSet.VarParsing as VarParsing

####################################################################
### SETUP OPTIONS
options = VarParsing.VarParsing('standard')
options.register('geometry',
"D88",
"D99",
VarParsing.VarParsing.multiplicity.singleton,
VarParsing.VarParsing.varType.string,
"geometry of operations: D88, D92, D93")
"geometry of operations: D98, D99, D108, D94, D103, D104, D106, D109")

### get and parse the command line arguments
options.parseArguments()
Expand All @@ -25,6 +25,21 @@

####################################################################
# Use the options
if (options.geometry == "D94"):
from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9
process = cms.Process('Client',Phase2C20I13M9)
elif (options.geometry == "D104"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
elif (options.geometry == "D106"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
elif (options.geometry == "D109"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
else:
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
process = cms.Process('Client',Phase2C17I13M9)
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
process = cms.Process('HGCHitAnalysis',Phase2C17I13M9)

Expand Down
27 changes: 20 additions & 7 deletions Validation/HGCalValidation/test/python/runHGCalDigiStudy_cfg.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
###############################################################################
# Way to use this:
# cmsRun runHGCalDigiStudy_cfg.py geometry=D88
# cmsRun runHGCalDigiStudy_cfg.py geometry=D99
#
# Options for geometry D88, D92, D93
# Options for geometry D98, D99, D108, D94, D103, D104, D106, D109
#
###############################################################################
import FWCore.ParameterSet.Config as cms
import os, sys, imp, re
import os, sys, importlib, re
import FWCore.ParameterSet.VarParsing as VarParsing

####################################################################
### SETUP OPTIONS
options = VarParsing.VarParsing('standard')
options.register('geometry',
"D93",
"D99",
VarParsing.VarParsing.multiplicity.singleton,
VarParsing.VarParsing.varType.string,
"geometry of operations: D88, D92, D93")
"geometry of operations: D98, D99, D108, D94, D103, D104, D106, D109")

### get and parse the command line arguments
options.parseArguments()
Expand All @@ -25,8 +25,21 @@

####################################################################
# Use the options
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
process = cms.Process('DigiStudy',Phase2C17I13M9)
if (options.geometry == "D94"):
from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9
process = cms.Process('Client',Phase2C20I13M9)
elif (options.geometry == "D104"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
elif (options.geometry == "D106"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
elif (options.geometry == "D109"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
else:
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
process = cms.Process('Client',Phase2C17I13M9)

geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff"
fileInput = "file:step2" + options.geometry + "tt.root"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
###############################################################################
# Way to use this:
# cmsRun runHGCalHitCalibration_cfg.py geometry=D88
# cmsRun runHGCalHitCalibration_cfg.py geometry=D99
#
# Options for geometry D88, D92, D93
# Options for geometry D98, D99, D108, D94, D103, D104, D106, D109
#
###############################################################################
import FWCore.ParameterSet.Config as cms
import os, sys, imp, re
import os, sys, importlib, re
import FWCore.ParameterSet.VarParsing as VarParsing
import FWCore.Utilities.FileUtils as FileUtils

####################################################################
### SETUP OPTIONS
options = VarParsing.VarParsing('standard')
options.register('geometry',
"D93",
"D99",
VarParsing.VarParsing.multiplicity.singleton,
VarParsing.VarParsing.varType.string,
"geometry of operations: D88, D92, D93")
"geometry of operations: D98, D99, D108, D94, D103, D104, D106, D109")

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

####################################################################
# Use the options
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
process = cms.Process('HitCalibration',Phase2C17I13M9)
if (options.geometry == "D94"):
from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9
process = cms.Process('Client',Phase2C20I13M9)
elif (options.geometry == "D104"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
elif (options.geometry == "D106"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
elif (options.geometry == "D109"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
else:
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
process = cms.Process('Client',Phase2C17I13M9)

geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff"
fileInput = "file:step3" + options.geometry + "tt.root"
Expand All @@ -43,11 +56,10 @@
process.load('FWCore.MessageService.MessageLogger_cfi')
process.load('Configuration.EventContent.EventContent_cff')
process.load('Configuration.StandardSequences.MagneticField_cff')
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')

process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
from Configuration.AlCa.GlobalTag import GlobalTag
##Global Tag used for production in
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '')
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')

process.MessageLogger.cerr.FwkReport.reportEvery = 100

Expand Down
27 changes: 20 additions & 7 deletions Validation/HGCalValidation/test/python/runHGCalRecHitStudy_cfg.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
###############################################################################
# Way to use this:
# cmsRun runHGCalRecHitStudy_cfg.py geometry=D82
# cmsRun runHGCalRecHitStudy_cfg.py geometry=D99
#
# Options for geometry D88, D92, D93
# Options for geometry D98, D99, D108, D94, D103, D104, D106, D109
#
###############################################################################
import FWCore.ParameterSet.Config as cms
import os, sys, imp, re
import os, sys, importlib, re
import FWCore.ParameterSet.VarParsing as VarParsing

####################################################################
### SETUP OPTIONS
options = VarParsing.VarParsing('standard')
options.register('geometry',
"D93",
"D99",
VarParsing.VarParsing.multiplicity.singleton,
VarParsing.VarParsing.varType.string,
"geometry of operations: D88, D92, D93")
"geometry of operations: D98, D99, D108, D94, D103, D104, D106, D109")

### get and parse the command line arguments
options.parseArguments()
Expand All @@ -25,8 +25,21 @@

####################################################################
# Use the options
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
process = cms.Process('RecHitSTudy',Phase2C17I13M9)
if (options.geometry == "D94"):
from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9
process = cms.Process('Client',Phase2C20I13M9)
elif (options.geometry == "D104"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
elif (options.geometry == "D106"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
elif (options.geometry == "D109"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
else:
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
process = cms.Process('Client',Phase2C17I13M9)

geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff"
fileInput = "file:step3" + options.geometry + "tt.root"
Expand Down
27 changes: 20 additions & 7 deletions Validation/HGCalValidation/test/python/runHGCalSimHitStudy_cfg.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
###############################################################################
# Way to use this:
# cmsRun runHGCalSimHitStudy_cfg.py geometry=D92
# cmsRun runHGCalSimHitStudy_cfg.py geometry=D99
#
# Options for geometry D88, D92, D93
# Options for geometry D98, D99, D108, D94, D103, D104, D106, D109
#
###############################################################################
import FWCore.ParameterSet.Config as cms
import os, sys, imp, re
import os, sys, importlib, re
import FWCore.ParameterSet.VarParsing as VarParsing

####################################################################
### SETUP OPTIONS
options = VarParsing.VarParsing('standard')
options.register('geometry',
"D93",
"D99",
VarParsing.VarParsing.multiplicity.singleton,
VarParsing.VarParsing.varType.string,
"geometry of operations: D88, D92, D93")
"geometry of operations: D98, D99, D108, D94, D103, D104, D106, D109")

### get and parse the command line arguments
options.parseArguments()
Expand All @@ -25,8 +25,21 @@

####################################################################
# Use the options
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
process = cms.Process('SimHitStudy',Phase2C17I13M9)
if (options.geometry == "D94"):
from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9
process = cms.Process('Client',Phase2C20I13M9)
elif (options.geometry == "D104"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
elif (options.geometry == "D106"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
elif (options.geometry == "D109"):
from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
process = cms.Process('Client',PhaseC22I13M9)
else:
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
process = cms.Process('Client',Phase2C17I13M9)

geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff"
fileInput = "file:step1" + options.geometry + "tt.root"
Expand Down
Loading

0 comments on commit 33ad2e0

Please sign in to comment.