Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:34

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 
0011 process.load("FWCore.MessageService.MessageLogger_cfi")
0012 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0013 process.MessageLogger.cerr.threshold = 'ERROR'
0014 
0015 import FWCore.Framework.test.cmsExceptionsFatalOption_cff
0016 process.options = cms.untracked.PSet(
0017   fileMode  = cms.untracked.string('FULLMERGE'),
0018   Rethrow = FWCore.Framework.test.cmsExceptionsFatalOption_cff.Rethrow
0019 )
0020 
0021 
0022 process.source = cms.Source("PoolSource",
0023     fileNames = cms.untracked.vstring(
0024         'file:testRunMergeRecombined.root'
0025     )
0026     #, duplicateCheckMode = cms.untracked.string('checkAllFilesOpened')
0027     , skipEvents = cms.untracked.uint32(3)
0028     , eventsToProcess = cms.untracked.VEventRange('1:1:2-1:1:7')
0029 )
0030 
0031 process.test = cms.EDAnalyzer('RunLumiEventAnalyzer',
0032     verbose = cms.untracked.bool(True),
0033     expectedRunLumiEvents = cms.untracked.vuint32(
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)