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 lumisToProcess and eventsToSkip
0003 # parameters of the PoolSource.
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process("MERGE")
0008 
0009 process.load("FWCore.MessageService.MessageLogger_cfi")
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   Rethrow = FWCore.Framework.test.cmsExceptionsFatalOption_cff.Rethrow
0016 )
0017 
0018 process.source = cms.Source("PoolSource",
0019     fileNames = cms.untracked.vstring(
0020         'file:testRunMerge1.root', 
0021         'file:testRunMerge2.root', 
0022         'file:testRunMerge3.root',
0023         'file:testRunMerge4.root',
0024         'file:testRunMerge5.root'
0025     )
0026     , lumisToProcess = cms.untracked.VLuminosityBlockRange(
0027                                            '11:2',
0028                                            '15:2-15:8',
0029                                            '19:2-20:2',
0030                                            '21:4'
0031                                           )
0032     , eventsToSkip = cms.untracked.VEventRange(
0033                                            '19:6-19:8',
0034                                            '21:8'
0035                                            )
0036     , duplicateCheckMode = cms.untracked.string('checkEachRealDataFile')
0037 )
0038 
0039 process.thingWithMergeProducer = cms.EDProducer("ThingWithMergeProducer")
0040 
0041 process.out = cms.OutputModule("PoolOutputModule",
0042     fileName = cms.untracked.string('testRunMergeMERGE3.root')
0043 )
0044 
0045 process.test = cms.EDAnalyzer('RunLumiEventAnalyzer',
0046     verbose = cms.untracked.bool(True),
0047     expectedRunLumiEvents = cms.untracked.vuint32(
0048 11, 0, 0,
0049 11, 2, 0,
0050 11, 2, 1,
0051 11, 2, 2,
0052 11, 2, 3,
0053 11, 2, 0,
0054 11, 0, 0,
0055 15, 0, 0,
0056 15, 2, 0,
0057 15, 2, 1,
0058 15, 2, 2,
0059 15, 2, 3,
0060 15, 2, 0,
0061 15, 3, 0,
0062 15, 3, 4,
0063 15, 3, 5,
0064 15, 3, 6,
0065 15, 3, 0,
0066 15, 4, 0,
0067 15, 4, 7,
0068 15, 4, 8,
0069 15, 4, 9,
0070 15, 4, 0,
0071 15, 0, 0,
0072 19, 0, 0,
0073 19, 2, 0,
0074 19, 2, 1,
0075 19, 2, 2,
0076 19, 2, 3,
0077 19, 2, 0,
0078 19, 3, 0,
0079 19, 3, 4,
0080 19, 3, 5,
0081 19, 3, 0,
0082 19, 4, 0,
0083 19, 4, 9,
0084 19, 4, 0,
0085 19, 0, 0,
0086 20, 0, 0,
0087 20, 2, 0,
0088 20, 2, 1,
0089 20, 2, 2,
0090 20, 2, 3,
0091 20, 2, 0,
0092 20, 0, 0,
0093 21, 0, 0,
0094 21, 4, 0,
0095 21, 4, 7,
0096 21, 4, 9,
0097 21, 4, 0,
0098 21, 0, 0
0099 )
0100 )
0101 
0102 process.path1 = cms.Path(process.thingWithMergeProducer + process.test)
0103 process.e = cms.EndPath(process.out)