Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-01-14 02:38:44

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