Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:26

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("ERRORSKIM")
0004 
0005 ## MessageLogger
0006 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0007 
0008 ## Options and Output Report
0009 process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0010 
0011 from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValTTbarGENSIMRECO
0012 process.source = cms.Source("PoolSource",
0013   fileNames = filesRelValTTbarGENSIMRECO,
0014   inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*") # drop the DQM histograms
0015 )
0016 ## Maximal Number of Events
0017 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) )
0018 
0019 # create filter path on error messages
0020 process.load("FWCore.Modules.logErrorFilter_cfi")
0021 process.p = cms.Path( process.logErrorFilter )
0022 
0023 ## Output Module Configuration (expects a path 'p')
0024 process.out = cms.OutputModule("PoolOutputModule",
0025                                 fileName = cms.untracked.string('errorskim.root'),
0026                                 # save only events passing the full path
0027                                 SelectEvents   = cms.untracked.PSet( SelectEvents = cms.vstring('p') ),
0028                                 outputCommands = cms.untracked.vstring("keep *")
0029                                )
0030 
0031 process.outpath = cms.EndPath(process.out)
0032