Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("MERGE")
0004 
0005 process.load("FWCore.MessageService.MessageLogger_cfi")
0006 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0007 process.MessageLogger.cerr.threshold = 'ERROR'
0008 
0009 process.maxEvents = cms.untracked.PSet(
0010     input = cms.untracked.int32(-1)
0011 )
0012 
0013 process.source = cms.Source("PoolSource",
0014     fileNames = cms.untracked.vstring(
0015         'file:testRunMergeSPLIT100.root',
0016         'file:testRunMergeSPLIT101.root'
0017     ),
0018     lumisToProcess = cms.untracked.VLuminosityBlockRange('42:6-42:15')
0019 )
0020 
0021 process.thingWithMergeProducer = cms.EDProducer("ThingWithMergeProducer")
0022 process.task = cms.Task(process.thingWithMergeProducer)
0023 
0024 process.test = cms.EDAnalyzer("TestMergeResults",
0025 
0026     #   Check to see that the value we read matches what we know
0027     #   was written. Expected values listed below come in sets of three
0028     #      value expected in Thing
0029     #      value expected in ThingWithMerge
0030     #      value expected in ThingWithIsEqual
0031     #   Each set of 3 is tested at endRun for the expected
0032     #   run values or at endLuminosityBlock for the expected
0033     #   lumi values. And then the next set of three values
0034     #   is tested at the next endRun or endLuminosityBlock.
0035     #   When the sequence of parameter values is exhausted it stops checking
0036 
0037     expectedBeginRunProd = cms.untracked.vint32(
0038         10001,   20004,  10003
0039     ),
0040 
0041     expectedEndRunProd = cms.untracked.vint32(
0042         100001,   200004,  100003
0043     ),
0044 
0045     expectedEndRunProdImproperlyMerged = cms.untracked.vint32(
0046         0,   0,  0
0047     )
0048 )
0049 
0050 process.out = cms.OutputModule("PoolOutputModule",
0051     fileName = cms.untracked.string('testRunMergeMERGE102.root')
0052 )
0053 
0054 process.e = cms.EndPath(process.test * process.out, process.task)