Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 
0002 # Test the PoolSource parameter that one can use
0003 # to request specific events.  This interacts with
0004 # the duplicate checking and skip event feature so
0005 # I set those parameters also and test that.
0006 
0007 import FWCore.ParameterSet.Config as cms
0008 
0009 process = cms.Process("COPY")
0010 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0011 process.MessageLogger.cerr.threshold = 'ERROR'
0012 
0013 import FWCore.Framework.test.cmsExceptionsFatalOption_cff
0014 process.options = cms.untracked.PSet(
0015   fileMode  = cms.untracked.string('FULLMERGE'),
0016   Rethrow = FWCore.Framework.test.cmsExceptionsFatalOption_cff.Rethrow
0017 )
0018 
0019 from IOPool.Input.modules import PoolSource
0020 process.source = PoolSource(
0021     fileNames = [
0022         'file:testRunMergeRecombined.root',
0023         'file:testRunMergeRecombined.root'
0024     ]
0025     #, duplicateCheckMode = 'checkAllFilesOpened'
0026     , skipEvents = 3
0027     , eventsToProcess = ['1:2-1:7']
0028 )
0029 
0030 from FWCore.Framework.modules import RunLumiEventAnalyzer
0031 process.test = RunLumiEventAnalyzer(
0032     verbose = True,
0033     expectedRunLumiEvents = [
0034 1, 0, 0,
0035 1, 1, 0,
0036 1, 1, 5,
0037 1, 1, 6,
0038 1, 1, 7,
0039 1, 1, 0,
0040 1, 0, 0,
0041 ]
0042 )
0043 
0044 process.path1 = cms.Path(process.test)
0045 
0046 from IOPool.Output.modules import PoolOutputModule
0047 process.out = PoolOutputModule(
0048     fileName = 'testRunMergePickEvent.root'
0049 )
0050 
0051 process.endpath1 = cms.EndPath(process.out)