Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 
0002 # This configuration tests the lumisToSkip, firstRun,
0003 # firstLuminosityBlock, and firstEvent parameters of
0004 # the PoolSource.
0005 
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 process = cms.Process("MERGE")
0009 
0010 process.load("FWCore.MessageService.MessageLogger_cfi")
0011 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0012 process.MessageLogger.cerr.threshold = 'ERROR'
0013 
0014 import FWCore.Framework.test.cmsExceptionsFatalOption_cff
0015 process.options = cms.untracked.PSet(
0016   fileMode = cms.untracked.string('FULLMERGE'),
0017   Rethrow = FWCore.Framework.test.cmsExceptionsFatalOption_cff.Rethrow
0018 )
0019 
0020 process.source = cms.Source("PoolSource",
0021     fileNames = cms.untracked.vstring(
0022         'file:testRunMerge1.root', 
0023         'file:testRunMerge2.root', 
0024         'file:testRunMerge3.root',
0025         'file:testRunMerge4.root',
0026         'file:testRunMerge5.root'
0027     )
0028     , firstRun = cms.untracked.uint32(17)
0029     , firstLuminosityBlock = cms.untracked.uint32(3)
0030     , firstEvent = cms.untracked.uint32(6)
0031     , lumisToSkip = cms.untracked.VLuminosityBlockRange(
0032                                            '18:3',
0033                                            '19:2',
0034                                            '21:4',
0035                                            '16:2'
0036                                           )
0037     , duplicateCheckMode = cms.untracked.string('checkEachRealDataFile')
0038 )
0039 
0040 process.thingWithMergeProducer = cms.EDProducer("ThingWithMergeProducer")
0041 
0042 process.out = cms.OutputModule("PoolOutputModule",
0043     fileName = cms.untracked.string('testRunMerge_a.root')
0044 )
0045 
0046 process.test = cms.EDAnalyzer('RunLumiEventAnalyzer',
0047     verbose = cms.untracked.bool(True),
0048     expectedRunLumiEvents = cms.untracked.vuint32(
0049 17, 0, 0,
0050 17, 3, 0,
0051 17, 3, 6,
0052 17, 3, 0,
0053 17, 4, 0,
0054 17, 4, 7,
0055 17, 4, 8,
0056 17, 4, 9,
0057 17, 4, 0,
0058 17, 0, 0,
0059 18, 0, 0,
0060 18, 2, 0,
0061 18, 2, 1,
0062 18, 2, 2,
0063 18, 2, 3,
0064 18, 2, 0,
0065 18, 4, 0,
0066 18, 4, 7,
0067 18, 4, 8,
0068 18, 4, 9,
0069 18, 4, 0,
0070 18, 0, 0,
0071 19, 0, 0,
0072 19, 3, 0,
0073 19, 3, 4,
0074 19, 3, 5,
0075 19, 3, 6,
0076 19, 3, 0,
0077 19, 4, 0,
0078 19, 4, 7,
0079 19, 4, 8,
0080 19, 4, 9,
0081 19, 4, 0,
0082 19, 0, 0,
0083 20, 0, 0,
0084 20, 2, 0,
0085 20, 2, 1,
0086 20, 2, 2,
0087 20, 2, 3,
0088 20, 2, 0,
0089 20, 3, 0,
0090 20, 3, 4,
0091 20, 3, 5,
0092 20, 3, 6,
0093 20, 3, 0,
0094 20, 4, 0,
0095 20, 4, 7,
0096 20, 4, 8,
0097 20, 4, 9,
0098 20, 4, 0,
0099 20, 0, 0,
0100 21, 0, 0,
0101 21, 2, 0,
0102 21, 2, 1,
0103 21, 2, 2,
0104 21, 2, 3,
0105 21, 2, 0,
0106 21, 3, 0,
0107 21, 3, 4,
0108 21, 3, 5,
0109 21, 3, 6,
0110 21, 3, 0,
0111 21, 0, 0
0112 )
0113 )
0114 
0115 process.path1 = cms.Path(process.thingWithMergeProducer + process.test)
0116 process.e = cms.EndPath(process.out)