Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phase2-hgx324 Extend the muon tomography testing for the scenario 2026D49 #39279

Merged
merged 1 commit into from
Sep 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions Validation/HGCalValidation/scripts/testHGCalCellHitSum_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Way to use this:
# cmsRun testHGCalCellHitSum_cfg.py geometry=D92
#
# Options for geometry D88, D92, D93
# Options for geometry D49, D88, D92, D93
#
###############################################################################
import FWCore.ParameterSet.Config as cms
Expand All @@ -16,29 +16,39 @@
"D92",
VarParsing.VarParsing.multiplicity.singleton,
VarParsing.VarParsing.varType.string,
"geometry of operations: D88, D92, D93")
"geometry of operations: D49, D88, D92, D93")

### get and parse the command line arguments
options.parseArguments()

import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Era_Phase2C11I13M9_cff import Phase2C11I13M9
process = cms.Process('HGCalCellHit',Phase2C11I13M9)

print(options)

####################################################################
# Use the options

if (options.geometry == "D88"):
if (options.geometry == "D49"):
from Configuration.Eras.Era_Phase2C9_cff import Phase2C9
process = cms.Process('SingleMuon',Phase2C9)
process.load('Configuration.Geometry.GeometryExtended2026D49Reco_cff')
geomFile = 'Validation/HGCalValidation/data/wafer_v16.csv'
outputFile = 'file:geantoutputD49.root'
elif (options.geometry == "D88"):
from Configuration.Eras.Era_Phase2C11I13M9_cff import Phase2C11I13M9
process = cms.Process('HGCalCellHit',Phase2C11I13M9)
process.load('Configuration.Geometry.GeometryExtended2026D88Reco_cff')
geomFile = 'Validation/HGCalValidation/data/wafer_v16.csv'
outputFile = 'file:geantoutputD88.root'
elif (options.geometry == "D93"):
from Configuration.Eras.Era_Phase2C11I13M9_cff import Phase2C11I13M9
process = cms.Process('HGCalCellHit',Phase2C11I13M9)
process.load('Configuration.Geometry.GeometryExtended2026D93Reco_cff')
geomFile = 'Validation/HGCalValidation/data/wafer_v17.csv'
outputFile = 'file:geantoutputD93.root'
else:
from Configuration.Eras.Era_Phase2C11I13M9_cff import Phase2C11I13M9
process = cms.Process('HGCalCellHit',Phase2C11I13M9)
process.load('Configuration.Geometry.GeometryExtended2026D92Reco_cff')
geomFile = 'Validation/HGCalValidation/data/wafer_v17.csv'
outputFile = 'file:geantoutputD92.root'
Expand Down
28 changes: 21 additions & 7 deletions Validation/HGCalValidation/scripts/testHGCalSingleMuonPt100_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Way to use this:
# cmsRun testHGCalSingleMuonPt100_cfg.py geometry=D92
#
# Options for geometry D88, D92, D93
# Options for geometry D49, D88, D92, D93
#
###############################################################################
import FWCore.ParameterSet.Config as cms
Expand All @@ -16,7 +16,7 @@
"D92",
VarParsing.VarParsing.multiplicity.singleton,
VarParsing.VarParsing.varType.string,
"geometry of operations: D88, D92, D93")
"geometry of operations: D49, D88, D92, D93")

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

from Configuration.Eras.Era_Phase2C11I13M9_cff import Phase2C11I13M9
process = cms.Process('PROD',Phase2C11I13M9)

if (options.geometry == "D88"):
if (options.geometry == "D49"):
from Configuration.Eras.Era_Phase2C9_cff import Phase2C9
process = cms.Process('SingleMuon',Phase2C9)
process.load('Configuration.Geometry.GeometryExtended2026D49_cff')
process.load('Configuration.Geometry.GeometryExtended2026D49Reco_cff')
globalTag = "auto:phase2_realistic_T15"
elif (options.geometry == "D88"):
from Configuration.Eras.Era_Phase2C11I13M9_cff import Phase2C11I13M9
process = cms.Process('SingleMuon',Phase2C11I13M9)
process.load('Configuration.Geometry.GeometryExtended2026D88_cff')
process.load('Configuration.Geometry.GeometryExtended2026D88Reco_cff')
globalTag = "auto:phase2_realistic_T21"
elif (options.geometry == "D93"):
from Configuration.Eras.Era_Phase2C11I13M9_cff import Phase2C11I13M9
process = cms.Process('SingleMuon',Phase2C11I13M9)
process.load('Configuration.Geometry.GeometryExtended2026D93_cff')
process.load('Configuration.Geometry.GeometryExtended2026D93Reco_cff')
globalTag = "auto:phase2_realistic_T21"
else:
from Configuration.Eras.Era_Phase2C11I13M9_cff import Phase2C11I13M9
process = cms.Process('SingleMuon',Phase2C11I13M9)
process.load('Configuration.Geometry.GeometryExtended2026D92_cff')
process.load('Configuration.Geometry.GeometryExtended2026D92Reco_cff')
globalTag = "auto:phase2_realistic_T21"

print("Global Tag: ", globalTag)

# import of standard configurations
process.load('Configuration.StandardSequences.Services_cff')
Expand Down Expand Up @@ -111,7 +125,7 @@
# Other statements
process.genstepfilter.triggerConditions=cms.vstring("generation_step")
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
process.GlobalTag = GlobalTag(process.GlobalTag, globalTag, '')

process.generator = cms.EDFilter("Pythia8PtGun",
PGunParameters = cms.PSet(
Expand Down