/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Geometry/HGCalGeometry/test/python/testHGCalWaferSimWt_cfg.py
58 строк
2 KB
Sunanda
Update all test codes in Geometry/HGCalGeometry for the existing versions of HGCal geometry within CMSSW
03 май 2026, 09:05
03 май 2026, 09:05
1a15266
Код
Авторство
О чём код?
############################################################################### # Way to use this: # cmsRun testHGCalWaferSimWt_cfg.py geometry=D120 # # Options for geometry D104, D110, D111, D112, D113, D114, D115, D120, D121 # D122, D123, D124, D125 # ############################################################################### import FWCore.ParameterSet.Config as cms import os, sys, importlib, re import FWCore.ParameterSet.VarParsing as VarParsing #################################################################### ### SETUP OPTIONS options = VarParsing.VarParsing('standard') options.register('geometry', "D120", VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, "geometry of operations: D104, D110, D111, D112, D113, D114, D115, D120, D121, D122, D123, D124, D125") ### get and parse the command line arguments options.parseArguments() print(options) #################################################################### # Use the options geomName = "Run4" + options.geometry geomFile = "Configuration.Geometry.GeometryExtended" + geomName + "Reco_cff" import Configuration.Geometry.defaultPhase2ConditionsEra_cff as _settings GLOBAL_TAG, ERA = _settings.get_era_and_conditions(geomName) print("Geometry Name: ", geomName) print("Geom file Name: ", geomFile) print("Global Tag Name: ", GLOBAL_TAG) print("Era Name: ", ERA) process = cms.Process('PROD',ERA) process.load(geomFile) process.load("Geometry.HGCalGeometry.hgcalWaferSimWt_cfi") process.load('FWCore.MessageService.MessageLogger_cfi') if hasattr(process,'MessageLogger'): process.MessageLogger.HGCalGeomX=dict() # process.MessageLogger.HGCalGeom=dict() process.source = cms.Source("EmptySource") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) ) process.Timing = cms.Service("Timing") process.hgcalWaferSimWt.debug = True process.p1 = cms.Path(process.hgcalWaferSimWt)