/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FastSimulation/ParticleDecay/python/TestPythiaDecays_cfg.py
26 строк
835 B
Shahzad Malik Muzaffar
[MISC2] py2/3 compatibility:drop use of __future__
22 ноя 2024, 20:18
22 ноя 2024, 20:18
2c224d4
Код
Авторство
О чём код?
import FWCore.ParameterSet.Config as cms from FWCore.ParameterSet.VarParsing import VarParsing options = VarParsing ('analysis') options.parseArguments() process = cms.Process("Demo") process.load("FWCore.MessageService.MessageLogger_cfi") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) process.source = cms.Source("PoolSource", # replace 'myfile.root' with the source file you want to use fileNames = cms.untracked.vstring(options.inputFiles) ) print(process.source.fileNames) process.demo = cms.EDAnalyzer('TestPythiaDecays', outputFile = cms.string(options.outputFile) ) process.TFileService = cms.Service("TFileService", fileName = cms.string(options.outputFile)) process.p = cms.Path(process.demo)