File indexing completed on 2025-01-14 02:38:44
0001
0002
0003
0004
0005 import FWCore.ParameterSet.Config as cms
0006
0007 process = cms.Process("TEST")
0008 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0009 process.MessageLogger.cerr.threshold = 'ERROR'
0010
0011 import FWCore.Framework.test.cmsExceptionsFatalOption_cff
0012 process.options = cms.untracked.PSet(
0013 Rethrow = FWCore.Framework.test.cmsExceptionsFatalOption_cff.Rethrow
0014 )
0015
0016 from IOPool.Input.modules import PoolSource
0017 process.source = PoolSource(
0018 fileNames = [
0019 'file:testRunMerge1.root',
0020 'file:testRunMerge2.root'
0021 ]
0022
0023
0024 , noEventSort = True
0025 , inputCommands = [
0026 'keep *',
0027 'drop edmtestThingWithMerge_makeThingToBeDropped1_*_*'
0028 ]
0029 )
0030
0031 from FWCore.Framework.modules import RunLumiEventAnalyzer
0032 process.test = RunLumiEventAnalyzer(
0033 verbose = True
0034 , expectedRunLumiEvents = [
0035 1, 0, 0,
0036 1, 1, 0,
0037 1, 1, 11,
0038 1, 1, 12,
0039 1, 1, 15,
0040 1, 1, 14,
0041 1, 1, 15,
0042 1, 1, 0,
0043 1, 0, 0,
0044 2, 0, 0,
0045 2, 1, 0,
0046 2, 1, 5,
0047 2, 1, 3,
0048 2, 1, 4,
0049 2, 1, 3,
0050 2, 1, 0,
0051 2, 0, 0,
0052 1, 0, 0,
0053 1, 1, 0,
0054 1, 1, 17,
0055 1, 1, 0,
0056 1, 0, 0,
0057 1, 0, 0,
0058 1, 1, 0,
0059 1, 1, 11,
0060 1, 1, 20,
0061 1, 1, 21,
0062 1, 1, 0,
0063 1, 0, 0
0064 ]
0065 )
0066
0067 process.looper = cms.Looper("NavigateEventsLooper")
0068
0069 from IOPool.Output.modules import PoolOutputModule
0070 process.out = PoolOutputModule(
0071 fileName = 'testLooperEventNavigation.root',
0072 fastCloning = False
0073 )
0074
0075 process.path1 = cms.Path(process.test)
0076 process.endpath1 = cms.EndPath(process.out)