/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Geometry/HGCalGeometry/test/python/hgcGeomAnalyzer_cfg.py
62 строки
2 KB
Sunanda
Modify the scipts to use Run4D121 as the default Phase2 scenario
25 ноя 2025, 18:47
25 ноя 2025, 18:47
9d15902
Код
Авторство
О чём код?
############################################################################### # Way to use this: # cmsRun hgcGeomAnalyzer_cfg.py geom=v17 # # Options for geom v16, v17, v18, V19 # ############################################################################### import FWCore.ParameterSet.Config as cms from FWCore.ParameterSet.VarParsing import VarParsing from Configuration.StandardSequences.Eras import eras from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 options = VarParsing() options.register ("geom", "v17", VarParsing.multiplicity.singleton, VarParsing.varType.string, "geom of operations: v16, v17, v18, V19") options.parseArguments() process = cms.Process("demo",eras.Phase2C17I13M9) process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") if options.geom == 'v16': geomFile = 'Configuration.Geometry.GeometryExtendedRun4D100Reco_cff' elif options.geom == 'v17': geomFile = 'Configuration.Geometry.GeometryExtendedRun4D121Reco_cff' elif options.geom == 'v18': geomFile = 'Configuration.Geometry.GeometryExtendedRun4D104Reco_cff' elif options.geom == 'v19': geomFile = 'Configuration.Geometry.GeometryExtendedRun4D120Reco_cff' else: geomFile = 'UNKNOWN GEOMETRY!' raise Exception(geomFile) fileName = "geom_output_"+options.geom print("Geometry file: ", geomFile) print("Output file: ", fileName) process.load(geomFile) from Configuration.AlCa.GlobalTag import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T25', '') process.load('FWCore.MessageService.MessageLogger_cfi') if hasattr(process,'MessageLogger'): process.MessageLogger.HGCalGeom=dict() process.MessageLogger.HGCalGeomX=dict() process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) ) process.source = cms.Source("EmptySource") process.plotter = cms.EDAnalyzer("HGCGeomAnalyzer", fileName = cms.string(fileName+".txt") ) process.TFileService = cms.Service("TFileService", fileName = cms.string(fileName+".root") ) process.p = cms.Path(process.plotter)