Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-19 01:44:02

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("MERGEOFMERGED")
0004 
0005 process.options = cms.untracked.PSet(
0006     numberOfStreams = cms.untracked.uint32(1),
0007     numberOfConcurrentRuns = cms.untracked.uint32(1),
0008     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0009     fileMode = cms.untracked.string('NOMERGE')
0010 )
0011 
0012 process.source = cms.Source("PoolSource",
0013     fileNames = cms.untracked.vstring(
0014         'file:testProcessBlockMerge.root',
0015         'file:testProcessBlockMerge2.root'
0016     )
0017 )
0018 
0019 process.readProcessBlocksOneAnalyzer = cms.EDAnalyzer("edmtest::one::InputProcessBlockIntAnalyzer",
0020                                             transitions = cms.int32(30),
0021                                             consumesBeginProcessBlock = cms.InputTag("intProducerBeginProcessBlock", ""),
0022                                             consumesEndProcessBlock = cms.InputTag("intProducerEndProcessBlock", ""),
0023                                             consumesBeginProcessBlockM = cms.InputTag("intProducerBeginProcessBlockM", ""),
0024                                             consumesEndProcessBlockM = cms.InputTag("intProducerEndProcessBlockM", ""),
0025                                             expectedByRun = cms.vint32(11, 22, 3300, 4400),
0026                                             expectedSum = cms.int32(8221)
0027 )
0028 
0029 process.out = cms.OutputModule("PoolOutputModule",
0030     fileName = cms.untracked.string('testProcessBlockNOMergeOfMergedFiles.root')
0031 )
0032 
0033 process.testGlobalOutput = cms.OutputModule("TestGlobalOutput",
0034     verbose = cms.untracked.bool(False),
0035     expectedProcessesWithProcessBlockProducts = cms.untracked.vstring('PROD1', 'MERGE', 'MERGEOFMERGED'),
0036     expectedWriteProcessBlockTransitions = cms.untracked.int32(8)
0037 )
0038 
0039 process.testLimitedOutput = cms.OutputModule("TestLimitedOutput",
0040     verbose = cms.untracked.bool(False),
0041     expectedProcessesWithProcessBlockProducts = cms.untracked.vstring('PROD1', 'MERGE', 'MERGEOFMERGED'),
0042     expectedWriteProcessBlockTransitions = cms.untracked.int32(8)
0043 )
0044 
0045 process.testOneOutput = cms.OutputModule("TestOneOutput",
0046     verbose = cms.untracked.bool(False),
0047     expectedProcessesWithProcessBlockProducts = cms.untracked.vstring('PROD1', 'MERGE', 'MERGEOFMERGED'),
0048     expectedWriteProcessBlockTransitions = cms.untracked.int32(8),
0049     testTTreesInFileBlock = cms.untracked.bool(True),
0050     expectedCacheIndexSize = cms.untracked.vuint32(2, 2, 2, 2, 2, 2, 2, 2)
0051 )
0052 
0053 process.intProducerBeginProcessBlockM = cms.EDProducer("IntProducerBeginProcessBlock", ivalue = cms.int32(304))
0054 
0055 process.intProducerEndProcessBlockM = cms.EDProducer("IntProducerEndProcessBlock", ivalue = cms.int32(340))
0056 
0057 process.intProducerBeginProcessBlockB = cms.EDProducer("IntProducerBeginProcessBlock", ivalue = cms.int32(308))
0058 
0059 process.intProducerEndProcessBlockB = cms.EDProducer("IntProducerEndProcessBlock", ivalue = cms.int32(380))
0060 
0061 process.p = cms.Path(process.intProducerBeginProcessBlockM *
0062                      process.intProducerEndProcessBlockM *
0063                      process.intProducerBeginProcessBlockB *
0064                      process.intProducerEndProcessBlockB *
0065                      process.readProcessBlocksOneAnalyzer
0066 )
0067 
0068 process.e = cms.EndPath(process.out *
0069                         process.testGlobalOutput *
0070                         process.testLimitedOutput *
0071                         process.testOneOutput
0072 )