Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:30:14

0001 # Test the skipBadFiles option of PoolSource
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 process = cms.Process("TESTRECO")
0005 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0006 
0007 process.maxEvents = cms.untracked.PSet(
0008     input = cms.untracked.int32(-1)
0009 )
0010 
0011 process.intProducer = cms.EDProducer("IntProducer", ivalue = cms.int32(3))
0012 
0013 process.a1 = cms.EDAnalyzer("TestFindProduct",
0014   inputTags = cms.untracked.VInputTag( cms.InputTag("intProducer") ),
0015   expectedSum = cms.untracked.int32(54)
0016 )
0017 
0018 process.source = cms.Source("PoolSource",
0019                             duplicateCheckMode = cms.untracked.string("noDuplicateCheck"),
0020                             skipBadFiles = cms.untracked.bool(True),
0021                             skipEvents = cms.untracked.uint32(15), #skips all events in first file
0022                             fileNames = cms.untracked.vstring('file:PoolInputTest.root',
0023                                                               'file:this_file_doesnt_exist.root',
0024                                                               'file:this_file_doesnt_exist.root',
0025                                                               'file:PoolInputTest.root',
0026                                                               'file:this_file_doesnt_exist.root',
0027                                                               'file:this_file_doesnt_exist.root',
0028                                                               'file:PoolInputTest.root',
0029                                                               'file:this_file_doesnt_exist.root',
0030                                                               'file:this_file_doesnt_exist.root')
0031 )
0032 
0033 process.p = cms.Path(process.intProducer * process.a1)
0034 
0035