Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:27:42

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("DUMP")
0004 
0005 process.task = cms.Task()
0006 
0007 ## MessageLogger
0008 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0009 ## Options and output report
0010 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0011 
0012 ## Source (expect a locally produced patTuple.root or miniAODTuple.root, produced via standard sequesnted in PatAlgos)
0013 process.source = cms.Source("PoolSource",
0014     fileNames = cms.untracked.vstring("file:patMiniAOD_standard.root")
0015 )
0016 ## Maximal number of events
0017 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1000) )
0018 ## Load dump of tau variables
0019 process.load("RecoTauTag.Configuration.dumpTauVariables_cfi")
0020 process.task.add(process.dumpTauVariables)
0021 ## Define variables to be dumped to out
0022 from RecoTauTag.Configuration.tauVariables_cff import slimmedVariables
0023 process.dumpTauVariables.variables = slimmedVariables
0024 
0025 ## OutputModule configuration (expects a path 'p')
0026 process.out = cms.OutputModule("PoolOutputModule",
0027                                fileName = cms.untracked.string('dumpTauVariables_slimmed.root'),
0028                                outputCommands = cms.untracked.vstring('drop *', 'keep *_*_*_DUMP' )
0029                                )
0030 process.outpath = cms.EndPath(process.out, process.task)