/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
SimG4Core/PrintGeomInfo/test/python/runSummary_cfg.py
44 строки
1 KB
Sunanda
Use the validation scripts to test the 2026 Geometry scenario
27 фев 2026, 16:46
27 фев 2026, 16:46
8da7e62
Код
Авторство
О чём код?
############################################################################### # Way to use this: # cmsRun runSummary_cfg.py geometry=2023 # # Options for geometry 2021, 2023, 2024, 2025, 2026 # ############################################################################### 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', "2024", VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, "geometry of operations: 2021, 2023, 2024, 2025, 2026") ### get and parse the command line arguments options.parseArguments() print(options) #####p############################################################### # Use the options from Configuration.Eras.Era_Run3_DDD_cff import Run3_DDD process = cms.Process('PrintGeometry',Run3_DDD) geomFile = "Configuration.Geometry.GeometryExtended" + options.geometry + "Reco_cff" print("Geometry file: ", geomFile) process.load(geomFile) process.load('FWCore.MessageService.MessageLogger_cfi') if hasattr(process,'MessageLogger'): process.MessageLogger.G4cout=dict() process.MessageLogger.G4cerr=dict() from SimG4Core.PrintGeomInfo.g4PrintGeomSummary_cfi import * process = printGeomSummary(process)