/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Geometry/HGCalGeometry/test/python/testHGCalValidScintTest_cfg.py
72 строки
2 KB
Sunanda
Try to add all the rings in the fine layers of the HGCal Scintillator tiles in the V19 version
30 апр 2026, 08:42
30 апр 2026, 08:42
de54732
Код
Авторство
О чём код?
############################################################################### # Way to use this: # cmsRun testHGCaValidScintTest_cfg.py geomName=Run4D120 # # Options for geomName: Run4D120, Run4D121, Run4D122, Run4D123 # ############################################################################### 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('geomName', "Run4D121", VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, "geometry of operations: Run4D120, Run4D121, Run4D122, Run4D123") ### get and parse the command line arguments options.parseArguments() print(options) #################################################################### geomName = options.geomName 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("SimGeneral.HepPDTESSource.pdt_cfi") process.load(geomFile) process.load('FWCore.MessageService.MessageLogger_cfi') if hasattr(process,'MessageLogger'): process.MessageLogger.HGCalGeom=dict() process.MessageLogger.HGCalGeomT=dict() process.load("IOMC.RandomEngine.IOMC_cff") process.RandomNumberGeneratorService.generator.initialSeed = 456789 process.source = cms.Source("EmptySource") process.generator = cms.EDProducer("FlatRandomEGunProducer", PGunParameters = cms.PSet( PartID = cms.vint32(14), MinEta = cms.double(-3.5), MaxEta = cms.double(3.5), MinPhi = cms.double(-3.14159265359), MaxPhi = cms.double(3.14159265359), MinE = cms.double(9.99), MaxE = cms.double(10.01) ), AddAntiParticle = cms.bool(False), Verbosity = cms.untracked.int32(0), firstRun = cms.untracked.uint32(1) ) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) ) process.load("Geometry.HGCalGeometry.hgcalValidScintTest_cfi") process.p1 = cms.Path(process.generator*process.hgcalValidScintTest)