Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:40

0001 # The purpose of this is to test the case where a
0002 # file ends with an empty run (no lumis) and we
0003 # go into another file and process things.
0004 # This tests a rarely hit code path in processRuns.
0005 
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 process = cms.Process("PROD3")
0009 
0010 process.source = cms.Source("PoolSource",
0011     fileNames = cms.untracked.vstring(
0012         'file:testGetByRunsMode.root',
0013         'file:testGetBy1.root'
0014     ),
0015     inputCommands=cms.untracked.vstring(
0016         'keep *',
0017         'drop *_*_*_PROD2'
0018     )
0019 )
0020 
0021 process.out = cms.OutputModule("PoolOutputModule",
0022     fileName = cms.untracked.string('testGetByWithEmptyRun.root')
0023 )
0024 
0025 process.test = cms.EDAnalyzer('RunLumiEventAnalyzer',
0026                               verbose = cms.untracked.bool(True),
0027                               expectedRunLumiEvents = cms.untracked.vuint32(
0028 1, 0, 0,
0029 1, 0, 0,
0030 1, 0, 0,
0031 1, 1, 0,
0032 1, 1, 1,
0033 1, 1, 2,
0034 1, 1, 3,
0035 1, 1, 0,
0036 1, 0, 0
0037 )
0038 )
0039 
0040 process.p1 = cms.Path(process.test)
0041 
0042 process.e1 = cms.EndPath(process.out)