Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:41

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:testRunMergeSPLIT103.root',
0016         'file:testRunMergeSPLIT102.root'
0017     ),
0018     lumisToProcess = cms.untracked.VLuminosityBlockRange('41:16-41:25', '42:16-42:20')
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         10001,   10002,  10003
0040     ),
0041 
0042     expectedEndRunProd = cms.untracked.vint32(
0043         100001,   200004,  100003,
0044         100001,   100002,  100003
0045     ),
0046 
0047     expectedEndRunProdImproperlyMerged = cms.untracked.vint32(
0048         0,   0,  0,
0049         0,   0,  0
0050     )
0051 )
0052 
0053 process.out = cms.OutputModule("PoolOutputModule",
0054     fileName = cms.untracked.string('testRunMergeMERGE101.root')
0055 )
0056 
0057 process.e = cms.EndPath(process.test * process.out, process.task)