/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
IOPool/Input/test/PrePoolInputTest_cfg.py
35 строк
1 KB
Kevin Pedro
fix sys.argv usage in unit tests
04 окт 2023, 12:32
04 окт 2023, 12:32
a80085a
Код
Авторство
О чём код?
# The following comments couldn't be translated into the new config version: # Configuration file for PrePoolInputTest import FWCore.ParameterSet.Config as cms import sys useOtherThing = False if len(sys.argv) > 7: if sys.argv[7] == "useOtherThing": useOtherThing = True process = cms.Process("TESTPROD") process.load("FWCore.Framework.test.cmsExceptionsFatal_cff") process.maxEvents.input = int(sys.argv[2]) process.Thing = cms.EDProducer("ThingProducer") process.output = cms.OutputModule("PoolOutputModule", fileName = cms.untracked.string(sys.argv[1]) ) process.source = cms.Source("EmptySource", firstRun = cms.untracked.uint32(int(sys.argv[3])), numberEventsInRun = cms.untracked.uint32(int(sys.argv[4])), firstLuminosityBlock = cms.untracked.uint32(int(sys.argv[5])), numberEventsInLuminosityBlock = cms.untracked.uint32(int(sys.argv[6])) ) process.p = cms.Path(process.Thing) if useOtherThing: process.OtherThing = cms.EDProducer("OtherThingProducer") process.p = cms.Path(process.Thing + process.OtherThing) process.ep = cms.EndPath(process.output)