/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
PhysicsTools/PatAlgos/python/patTemplate_cfg.py
39 строк
2 KB
W. David Dagenhart
Set the era for PatAlgos unit tests
10 дек 2019, 23:55
10 дек 2019, 23:55
4c3aa87
Код
Авторство
О чём код?
import FWCore.ParameterSet.Config as cms from PhysicsTools.PatAlgos.tools.helpers import getPatAlgosToolsTask from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger process = cms.Process("PAT", stage2L1Trigger) ## MessageLogger process.load("FWCore.MessageLogger.MessageLogger_cfi") ## Options and Output Report process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) ) ## Source process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring() ) ## Maximal Number of Events process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) ) ## Geometry and Detector Conditions (needed for a few patTuple production steps) process.load("Configuration.Geometry.GeometryRecoDB_cff") process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") from Configuration.AlCa.GlobalTag import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc') process.load("Configuration.StandardSequences.MagneticField_cff") ## Output Module Configuration (expects a path 'p') from PhysicsTools.PatAlgos.patEventContent_cff import patEventContentNoCleaning process.out = cms.OutputModule("PoolOutputModule", fileName = cms.untracked.string('patTuple.root'), ## save only events passing the full path #SelectEvents = cms.untracked.PSet( SelectEvents = cms.vstring('p') ), ## save PAT output; you need a '*' to unpack the list of commands ## 'patEventContent' outputCommands = cms.untracked.vstring('drop *', *patEventContentNoCleaning ) ) patAlgosToolsTask = getPatAlgosToolsTask(process) process.outpath = cms.EndPath(process.out, patAlgosToolsTask)