/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Alignment/MillePedeAlignmentAlgorithm/python/MillePedeFileConverter_cfg.py
37 строк
1 KB
Gianluca
add flushing of the mille file in endRun protecting it against running in pede mode and mille not being initialized
08 сен 2015, 19:25
08 сен 2015, 19:25
f66e0d5
Код
Авторство
О чём код?
import FWCore.ParameterSet.Config as cms process = cms.Process("MillePedeFileConverter") process.load("FWCore.MessageService.MessageLogger_cfi") # This is just a test configuration. It should not be loaded directly in any # other configuration. # The filenames below are just suggestions. # To get all info about this module, type: # edmPluginHelp -p MillePedeFileConverter # Using the normal standard messagelogger, with its standard configuration, # but setting the category of messages to MillePedeFileActions process.MessageLogger = process.MessageLogger.clone( categories = cms.untracked.vstring('MillePedeFileActions'), ) # Limit our test to 5 events (we work on run level anyway) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(5) ) process.source = cms.Source("EmptySource") # Loading the autogenerated millePedeFileConverter_cfi: from Alignment.MillePedeAlignmentAlgorithm.millePedeFileConverter_cfi import millePedeFileConverter process.testMillePedeFileConverter = millePedeFileConverter.clone() process.testMillePedeFileConverter. inputBinaryFile = "milleBinary_0.dat" process.out = cms.OutputModule("PoolOutputModule", fileName = cms.untracked.string('myOutputFile.root') ) process.p = cms.Path(process.testMillePedeFileConverter) process.e = cms.EndPath(process.out)