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     ]
0024     #, duplicateCheckMode = 'checkAllFilesOpened'
0025     , skipEvents = 3
0026     , eventsToProcess = ['1:1:2-1:1:7']
0027 )
0028 
0029 from FWCore.Framework.modules import RunLumiEventAnalyzer
0030 process.test = RunLumiEventAnalyzer(
0031     verbose = True,
0032     expectedRunLumiEvents = [
0033 1, 0, 0,
0034 1, 1, 0,
0035 1, 1, 5,
0036 1, 1, 6,
0037 1, 1, 7,
0038 1, 1, 0,
0039 1, 0, 0,
0040 ]
0041 )
0042 
0043 process.path1 = cms.Path(process.test)