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         'file:testRunMergeRecombined.root'
0026     )
0027     #, duplicateCheckMode = cms.untracked.string('checkAllFilesOpened')
0028     , skipEvents = cms.untracked.uint32(3)
0029     , eventsToProcess = cms.untracked.VEventRange('1:2-1:7')
0030 )
0031 
0032 process.test = cms.EDAnalyzer('RunLumiEventAnalyzer',
0033     verbose = cms.untracked.bool(True),
0034     expectedRunLumiEvents = cms.untracked.vuint32(
0035 1, 0, 0,
0036 1, 1, 0,
0037 1, 1, 5,
0038 1, 1, 6,
0039 1, 1, 7,
0040 1, 1, 0,
0041 1, 0, 0,
0042 )
0043 )
0044 
0045 process.path1 = cms.Path(process.test)
0046 
0047 process.out = cms.OutputModule("PoolOutputModule",
0048     fileName = cms.untracked.string('file:testRunMergePickEvent.root')
0049 )
0050 
0051 process.endpath1 = cms.EndPath(process.out)