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("READ")
0004 
0005 process.source = cms.Source("PoolSource",
0006     fileNames = cms.untracked.vstring(
0007         'file:testProcessBlockDropOnOutput.root'
0008     )
0009 )
0010 
0011 # 37 = 15 events + 7 access input ProcessBlock transitions + 15 fillCache functor calls
0012 # sum 15440 = 11 + 22 + 3300 + 4400 + 7707
0013 process.readProcessBlocksOneAnalyzer = cms.EDAnalyzer("edmtest::one::InputProcessBlockIntAnalyzer",
0014                                             transitions = cms.int32(37),
0015                                             consumesBeginProcessBlock = cms.InputTag("intProducerBeginProcessBlock", ""),
0016                                             consumesEndProcessBlock = cms.InputTag("intProducerEndProcessBlock", ""),
0017                                             consumesBeginProcessBlockM = cms.InputTag("intProducerBeginProcessBlockM", ""),
0018                                             consumesEndProcessBlockM = cms.InputTag("intProducerEndProcessBlockM", ""),
0019                                             expectedByRun = cms.vint32(11, 22, 3300, 4400, 7707),
0020                                             expectedSum = cms.int32(15440)
0021 )
0022 
0023 process.out = cms.OutputModule("PoolOutputModule",
0024     fileName = cms.untracked.string('testProcessBlockReadDropOnOutput.root')
0025 )
0026 
0027 process.testOneOutput = cms.OutputModule("TestOneOutput",
0028     verbose = cms.untracked.bool(False),
0029     expectedProcessesWithProcessBlockProducts = cms.untracked.vstring('PROD1', 'MERGEOFMERGED'),
0030     expectedTopProcessesWithProcessBlockProducts = cms.untracked.vstring('PROD1', 'MERGEOFMERGED'),
0031     expectedTopAddedProcesses = cms.untracked.vstring(),
0032     expectedTopCacheIndices0 = cms.untracked.vuint32(0, 5, 1, 5, 2, 5, 3, 5, 4, 6),
0033     expectedWriteProcessBlockTransitions = cms.untracked.int32(8)
0034 )
0035 
0036 
0037 process.p = cms.Path(process.readProcessBlocksOneAnalyzer)
0038 
0039 process.e = cms.EndPath(
0040     process.out *
0041     process.testOneOutput
0042 )